Repository 'control_freec'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/control_freec

Changeset 0:e46944a59b31 (2020-08-13)
Next changeset 1:2c6349fb175c (2020-08-18)
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freec commit bec4fb59dc4776d33c2ce8c0bd614c90e5d4ecb2"
added:
control_freec.xml
macros.xml
ratio2circos.py
test-data/capture.bed
test-data/fasta_indexes.loc
test-data/genome.fasta
test-data/genome.fasta.fai
test-data/normal.bam
test-data/output/GC_profile.targetedRegions.cnp
test-data/output/control.bam_control.cpn
test-data/output/sample.bam_CNVs
test-data/output/sample.bam_info.txt
test-data/output/sample.bam_ratio.txt
test-data/output/sample.bam_sample.cpn
test-data/tumor.bam
tool-data/fasta_indexes.loc.sample
tool_data_table_conf.xml.sample
tool_data_table_conf.xml.test
b
diff -r 000000000000 -r e46944a59b31 control_freec.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/control_freec.xml Thu Aug 13 09:50:35 2020 -0400
[
b'@@ -0,0 +1,278 @@\n+<tool id="control_freec" name="Control-FREEC" version="@WRAPPER_VERSION@">\n+    <description>detects copy-number changes and allelic imbalances</description>\n+    <macros>\n+        <import>macros.xml</import>\n+    </macros>\n+    <requirements>\n+        <requirement type="package" version="5.0.1">gawk</requirement>\n+        <requirement type="package" version="@TOOL_VERSION@">control-freec</requirement>\n+    </requirements>\n+    <command detect_errors="exit_code"><![CDATA[\n+        #if str($reference_source.ref_selector) == \'history\':\n+            ln -s \'$reference_source.ref\' ./genome.fa &&\n+            samtools faidx ./genome.fa 2>&1 || echo \'Error running samtools faidx for indexing fasta reference for control-freec\' >&2 &&\n+        #else\n+            ln -s \'$reference_source.ref.fields.path\' ./genome.fa &&\n+            ln -s \'${reference_source.ref.fields.path}.fai\' ./genome.fa.fai &&\n+        #end if\n+\n+        #if int($WGS_WES.advanced_settings.window_section.window) == 0\n+            ln -s \'$WGS_WES.input_capture_file\' ./capture.bed &&\n+        #end if\n+\n+        mkdir ./chromosomes &&\n+        mkdir ./output &&\n+\n+        awk -F " " \'/^>/ {close(F); F="chromosomes/"substr($1,2)".fa"} {print >> F}\' ./genome.fa &&\n+\n+        ln -s \'$WGS_WES.input_sample_file\' ./sample.bam &&\n+        #if $input_control_file\n+            ln -s \'$WGS_WES.input_control_file\' ./control.bam &&\n+        #end if\n+\n+        freec\n+            -conf \'$script_file\'\n+            -sample ./sample.bam\n+            #if $WGS_WES.input_control_file\n+                -control ./control.bam\n+            #end if\n+\n+        #if $output_section.makeGraph\n+            && R -f `which makeGraph.R` \'$WGS_WES.advanced_settings.ploidy\' \'output/sample.bam_ratio.txt\'\n+        #end if\n+\n+        #if $output_section.circos_data\n+            && python \'$__tool_directory__/ratio2circos.py\'\n+               -i ./output/sample.bam_ratio.BedGraph\n+               -p \'$WGS_WES.advanced_settings.ploidy\'\n+               -o sample.bam_ratio_log2_circos.txt\n+        #end if\n+    ]]></command>\n+    <configfiles>\n+        <configfile name="script_file"><![CDATA[\n+#import os\n+#set galaxy_slots = os.getenv("GALAXY_SLOTS", 4)\n+[general]\n+chrFiles = chromosomes\n+outputDir = output\n+chrLenFile = genome.fa.fai\n+maxThreads = $galaxy_slots\n+\n+#if $WGS_WES.advanced_settings.degree == "34"\n+    #set $degree_val = "3&4"\n+degree = $degree_val\n+#else\n+degree = $WGS_WES.advanced_settings.degree\n+#end if\n+forceGCcontentNormalization = $WGS_WES.advanced_settings.forceGCcontentNormalization\n+minCNAlength = $WGS_WES.advanced_settings.minCNAlength\n+minimalSubclonePresence = $WGS_WES.advanced_settings.minimalSubclonePresence\n+readCountThreshold = $WGS_WES.advanced_settings.readCountThreshold\n+window = $WGS_WES.advanced_settings.window_section.window\n+step = $WGS_WES.advanced_settings.window_section.step\n+coefficientOfVariation = $WGS_WES.advanced_settings.coefficientOfVariation\n+#if $output_section.circos_data\n+BedGraphOutput = TRUE\n+#else\n+BedGraphOutput = $output_section.BedGraphOutput\n+#end if\n+breakPointThreshold = $WGS_WES.advanced_settings.breakPointThreshold\n+breakPointType = $WGS_WES.advanced_settings.breakPointType\n+contaminationAdjustment = $WGS_WES.advanced_settings.contaminationAdjustment\n+contamination = $WGS_WES.advanced_settings.contamination\n+intercept = $WGS_WES.advanced_settings.intercept\n+minMappabilityPerWindow = $WGS_WES.advanced_settings.minMappabilityPerWindow\n+minExpectedGC = $WGS_WES.advanced_settings.minExpectedGC\n+maxExpectedGC = $WGS_WES.advanced_settings.maxExpectedGC\n+noisyData = $WGS_WES.advanced_settings.noisyData\n+ploidy = $WGS_WES.advanced_settings.ploidy\n+printNA = $WGS_WES.advanced_settings.printNA\n+sex = $WGS_WES.advanced_settings.sex\n+telocentromeric = $WGS_WES.advanced_settings.telocentromeric\n+\n+[sample]\n+mateFile = sample.bam\n+inputFormat = BAM\n+mateOrientation = $WGS_WES.mateOrientation_selector\n+\n+[control]\n+mateFile = control.bam\n+inputForm'..b'ype="bam" value="tumor.bam" />\n+            <param name="input_control_file" ftype="bam" value="normal.bam" />\n+            <param name="mateOrientation_selector" value="0" />\n+            <param name="minimalSubclonePresence" value="100" />\n+            <param name="window" value="5000" />\n+            <param name="step" value="1000" />\n+            <output name="out_sample_raw" file="output/sample.bam_sample.cpn" />\n+            <output name="out_control_raw" file="output/control.bam_control.cpn" />\n+            <output name="out_sample_coord" file="output/sample.bam_CNVs" />\n+            <output name="out_sample_info" file="output/sample.bam_info.txt" />\n+            <output name="out_sample_ratio" file="output/sample.bam_ratio.txt" />\n+        </test>\n+        <test expect_num_outputs="6">\n+            <conditional name="reference_source">\n+                <param name="ref_selector" value="history"/>\n+                <param name="ref" ftype="fasta" value="genome.fasta" />\n+            </conditional>\n+            <param name="WGS_WES_selector" value="WES" />\n+            <param name="input_sample_file" ftype="bam" value="tumor.bam" />\n+            <param name="input_control_file" ftype="bam" value="normal.bam" />\n+            <param name="input_capture_file" ftype="bed" value="capture.bed" />\n+            <param name="mateOrientation_selector" value="0" />\n+            <param name="minimalSubclonePresence" value="100" />\n+            <param name="forceGCcontentNormalization" value="2" />\n+            <param name="window" value="0" />\n+            <param name="step" value="0" />\n+            <output name="out_sample_raw">\n+                <assert_contents>\n+                    <has_text_matching expression="M\\t\\d+\\t\\d+\\t\\d+\\tM:\\d+-\\d+"/>\n+                </assert_contents>\n+            </output>\n+            <output name="out_control_raw">\n+                <assert_contents>\n+                    <has_text_matching expression="M\\t\\d+\\t\\d+\\t\\d+\\tM:\\d+-\\d+"/>\n+                </assert_contents>\n+            </output>\n+            <output name="out_sample_coord" file="output/sample.bam_CNVs" />\n+            <output name="out_sample_info">\n+                <assert_contents>\n+                    <has_text text="Program_Version"/>\n+                </assert_contents>\n+            </output>\n+            <output name="out_sample_ratio">\n+                <assert_contents>\n+                    <has_text text="Chromosome"/>\n+                </assert_contents>\n+            </output>\n+            <output name="out_gc_profile" file="output/GC_profile.targetedRegions.cnp" />\n+        </test>\n+    </tests>\n+    <help><![CDATA[\n+Control-FREEC\n+=============\n+\n+Control-FREEC is a tool for detection of copy-number changes and allelic imbalances (including loss of heterozygosity/LOH) using deep-sequencing data originally developed by the Bioinformatics Laboratory of Institut Curie (Paris). Nowdays, Control-FREEC is supported by the team of Valentina Boeva at Institut Cochin, Inserm (Paris).\n+\n+Control-FREEC automatically computes, normalizes, segments copy number and beta allele frequency (BAF) profiles, then calls copy number alterations and LOH. The control (matched normal) sample is optional for whole genome sequencing data but mandatory for whole exome or targeted sequencing data. For whole genome sequencing data analysis, the program can also use mappability data (files created by GEM).\n+\n+**Input for CNA detection:** Aligned single-end, paired-end or mate-pair data in BAM format.\n+\n+**Output:** Regions of gain, loss and LOH and normalized copy number.\n+\n+For more information (f.e. to run Control-FREEC on non-human data) see the Control-FREEC documentation_.\n+\n+.. _documentation: http://boevalab.inf.ethz.ch/FREEC/index.html#documentation\n+\n+    ]]></help>\n+     <citations>\n+         <citation type="doi">10.1093/bioinformatics/btr670</citation>\n+         <citation type="doi">10.1093/bioinformatics/btq635</citation>\n+    </citations>\n+</tool>\n'
b
diff -r 000000000000 -r e46944a59b31 macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml Thu Aug 13 09:50:35 2020 -0400
b
b'@@ -0,0 +1,154 @@\n+<macros>\n+    <token name="@WRAPPER_VERSION@">@TOOL_VERSION@+galaxy0</token>\n+    <token name="@TOOL_VERSION@">11.6</token>\n+    <xml name="reference_interface">\n+        <conditional name="reference_source">\n+            <param name="ref_selector" type="select" label="Choose the source for the reference genome">\n+                <option value="cached">Locally cached</option>\n+                <option value="history">History</option>\n+            </param>\n+            <when value="cached">\n+                <param argument="--ref" type="select" label="Reference genome">\n+                    <options from_data_table="fasta_indexes">\n+                        <!-- <filter type="data_meta" column="dbkey" key="dbkey" ref="input_sample_file" /> -->\n+                        <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file" />\n+                    </options>\n+                </param>\n+            </when>\n+            <when value="history">\n+                <param argument="--ref" type="data" format="fasta" label="Reference" help="Reference sequence" />\n+            </when>\n+        </conditional>\n+    </xml>\n+    <xml name="WGS">\n+        <param name="degree" type="select" label="Degree of polynomial" help="">\n+            <option value="34" selected="True">GC-content based normalization, WGS (3&amp;4)</option>\n+            <option value="1">control-read-count-based normalization, WES (1)</option>\n+        </param>\n+        <param name="forceGCcontentNormalization" type="select" label="Read Count (RC) correction for GC-content bias and low mappability" help="Set to 1 or 2 to correct the Read Count (RC) for GC-content bias and low mappability even when you have a control sample. - Default (WGS): 0 - Default (WES): 1">\n+            <option value="0" selected="True">simply model "sample RC ~ Control RC" (0)</option>\n+            <option value="1">normalize the sample and the control RC using GC-content and then calculate the ratio "Sample RC/contol RC" (1)</option>\n+            <option value="2">model "sample RC ~ Control RC" bias, and then normalize for GC-content (2)</option>\n+        </param>\n+        <param name="minCNAlength" type="select" label="Minimal number of consecutive windows to call a CNA" help="">\n+            <option value="1" selected="True">WGS (1)</option>\n+            <option value="3">WES (3)</option>\n+        </param>\n+        <param name="minimalSubclonePresence" type="integer" label="Detects subclones present in x% of cell population" value="20" help="Default: 100 (meaning &quot;do not look for subclones&quot;) Suggested: 20 for WGS and 30 for WES." />\n+        <param name="readCountThreshold" type="integer" label="Threshold on the minimal number of reads per window" value="10" help="Threshold on the minimal number of reads per window in the control sample. Useful for exome-seq or targeted sequencing data. Default: 10 recommended value >=50 for for exome data." />\n+        <section name="window_section" title="Select window size" expanded="true">\n+            <param name="window" type="integer" value="50000" label="Explicit window size" help="Higher priority than coefficientOfVariation. Ex: for whole genome sequencing: &quot;50000&quot;; for whole exome sequencing: &quot;0&quot;" />\n+            <param name="step" type="integer" value="10000" label="Step" help="Used only when &quot;window&quot; is specified. Do not use for exome sequencing (instead set &quot;0&quot;). Ex: 10000" />\n+        </section>\n+    </xml>\n+    <xml name="WES">\n+        <param name="degree" type="select" label="Degree of polynomial" help="">\n+            <option value="34">GC-content based normalization, WGS (3&amp;4)</option>\n+            <option value="1" selected="True">control-read-count-based normalization, WES (1)</option>\n+        </param>\n+        <param name="forceGCcontentNormalization" type="select" label="Read Count (RC) cor'..b't resequencing data (e.g., exome-seq) to avoid false positive predictions due to non-uniform capture" />\n+            <param name="ploidy" type="text" value="2" label="Genome ploidy" help="In case of doubt, you can set different values and Control-FREEC will select the one that explains most observed CNAs. Ex: 2 or 2,3,4" />\n+            <param name="printNA" type="boolean" checked="true" truevalue="TRUE" falsevalue="FALSE" label="Print NA to avoid &quot;-1&quot;" help="Set &quot;No&quot; to avoid printing &quot;-1&quot; to the _ratio.txt files. Useful for exome-seq or targeted sequencing data." />\n+            <param name="sex" type="select" label="Sample sex" help="&quot;XX&quot; will exclude chr Y from the analysis. &quot;XY&quot; will not annotate one copy of chr X and Y as a loss.">\n+                <option value="XY" selected="True">XY</option>\n+                <option value="XX">XX</option>\n+                <option value="no value"></option>\n+            </param>\n+            <param name="telocentromeric" type="integer" value="50000" label="Length of pre-telomeric and pre-centromeric regions" help="Control-FREEC will not output small CNAs and LOH found within these regions (they are likely to be false because of mappability/genome assembly issues). 50000 is OK for human/mouse genomes. Use smaller values for yeasts and flies. Do not set anything for exome-seq data." />\n+            <!-- uniqueMatch if true -> gemMappabilityFile is needed-->\n+        <!-- BAF parameters -->\n+            <!-- makePileup: path to a BED or VCF file with SNP positions -->\n+            <!-- fastaFile -->\n+            <!-- minimalCoveragePerPosition -->\n+            <!-- minimalQualityPerPosition -->\n+            <!-- shiftInQuality -->\n+            <!-- SNPfile -->\n+    </xml>\n+    <xml name="mateOrientation_selector">\n+        <param name="mateOrientation_selector" type="select" display="radio" label="Format of reads" help="If you specify orientation of your reads then only reads mapping in the corresponding orientation will be used for calculation of copy number profiles.">\n+            <option value="0" selected="True">single-end (0)</option>\n+            <option value="RF">Illumina mate-pair (RF)</option>\n+            <option value="FR">Illumina paired-end (FR)</option>\n+            <option value="FF">SOLiD mate-pair (FF)</option>\n+        </param>\n+    </xml>\n+    <xml name="input_control_sample">\n+        <param name="input_sample_file" type="data" format="bam" multiple="false" label="Sample file" help="Sample file in .BAM format." />\n+        <param name="input_control_file" type="data" format="bam" multiple="false" label="Control file" help="Control file in .BAM format." />\n+    </xml>\n+    <xml name="wes_input_files">\n+        <expand macro="input_control_sample" />\n+        <param name="input_capture_file" optional="true" type="data" format="bed" multiple="false" label="BED file with capture regions" help="Capture regions in .BED format." />\n+        <expand macro="mateOrientation_selector" />\n+    </xml>\n+    <xml name="def_input_files">\n+        <expand macro="input_control_sample" />\n+        <expand macro="mateOrientation_selector" />\n+    </xml>\n+    <xml name="output_section">\n+        <section name="output_section" title="Outputs" expanded="false">\n+            <param name="BedGraphOutput" type="boolean" checked="false" truevalue="TRUE" falsevalue="FALSE" label="BedGraph Output for UCSC genome browser" help="Set &quot;Yes&quot; if you want an additional output in BedGraph format for the UCSC genome browser." />\n+            <param name="makeGraph" type="boolean" checked="false" label="Visualize normalized copy number profile with predicted CNAs" help="Currently only human genomes are supported!" />\n+            <param name="circos_data" type="boolean" checked="false" label="2D data track file for Circos" help="Output: chrName startPos endPos log2Ratio" />\n+        </section>\n+    </xml>\n+</macros>\n\\ No newline at end of file\n'
b
diff -r 000000000000 -r e46944a59b31 ratio2circos.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ratio2circos.py Thu Aug 13 09:50:35 2020 -0400
[
@@ -0,0 +1,20 @@
+import argparse
+import math
+import os
+
+parser = argparse.ArgumentParser()
+parser.add_argument('-i', '--input', required=True, default='./output/sample.bam_ratio.BedGraph', type=str)
+parser.add_argument('-o', '--output', required=True, default='./output/sample.bam_ratio_log2_circos.txt', type=str)
+parser.add_argument('-p', '--ploidy', required=True, default=2, type=int)
+args = parser.parse_args()
+
+path = os.path.dirname(args.input)
+output = os.path.join(path, args.output)
+
+with open(args.input) as file:
+    for line in file.readlines():
+        ls = line.split()
+        if ls[0] != "track" and float(ls[3]) > 0:
+            log2_ratio = math.log2(float(ls[3]) / args.ploidy)
+            with open(output, "a") as out:
+                out.write("{}\t{}\t{}\t{}\n".format(ls[0], ls[1], ls[2], log2_ratio))
b
diff -r 000000000000 -r e46944a59b31 test-data/capture.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/capture.bed Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,37 @@
+chrM 576 647
+chrM 647 1601
+chrM 1601 1670
+chrM 1670 3229
+chrM 3229 3304
+chrM 3306 4262
+chrM 4262 4331
+chrM 4328 4400
+chrM 4401 4469
+chrM 4469 5511
+chrM 5511 5579
+chrM 5586 5655
+chrM 5656 5729
+chrM 5760 5826
+chrM 5825 5891
+chrM 5903 7445
+chrM 7445 7514
+chrM 7517 7585
+chrM 7585 8269
+chrM 8294 8364
+chrM 8365 8572
+chrM 8526 9207
+chrM 9206 9990
+chrM 9990 10058
+chrM 10058 10404
+chrM 10404 10469
+chrM 10469 10766
+chrM 10759 12137
+chrM 12137 12206
+chrM 12206 12265
+chrM 12265 12336
+chrM 12336 14148
+chrM 14148 14673
+chrM 14673 14742
+chrM 14746 15887
+chrM 15887 15953
+chrM 15955 16023
b
diff -r 000000000000 -r e46944a59b31 test-data/fasta_indexes.loc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/fasta_indexes.loc Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,26 @@
+#This is a sample file distributed with Galaxy that enables tools
+#to use a directory of Samtools indexed sequences data files.  You will need
+#to create these data files and then create a fasta_indexes.loc file
+#similar to this one (store it in this directory) that points to
+#the directories in which those files are stored. The fasta_indexes.loc
+#file has this format (white space characters are TAB characters):
+#
+# <unique_build_id> <dbkey> <display_name> <file_base_path>
+#
+#So, for example, if you had hg19 Canonical indexed stored in
+#
+# /depot/data2/galaxy/hg19/sam/,
+#
+#then the fasta_indexes.loc entry would look like this:
+#
+#hg19canon hg19 Human (Homo sapiens): hg19 Canonical /depot/data2/galaxy/hg19/sam/hg19canon.fa
+#
+#and your /depot/data2/galaxy/hg19/sam/ directory
+#would contain hg19canon.fa and hg19canon.fa.fai files.
+#
+#Your fasta_indexes.loc file should include an entry per line for
+#each index set you have stored.  The file in the path does actually
+#exist, but it should never be directly used. Instead, the name serves
+#as a prefix for the index file.  For example:
+#
+test_buildid hg17 test_displayname ${__HERE__}/genome.fasta
b
diff -r 000000000000 -r e46944a59b31 test-data/genome.fasta
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/genome.fasta Thu Aug 13 09:50:35 2020 -0400
b
b'@@ -0,0 +1,333 @@\n+>chrM\n+NNNCACAGGTCTATCACCCTATTAACCACTCACGGGAGCTCTCCATGCAT\n+TTGGTATTTTCGTCTGGGGGGTGTGCACGCGATAGCATTGCGAGACGCTG\n+GAGCCGGAGCACCCTATGTCGCAGTATCTGTCTTTGATTCCTGCCTCATT\n+CTATTATTTATCGCACCTACGTTCAATATTACAGGCGAACATACCTACTA\n+AAGTGTGTTAATTAATTAATGCTTGTAGGACATAATAATAACAATTGAAT\n+GTCTGCACAGCCGCTTTCCACACAGACATCATAACAAAAAATTTCCACCA\n+AACCCCCCCCTCCCCCCGCTTCTGGCCACAGCACTTAAACACATCTCTGC\n+CAAACCCCAAAAACAAAGAACCCTAACACCAGCCTAACCAGATTTCAAAT\n+TTTATCTTTAGGCGGTATGCACTTTTAACAGTCACCCCCCAACTAACACA\n+TTATTTTCCCCTCCCACTCCCATACTACTAATCTCATCAATACAACCCCC\n+GCCCATCCTACCCAGCACACACACACCGCTGCTAACCCCATACCCCGAAC\n+CAACCAAACCCCAAAGACACCCCCCACAGTTTATGTAGCTTACCTCCTCA\n+AAGCAATACACTGAAAATGTTTAGACGGGCTCACATCACCCCATAAACAA\n+ATAGGTTTGGTCCTAGCCTTTCTATTAGCTCTTAGTAAGATTACACATGC\n+AAGCATCCCCGTTCCAGTGAGTTCACCCTCTAAATCACCACGATCAAAAG\n+GGACAAGCATCAAGCACGCAGCAATGCAGCTCAAAACGCTTAGCCTAGCC\n+ACACCCCCACGGGAAACAGCAGTGATTAACCTTTAGCAATAAACGAAAGT\n+TTAACTAAGCTATACTAACCCCAGGGTTGGTCAATTTCGTGCCAGCCACC\n+GCGGTCACACGATTAACCCAAGTCAATAGAAGCCGGCGTAAAGAGTGTTT\n+TAGATCACCCCCTCCCCAATAAAGCTAAAACTCACCTGAGTTGTAAAAAA\n+CTCCAGTTGACACAAAATAGACTACGAAAGTGGCTTTAACATATCTGAAC\n+ACACAATAGCTAAGACCCAAACTGGGATTAGATACCCCACTATGCTTAGC\n+CCTAAACCTCAACAGTTAAATCAACAAAACTGCTCGCCAGAACACTACGA\n+GCCACAGCTTAAAACTCAAAGGACCTGGCGGTGCTTCATATCCCTCTAGA\n+GGAGCCTGTTCTGTAATCGATAAACCCCGATCAACCTCACCACCTCTTGC\n+TCAGCCTATATACCGCCATCTTCAGCAAACCCTGATGAAGGCTACAAAGT\n+AAGCGCAAGTACCCACGTAAAGACGTTAGGTCAAGGTGTAGCCCATGAGG\n+TGGCAAGAAATGGGCTACATTTTCTACCCCAGAAAACTACGATAGCCCTT\n+ATGAAACTTAAGGGTCGAAGGTGGATTTAGCAGTAAACTGAGAGTAGAGT\n+GCTTAGTTGAACAGGGCCCTGAAGCGCGTACACACCGCCCGTCACCCTCC\n+TCAAGTATACTTCAAAGGACATTTAACTAAAACCCCTACGCATTTATATA\n+GAGGAGACAAGTCGTAACATGGTAAGTGTACTGGAAAGTGCACTTGGACG\n+AACCAGAGTGTAGCTTAACACAAAGCACCCAACTTACACTTAGGAGATTT\n+CAACTTAACTTGACCGCTCTGAGCTAAACCTAGCCCCAAACCCACTCCAC\n+CTTACTACCAGACAACCTTAGCCAAACCATTTACCCAAATAAAGTATAGG\n+CGATAGAAATTGAAACCTGGCGCAATAGATATAGTACCGCAAGGGAAAGA\n+TGAAAAATTATAACCAAGCATAATATAGCAAGGACTAACCCCTATACCTT\n+CTGCATAATGAATTAACTAGAAATAACTTTGCAAGGAGAGCCAAAGCTAA\n+GACCCCCGAAACCAGACGAGCTACCTAAGAACAGCTAAAAGAGCACACCC\n+GTCTATGTAGCAAAATAGTGGGAAGATTTATAGGTAGAGGCGACAAACCT\n+ACCGAGCCTGGTGATAGCTGGTTGTCCAAGATAGAATCTTAGTTCAACTT\n+TAAATTTGCCCACAGAACCCTCTAAATCCCCTTGTAAATTTAACTGTTAG\n+TCCAAAGAGGAACAGCTCTTTGGACACTAGGAAAAAACCTTGTAGAGAGA\n+GTAAAAAATTTAACACCCATAGTAGGCCTAAAAGCAGCCACCAATTAAGA\n+AAGCGTTCAAGCTCAACACCCACTACCTAAAAAATCCCAAACATATAACT\n+GAACTCCTCACACCCAATTGGACCAATCTATCACCCTATAGAAGAACTAA\n+TGTTAGTATAAGTAACATGAAAACATTCTCCTCCGCATAAGCCTGCGTCA\n+GATCAAAACACTGAACTGACAATTAACAGCCCAATATCTACAATCAACCA\n+ACAAGTCATTATTACCCTCACTGTCAACCCAACACAGGCATGCTCATAAG\n+GAAAGGTTAAAAAAAGTAAAAGGAACTCGGCAAACCTTACCCCGCCTGTT\n+TACCAAAAACATCACCTCTAGCATCACCAGTATTAGAGGCACCGCCTGCC\n+CAGTGACACATGTTTAACGGCCGCGGTACCCTAACCGTGCAaaggtagca\n+taatcacttgttccttaaatagggacctgtatgaatggctccacgagggt\n+tcagctgtctcttacttttaaccagtgaaattgacctgcccgtgaagagg\n+cgggcatgacacagcaagacgagaagaccctatggagctttaatttaTTA\n+ATGCAAACAGTACCTAACAAACCCACAGGTCCTAAACTACCAAACCTGCA\n+TTAAAAATTTCGGTTGGGGCGACCTCGGAGCAGAACCCAACCTCCGAGCA\n+GTACATGCTAAGACTTCACCAGTCAAAGCGAACTACTATACTCAATTGAT\n+CCAATAACTTGACCAACGGAACAAGTTACCCTAGGGATAACAGCGCAATC\n+CTATTCTAGAGTCCATATCAACAATAGGGTTTACGACCTCGATGTTGGAT\n+CAGGACATCCCGATGGTGCAGCCGCTATTAAAGGTTCGTTTGTTCAACGA\n+TTAAAGTCCTACGTGATCTGAGTTCAGACCGGAGTAATCCAGGTCGGTTT\n+CTATCTACTTCAAATTCCTCCCTGTACGAAAGGACAAGAGAAATAAGGCC\n+TACTTCACAAAGCGCCTTCCCCCGTAAATGATATCATCTCAACTTAGTAT\n+TATACCCACACCCACCCAAGAACAGGGTTTgttaagatggcagagcccgg\n+taatcgcataaaacttaaaactttacagtcagaggttcaattcctcttct\n+taacaacaTACCCATGGCCAACCTCCTACTCCTCATTGTACCCATTCTAA\n+TCGCAATGGCATTCCTAATGCTTACCGAACGAAAAATTCTAGGCTATATA\n+CAACTACGCAAAGGCCCCAACGTTGTAGGCCCCTACGGGCTACTACAACC\n+CTTCGCTGACGCCATAAAACTCTTCACCAAAGAGCCCCTAAAACCCGCCA\n+CATCTACCATCACCCTCTACATCACCGCCCCGACCTTAGCTCTCACCATC\n+GCTCTTCTACTATGAACCCCCCTCCCCATACCCAACCCCCTGGTCAACCT\n+CAACCTAGGCCTCCTATTTATTCTAGCCACCTCTAGCCTAGCCGTTTACT\n+CAATCCTCTGATCAGGGTGAGCATCAAACTCAAACTACGCCCTGATCGGC\n+GCACTGCGAGCAGTAGCCCAAACAATCTCATATGAAGTCACCCTAGCCAT\n+CATTCTACTATCAACATTACTAATAAGTGGCTCCTTTAACCTCTCCACCC\n+TTATCACAACACAAGAACACC'..b'TTAGTTACCGCTAACAACCTATT\n+CCAACTGTTCATCGGCTGAGAGGGCGTAGGAATTATATCCTTCTTGCTCA\n+TCAGTTGATGATACGCCCGAGCAGATGCCAACACAGCAGCCATTCAAGCA\n+GTCCTATACAACCGTATCGGCGATATCGGTTTCATCCTCGCCTTAGCATG\n+ATTTATCCTACACTCCAACTCATGAGACCCACAACAAATAGCCCTTCTAA\n+ACGCTAATCCAAGCCTCACCCCACTACTAGGCCTCCTCCTAGCAGCAGCA\n+GGCAAATCAGCCCAATTAGGTCTCCACCCCTGACTCCCCTCAGCCATAGA\n+AGGCCCCACCCCAGTCTCAGCCCTACTCCACTCAAGCACTATAGTTGTAG\n+CAGGAATCTTCTTACTCATCCGCTTCCACCCCCTAGCAGAAAATAGCCCA\n+CTAATCCAAACTCTAACACTATGCTTAGGCGCTATCACCACTCTGTTCGC\n+AGCAGTCTGCGCCCTTACACAAAATGACATCAAAAAAATCGTAGCCTTCT\n+CCACTTCAAGTCAACTAGGACTCATAATAGTTACAATCGGCATCAACCAA\n+CCACACCTAGCATTCCTGCACATCTGTACCCACGCCTTCTTCAAAGCCAT\n+ACTATTTATGTGCTCCGGGTCCATCATCCACAACCTTAACAATGAACAAG\n+ATATTCGAAAAATAGGAGGACTACTCAAAACCATACCTCTCACTTCAACC\n+TCCCTCACCATTGGCAGCCTAGCATTAGCAGGAATACCTTTCCTCACAGG\n+TTTCTACTCCAAAGACCACATCATCGAAACCGCAAACATATCATACACAA\n+ACGCCTGAGCCCTATCTATTACTCTCATCGCTACCTCCCTGACAAGCGCC\n+TATAGCACTCGAATAATTCTTCTCACCCTAACAGGTCAACCTCGCTTCCC\n+CACCCTTACTAACATTAACGAAAATAACCCCACCCTACTAAACCCCATTA\n+AACGCCTGGCAGCCGGAAGCCTATTCGCAGGATTTCTCATTACTAACAAC\n+ATTTCCCCCGCATCCCCCTTCCAAACAACAATCCCCCTCTACCTAAAACT\n+CACAGCCCTCGCTGTCACTTTCCTAGGACTTCTAACAGCCCTAGACCTCA\n+ACTACCTAACCAACAAACTTAAAATAAAATCCCCACTATGCACATTTTAT\n+TTCTCCAACATACTCGGATTCTACCCTAGCATCACACACCGCACAATCCC\n+CTATCTAGGCCTTCTTACGAGCCAAAACCTGCCCCTACTCCTCCTAGACC\n+TAACCTGACTAGAAAAGCTATTACCTAAAACAATTTCACAGCACCAAATC\n+TCCACCTCCATCATCACCTCAACCCAAAAAGGCATAATTAAACTTTACTT\n+CCTCTCTTTCTTCTTCCCACTCATCCTAACCCTACTCCTAATCACATAAC\n+CTATTCCCCCGAGCAATCTCAATTACAATATATACACCAACAAACAATGT\n+TCAACCAGTAACCACTACTAATCAACGCCCATAATCATACAAAGCCCCCG\n+CACCAATAGGATCCTCCCGAATCAACCCTGACCCCTCTCCTTCATAAATT\n+ATTCAGCTTCCTACACTATTAAAGTTTACCACAACCACCACCCCATCATA\n+CTCTTTCACCCACAGCACCAATCCTACCTCCATCGCTAACCCCACTAAAA\n+CACTCACCAAGACCTCAACCCCTGACCCCCATGCCTCAGGATACTCCTCA\n+ATAGCCATCGCTGTAGTATATCCAAAGACAACCATCATTCCCCCTAAATA\n+AATTAAAAAAACTATTAAACCCATATAACCTCCCCCAAAATTCAGAATAA\n+TAACACACCCGACCACACCGCTAACAATCAGTACTAAACCCCCATAAATA\n+GGAGAAGGCTTAGAAGAAAACCCCACAAACCCCATTACTAAACCCACACT\n+CAACAGAAACAAAGCATACATCATTATTCTCGCACGGACTACAACCACGA\n+CCAATGATATGAAAAACCATCGTTGTATTTCAACTACAAGAACACCAATG\n+ACCCCAATACGCAAAATTAACCCCCTAATAAAATTAATTAACCACTCATT\n+CATCGACCTCCCCACCCCATCCAACATCTCCGCATGATGAAACTTCGGCT\n+CACTCCTTGGCGCCTGCCTGATCCTCCAAATCACCACAGGACTATTCCTA\n+GCCATACACTACTCACCAGACGCCTCAACCGCCTTTTCATCAATCGCCCA\n+CATCACTCGAGACGTAAATTATGGCTGAATCATCCGCTACCTTCACGCCA\n+ATGGCGCCTCAATATTCTTTATCTGCCTCTTCCTACACATCGGGCGAGGC\n+CTATATTACGGATCATTTCTCTACTCAGAAACCTGAAACATCGGCATTAT\n+CCTCCTGCTTGCAACTATAGCAACAGCCTTCATAGGCTATGTCCTCCCGT\n+GAGGCCAAATATCATTCTGAGGGGCCACAGTAATTACAAACTTACTATCC\n+GCCATCCCATACATTGGGACAGACCTAGTTCAATGAATCTGAGGAGGCTA\n+CTCAGTAGACAGTCCCACCCTCACACGATTCTTTACCTTTCACTTCATCT\n+TACCCTTCATTATTGCAGCCCTAGCAGCACTCCACCTCCTATTCTTGCAC\n+GAAACGGGATCAAACAACCCCCTAGGAATCACCTCCCATTCCGATAAAAT\n+CACCTTCCACCCTTACTACACAATCAAAGACGCCCTCGGCTTACTTCTCT\n+TCCTTCTCTCCTTAATGACATTAACACTATTCTCACCAGACCTCCTAGGC\n+GACCCAGACAATTATACCCTAGCCAACCCCTTAAACACCCCTCCCCACAT\n+CAAGCCCGAATGATATTTCCTATTCGCCTACACAATTCTCCGATCCGTCC\n+CTAACAAACTAGGAGGCGTCCTTGCCCTATTACTATCCATCCTCATCCTA\n+GCAATAATCCCCATCCTCCATATATCCAAACAACAAAGCATAATATTTCG\n+CCCACTAAGCCAATCACTTTATTGACTCCTAGCCGCAGACCTCCTCATTC\n+TAACCTGAATCGGAGGACAACCAGTAAGCTACCCTTTTACCATCATTGGA\n+CAAGTAGCATCCGTACTATACTTCACAACAATCCTAATCCTAATACCAAC\n+TATCTCCCTAATTGAAAACAAAATACTCAAATGGGCCTGTCCTTGTAGTA\n+TAAACTAATACACCAGTCTTGTAAACCGGAGACGAAAACCTTTTTCCAAG\n+GACAAATCAGAGAAAAAGTCTTTAACTCCACCATTAGCACCCAAAGCTAA\n+GATTCTAATTTAAACTATTCTCTGTTCTTTCATGGGGAAGCAGATTTGGG\n+TACCACCCAAGTATTGACTCACCCATCAACAACCGCTATGTATTTCGTAC\n+ATTACTGCCAGCCACCATGAATATTGTACGGTACCATAAATACTTGACCA\n+CCTGTAGTACATAAAAACCCAACCCACATCAAACCCCCCCCCCCCATGCT\n+TACAAGCAAGTACAGCAATCAACCTTCAACTATCACACATCAACTGCAAC\n+TCCAAAGCCACCCCTCACCCACTAGGATACCAACAAACCTACCCACCCTT\n+AACAGTACATAGTACATAAAGTCATTTACCGTACATAGCACATTACAGTC\n+AAATCCCTTCTCGTCCCCATGGATGACCCCCCTCAGATAGGGGTCCCTTG\n+ACCACCATCCTCCGTGAAATCAATATCCCGCACAAGAGTGCTACTCTCCT\n+CGCTCCGGGCCCATAACACTTGGGGGTAGCTAAAGTGAACTGTATCCGAC\n+ATCTGGTTCCTACTTCAGGGCCATAAAGCCTAAATAGCCCACACGTTCCC\n+CTTAAATAAGACATCACGATG\n'
b
diff -r 000000000000 -r e46944a59b31 test-data/genome.fasta.fai
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/genome.fasta.fai Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,1 @@
+chrM 16571 6 50 51
b
diff -r 000000000000 -r e46944a59b31 test-data/normal.bam
b
Binary file test-data/normal.bam has changed
b
diff -r 000000000000 -r e46944a59b31 test-data/output/GC_profile.targetedRegions.cnp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output/GC_profile.targetedRegions.cnp Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,37 @@
+M 576 0.416667 1
+M 647 0.456544 1
+M 1601 0.428571 1
+M 1670 0.430128 1
+M 3229 0.381579 1
+M 3306 0.477534 1
+M 4262 0.285714 1
+M 4328 0.479452 1
+M 4401 0.449275 1
+M 4469 0.430489 1
+M 5511 0.347826 1
+M 5586 0.442857 1
+M 5656 0.405405 1
+M 5760 0.462687 1
+M 5825 0.432836 1
+M 5903 0.462087 1
+M 7445 0.485714 1
+M 7517 0.231884 1
+M 7585 0.461314 1
+M 8294 0.338028 1
+M 8365 0.394231 1
+M 8526 0.444282 1
+M 9206 0.467516 1
+M 9990 0.26087 1
+M 10058 0.403458 1
+M 10404 0.227273 1
+M 10469 0.42953 1
+M 10759 0.444525 1
+M 12137 0.357143 1
+M 12206 0.466667 1
+M 12265 0.347222 1
+M 12336 0.44898 1
+M 14148 0.429658 1
+M 14673 0.385714 1
+M 14746 0.460595 1
+M 15887 0.38806 1
+M 15955 0.333333 1
b
diff -r 000000000000 -r e46944a59b31 test-data/output/control.bam_control.cpn
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output/control.bam_control.cpn Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,17 @@
+M 0 4999 2091
+M 1000 5999 535
+M 2000 6999 586
+M 3000 7999 552
+M 4000 8999 515
+M 5000 9999 506
+M 6000 10999 414
+M 7000 11999 402
+M 8000 12999 407
+M 9000 13999 445
+M 10000 14999 589
+M 11000 15999 640
+M 12000 16999 594
+M 13000 17999 482
+M 14000 18999 378
+M 15000 19999 162
+M 16000 20999 66
b
diff -r 000000000000 -r e46944a59b31 test-data/output/sample.bam_info.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output/sample.bam_info.txt Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,13 @@
+Program_Version v11.6
+Sample_Name sample.bam
+Control_Used True
+CGcontent_Used False
+Mappability_Used False
+Looking_For_Subclones False
+Breakpoint_Threshold 0.8
+Window 5000
+Number_Of_Reads|Pairs_In_Sample 657
+Number_Of_Reads|Pairs_In_Control 3348
+Output_Ploidy 2
+Sample_Purity 1
+Good_Polynomial_Fit True
b
diff -r 000000000000 -r e46944a59b31 test-data/output/sample.bam_ratio.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output/sample.bam_ratio.txt Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,18 @@
+Chromosome Start Ratio MedianRatio CopyNumber
+M 1 0.0141987 1.0003 2
+M 1001 1.0003 1.0003 2
+M 2001 0.946506 1.0003 2
+M 3001 1.00877 1.0003 2
+M 4001 1.01629 1.0003 2
+M 5001 1.00938 1.0003 2
+M 6001 0.911101 1.0003 2
+M 7001 1.03405 1.0003 2
+M 8001 1.04266 1.0003 2
+M 9001 0.997997 1.0003 2
+M 10001 1.08042 1.0003 2
+M 11001 1.01 1.0003 2
+M 12001 0.942906 1.0003 2
+M 13001 0.803137 1.0003 2
+M 14001 0.73252 1.0003 2
+M 15001 -1 1.0003 2
+M 16001 -1 1.0003 2
b
diff -r 000000000000 -r e46944a59b31 test-data/output/sample.bam_sample.cpn
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/output/sample.bam_sample.cpn Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,17 @@
+M 0 4999 395
+M 1000 5999 110
+M 2000 6999 109
+M 3000 7999 112
+M 4000 8999 111
+M 5000 9999 110
+M 6000 10999 93
+M 7000 11999 103
+M 8000 12999 105
+M 9000 13999 106
+M 10000 14999 125
+M 11000 15999 132
+M 12000 16999 110
+M 13000 17999 87
+M 14000 18999 68
+M 15000 19999 27
+M 16000 20999 8
b
diff -r 000000000000 -r e46944a59b31 test-data/tumor.bam
b
Binary file test-data/tumor.bam has changed
b
diff -r 000000000000 -r e46944a59b31 tool-data/fasta_indexes.loc.sample
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool-data/fasta_indexes.loc.sample Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,29 @@
+#This is a sample file distributed with Galaxy that enables tools
+#to use a directory of Samtools indexed sequences data files.  You will need
+#to create these data files and then create a fasta_indexes.loc file
+#similar to this one (store it in this directory) that points to
+#the directories in which those files are stored. The fasta_indexes.loc
+#file has this format (white space characters are TAB characters):
+#
+# <unique_build_id> <dbkey> <display_name> <file_base_path>
+#
+#So, for example, if you had hg19 Canonical indexed stored in
+#
+# /depot/data2/galaxy/hg19/sam/,
+#
+#then the fasta_indexes.loc entry would look like this:
+#
+#hg19canon hg19 Human (Homo sapiens): hg19 Canonical /depot/data2/galaxy/hg19/sam/hg19canon.fa
+#
+#and your /depot/data2/galaxy/hg19/sam/ directory
+#would contain hg19canon.fa and hg19canon.fa.fai files.
+#
+#Your fasta_indexes.loc file should include an entry per line for
+#each index set you have stored.  The file in the path does actually
+#exist, but it should never be directly used. Instead, the name serves
+#as a prefix for the index file.  For example:
+#
+#hg18canon hg18 Human (Homo sapiens): hg18 Canonical /depot/data2/galaxy/hg18/sam/hg18canon.fa
+#hg18full hg18 Human (Homo sapiens): hg18 Full /depot/data2/galaxy/hg18/sam/hg18full.fa
+#hg19canon hg19 Human (Homo sapiens): hg19 Canonical /depot/data2/galaxy/hg19/sam/hg19canon.fa
+#hg19full hg19 Human (Homo sapiens): hg19 Full /depot/data2/galaxy/hg19/sam/hg19full.fa
b
diff -r 000000000000 -r e46944a59b31 tool_data_table_conf.xml.sample
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_data_table_conf.xml.sample Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,8 @@
+<!-- Use the file tool_data_table_conf.xml.oldlocstyle if you don't want to update your loc files as changed in revision 4550:535d276c92bc-->
+<tables>
+    <!-- Location of SAMTools indexes for FASTA files -->
+    <table name="fasta_indexes" comment_char="#">
+        <columns>value, dbkey, name, path</columns>
+        <file path="tool-data/fasta_indexes.loc" />
+    </table>
+</tables>
b
diff -r 000000000000 -r e46944a59b31 tool_data_table_conf.xml.test
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_data_table_conf.xml.test Thu Aug 13 09:50:35 2020 -0400
b
@@ -0,0 +1,7 @@
+<tables>
+    <!-- Location of SAMTools indexed FASTA files -->
+    <table name="fasta_indexes" comment_char="#">
+        <columns>value, dbkey, name, path</columns>
+        <file path="${__HERE__}/test-data/fasta_indexes.loc" />
+    </table>
+</tables>