samtools-split(1) | Bioinformatics tools | samtools-split(1) |
samtools-split - splits a file by read group.
samtools split [options] merged.sam|merged.bam|merged.cram
Splits a file by read group, producing one or more output files matching a common prefix (by default based on the input filename) each containing one read-group.
The -u option may be used to specify the output filename for any records without an RG tag.
Format string expansions:
%% | % |
%* | basename |
%# | @RG index |
%! | @RG ID |
%. | output format filename extension |
Written by Martin Pollard from the Sanger Institute.
samtools(1), samtools-addreplacerg(1)
Samtools website: <http://www.htslib.org/>
2 September 2022 | samtools-1.16.1 |