I am trying to filter for intergenic regions, i.e., RE:A:I. This does not seem to work and I have checked my bam file for this information (see below) and it is available. Perhaps I am using incorrect syntax?
Note. I was able to test it with a text file with a single barcode using the --bam-tag CR:Z and that worked well.
Your help is much appreciated!
Thank you.
-Marcel
Step 1. Create a file with "I" (the desired value) for my tag of interest
Hi @ifiddes-10x and others,
Thank you for providing this useful tool.
I am trying to filter for intergenic regions, i.e.,
RE:A:I
. This does not seem to work and I have checked my bam file for this information (see below) and it is available. Perhaps I am using incorrect syntax?Note. I was able to test it with a text file with a single barcode using the
--bam-tag CR:Z
and that worked well.Your help is much appreciated!
Thank you. -Marcel
Step 1. Create a file with "I" (the desired value) for my tag of interest
Step 2. Use
subset-bam
with the--bam-tag
input set toRE:A
(similar to CR:Z for barcodes) and the-c
argument pointing to the file in Step 1.samtools view
the bam file: