# HG changeset patch # User geert-vandeweyer # Date 1378362974 14400 # Node ID ea32a329aced6e478ddc0c2ab58862dac212e9eb Initial Uploaded diff -r 000000000000 -r ea32a329aced CoverageReport.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CoverageReport.xml Thu Sep 05 02:36:14 2013 -0400 @@ -0,0 +1,125 @@ + + + + CoverageReport.pl + ## input files + -b $input1 + -t $input2 + + ## output files + -o $output1 + -z $output2 + + ## run parameters + $perGene + $PositionLevel + -m $threshold + -f $frac + ## sample name + #if $namefromselect.namesource == "typed" : + -n "${namefromselect.typedname}" + #elif $namefromselect.namesource == "other": + -n "${namefromselect.namefile.display_name}" + #elif $namefromselect.namesource == "bam": + -n "${input1.display_name}" + #else: + -n "Unspecified" + #end if + + + BEDTools + samtools + pdflatex + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +**What it does** + +This tool creates a coverage report for QC purposes. By default, average coverage statistics are provided, taken from samtools flagstats. If specified, it can also create overviews per gene in the BED file, and sub-exon plots for failed exons. + +------ + +**BED format** + +The BED file containing targets of interest has very specific format requirements. You **must** use the following format:: + + Column 1: Chromosome : Use the same syntax as the references used by Galaxy. Check your sam-headers for the correct format. ('chr1' vs '1') + Column 2: Start Position + Column 3: End Position + Column 4: Target Name. Use : "GENE-NAME|Exon_number" : This is split on the 'Pipe' after 'GeneName' for correct grouping. + Column 5: Score : ignored, use '0' + Column 6: Strand: ignored,'+' or '-' + +.. class:: infomark + +Note: The exons for the plots will be ordered in the same way as the exons in the BED file. + +------ + +**Input formats** + +BAM file for reads, BED file for targets. + +------ + +**Outputs** + +The output files are a PDF report and a tar.gz file with all the plots and output tables. +The output tables are (tab seperated txt files): + +**Targets.Global.Coverage** : Original BED file + following columns:: + - Total coverage in target + - Bases in target with coverage + - Length of target + - Percent of target covered + +**Targets.Position.Coverage** : Original BED file + following columns:: + - Position in target region + - Coverage at position + +------ + +**Requirements** + + - BEDTools (from toolshed) + - Samtools (from toolshed) + - pdflatex : binary must be in path, to create the pdf report. + + + + +