deepTools draw coverage for specific region
1
1
Entering edit mode
6.8 years ago
Medhat 9.7k

I am trying to plot coverage for CDS region using deeptools.

from the manual there is a flag --region, but it either takes a chromosome or region of chromosome

–region chr10 or –region chr10:456700:891000

Is there is a way to pass bed file to it like in –blackListFileName, -bl flag?

or I need to use something like:

samtools view -hL cds.bed alignment.bam > alignment_in_cds.sam

and then use plotCoverage normally?

alignment bam deepTools • 1.8k views
ADD COMMENT
1
Entering edit mode
6.8 years ago

plotCoverage itself can't be made to use a BED file like you want. If you just want something like "% of signal in the CDS" then you can give a GTF file and your BAM file(s) to plotEnrichment, which will produce a histogram of "% alignments/feature" and (optionally) a table of the values.

If you really do want only the coverage distribution over the CDS then there's no way to do that directly with deepTools. One can prefilter the BAM file as you showed, but note that this will still create off-target bases that are flanking each CDS, so even then the results will only be approximate.

ADD COMMENT
1
Entering edit mode

I think this should be another question, but I would like it to be consistent with the post.

Is there a way to increase the scale of the "fraction of bases sampled" axis? in the example from documentation I could figure out that 5% of sample was covered 0 time; but what if there is more! can I control the scale to see it?

ADD REPLY
0
Entering edit mode

Not currently, it's just whatever matplotlib chooses, but you can save the values (--outRawCounts) and then do the plotting however you'd like in R.

ADD REPLY

Login before adding your answer.

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