![]() |
![]()
| ![]() |
![]()
NAMEsamtools reset - removes the alignment information added by aligners and updates flags accordingly SYNOPSISsamtools reset [-o FILE] [-x,--remove-tag STR] [--keep-tag STR] [--reject-PG pgid] [--no-RG] [--no-PG] [--dupflag] [...] DESCRIPTIONRemoves the alignment information added by the aligner. CIGAR and reference data are removed. Flags are updated as unmapped, non-duplicate and as not a proper pair. If the alignment was in reverse direction, data and its quality values are reversed and complemented and the reverse flag is reset. Supplementary and secondary alignment data are discarded. Aux tags that will be retained in output can be controlled by keep-tag and remove-tag/x. These options take tags as comma separated lists. Aux tags AS, CC, CG, CP, H1, H2, HI, H0, IH, MC, MD, MQ, NM, SA and TS are removed by default, this can be overridden using keep-tag. PG and RG tags from input are written on the output by default. CO lines are not retained after this operation. The sort order is unchanged, so users may consider combining this with samtools collate or sort -n if it is a requirement to group pairs of sequences together. OPTIONS
EXAMPLESBasic usage, to reset the data:
samtools reset -o out.bam in.bam
To keep aux tags RG and BC in the output:
samtools reset -o out.sam --keep-tag RG,BC in.bam
To discard PG entries from 'bwa_index' onwards,
samtools reset -o out.sam --reject-PG=bwa_index
To set output format for use within a pipeline:
samtools collate -O -u input.cram | \ AUTHORWritten by Vasudeva Sarma of the Wellcome Sanger Institute. SEE ALSOsamtools(1), samtools-collate(1) Samtools website: <http://www.htslib.org/>
|