Extract Specific RNA-seq reads from BAM using deeptools
1
0
Entering edit mode
12 weeks ago
Qilin • 0

Hello everyone,

I am working on RNA-Seq data analysis, and currently I have generated the bam files (named WT.bam and KO.bam).

Could I ask whether deeptools (https://github.com/deeptools/deepTools/) is available to extract reads that exist in WT.bam but not in KO.bam?

If it can't, is there any other methods (or scripts) to achieve the target?

RNA-seq deeptools • 470 views
ADD COMMENT
0
Entering edit mode
12 weeks ago
GenoMax 153k

to extract reads that exist in WT.bam but not in KO.bam?

Are you referring to recovering reads from areas of the genome that are covered in WT as opposed to the KO alignment file? If so, you could use bam2bed (https://bedops.readthedocs.io/en/latest/content/reference/file-management/conversion/bam2bed.html ) to first convert the files and then use a set operation like difference (https://bedops.readthedocs.io/en/latest/content/reference/set-operations/bedops.html#difference-d-difference ).

Once you get the read names that are present in one of the files, you can use a tool like filterbyname.sh from BBMap suite to extract the reads from original files.

ADD COMMENT

Login before adding your answer.

Traffic: 4377 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