-
Notifications
You must be signed in to change notification settings - Fork 9
Split bam file by tag
Buys de Barbanson edited this page Mar 13, 2020
·
2 revisions
To split a bam file by a tag, use the bamSplitByTag.py [bamfile input] [tag to split on] -o [output prefix]
script.
To generate a BAM file for every barcode index (bi):
bamSplitByTag.py ./original_bam bi -o PER_INDEX
To generate a BAM file for every sample/cell (SM):
bamSplitByTag.py ./original_bam SM -o PER_CELL
To generate a BAM file for every datatype (dt):
bamSplitByTag.py ./original_bam dt -o BY_DT