This is a test version of Biostars. For the public version, visit https://www.biostars.org.
make a new bam file

I have a set of genes including 105 genes. I want to make a new bam file excluding these 105 genes. do you know how I can do that?

rna-seq

Can you elaborate on why you want to do that? I'm not sure that it's a good idea.

Even though it is not clear what you want to do, I think bedtools intersect can do what you want.

1 answer

You can use the bed tools complement (http://bedtools.readthedocs.io/en/latest/content/tools/complement.html) to identify the complementary regions, then use bed tools intersect on the bam to extract the complementary regions (http://bedtools.readthedocs.io/en/latest/content/tools/intersect.html).

Log in to answer this question.