ReadDepth
April 6, 2017 ยท View on GitHub
Evaluate read depth in target regions, and obtain BAM file statistics used for calculating copy number
- Evaluate read depth (number of reads mapping to a genomic position) in WGS data for regions defined in PlotList.
depthFilter.pywill subsample the depth so that no more than about 10K data points are returned, no matter the region size. flagstatfiles, generated with thesamtoolsutility, provide a summary of the number of reads in a BAM file. They are generated if they do not already exist (test appending.flagstatto BAM filename).- Create summary table used to obtained copy number. Copy number at a given
genomic position is estimated (in
DepthDrawer.R) as2 * read_depth / RD, where RD is average read depth across the genome,RD = num_reads * read_length / genome_length.num_readsis obtained from the BAM file directly. - Similar statistics are obtained for RNA-Seq BAM files as well, to be used for RPKM calculations.