View source: R/om_reseq_basic.R
om_reads_cov_plot | R Documentation |
Plot bwa mapping coverage summrized by samtools
om_reads_cov_plot(coverage_table, sample_limit, max_depth, out_prefix = NULL)
coverage_table |
coverage stats table of all samples |
sample_limit |
sample number limit to show detail inform of each sample |
max_depth |
Sequencing depth limit to show in plot |
out_prefix |
output file prefix, default is NULL, don't output file |
Mapping coverage of each sample is generated by samtools stats sorted.bam
;
Then extracted using grep
grep ^COV| cut -f 3,4
cov_stats <- system.file("extdata", "all_sample.genome.cov.xls", package = "omplotr")
# show coverage summary
om_reads_cov_plot(cov_stats, 5, 100)
# show detail sample information
om_reads_cov_plot(cov_stats, 10, 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.