Tab delineated file containing the number of reads mapping to each gene on chromosome 22. How I can do this with bedtools and shell commands?
1
0
Entering edit mode
8.7 years ago
Kevin_Smith ▴ 10

After an RNA-seq experiment, I got the alignment results in 6 bed format files located in a folder. I'm trying to make a tab delineated file containing the number of reads mapping to each gene on chromosome 22 in each experiment. I will appreciate very much your help. How I can do this with bedtools and shell commands?

Thanks

RNA-Seq alignment sequencing rna-seq • 1.5k views
ADD COMMENT
0
Entering edit mode
8.7 years ago
Benn 8.3k

What you need is the bam files, and a bed file with the coordinates of interest. Then in the unix shell:

bedtools coverage -abam file.bam -b file.bed > results.cov.txt
ADD COMMENT

Login before adding your answer.

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