GMT-MUSIC-BMR-CALC-COVG(1p) | User Contributed Perl Documentation | GMT-MUSIC-BMR-CALC-COVG(1p) |
gmt music bmr calc-covg - Uses calcRoiCovg.c to count covered bases per-gene for each given tumor-normal pair of BAMs.
This document describes gmt music bmr calc-covg version 0.04 (2018-07-05 at 09:17:13)
gmt music bmr calc-covg --gene-covg-dir=? --roi-file=? --reference-sequence=? --bam-list=? --output-dir=? [--cmd-list-file=?] [--cmd-prefix=?] [--normal-min-depth=?] [--tumor-min-depth=?] [--min-mapq=?]
General usage:
... music bmr calc-covg \ --bam-list input_dir/bam_list \ --output-dir output_dir/ \ --reference-sequence input_dir/all_sequences.fa \ --roi-file input_dir/all_coding_exons.tsv
To create a list of commands that will allow the processing of each tumor-normal pair in parallel with an LSF job scheduler:
... music bmr calc-covg \ --bam-list input_dir/bam_list \ --output-dir output_dir/ \ --reference-sequence input_dir/all_sequences.fa \ --roi-file input_dir/all_coding_exons.tsv \ --cmd_list_file parallelizable_commands \ --cmd_prefix bsub
In the above case, the commands printed into the output file "parallelizable_commands" can be run in parallel. After they complete, rerun this script as printed directly below (--cmd_list_file and --cmd_prefix have been removed) to merge the parallelized calculations:
... music bmr calc-covg \ --bam-list input_dir/bam_list \ --output-dir output_dir/ \ --reference-sequence input_dir/all_sequences.fa \ --roi-file input_dir/all_coding_exons.tsv
This script counts bases with sufficient coverage in the ROIs of each gene in the given pairs of tumor-normal BAM files and categorizes them into - AT, CG (non-CpG), and CpG counts. It also adds up these base-counts across all ROIs of each gene for each sample, but covered bases that lie within overlapping ROIs are not counted more than once towards these total counts.
By default, this script runs a C-based tool named calcRoiCovg for each sample one after another, taking ~30 mins per sample to generate per-ROI covered base counts. If the results of calcRoiCovg for a sample already exists in the output subdirectory roi_covgs, re-calculation is skipped. This allows you to run your own calcRoiCovg jobs in parallel or on multiple machines (Keep reading).
Speed things up by running calcRoiCovg jobs in parallel: If a compute cluster or multiple machines are available, run this script twice as follows:
Copyright (C) 2010-2011 Washington University in St. Louis.
It is released under the Lesser GNU Public License (LGPL) version 3. See the associated LICENSE file in this distribution.
Cyriac Kandoth, Ph.D.
2018-07-05 | perl v5.26.2 |