make a new bam file
1
0
Entering edit mode
5.7 years ago
alireza346 ▴ 10

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 • 882 views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
2
Entering edit mode
5.7 years ago
btsui ▴ 300

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).

ADD COMMENT

Login before adding your answer.

Traffic: 1637 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6