Mercurial > repos > iuc > cnvkit_coverage
annotate coverage.xml @ 0:283ab3112eea draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
author | iuc |
---|---|
date | Tue, 16 May 2023 13:14:57 +0000 |
parents | |
children | 5602cbf1153b |
rev | line source |
---|---|
0
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
1 <tool id="cnvkit_coverage" name="CNVkit Coverage" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
2 <description>Calculate coverage in the given regions from BAM read depths</description> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
3 <macros> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
5 </macros> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
6 <expand macro="xrefs"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
7 <expand macro="requirements"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
8 <command detect_errors="exit_code"><![CDATA[ |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
9 ln -s '$input_bam_file' ./tumor.bam && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
10 ln -s '$input_interval_bed' ./capture.split.bed && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
11 #if $reference_source.fasta |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
12 #if str($reference_source.ref_selector) == 'history': |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
13 ln -s '$reference_source.fasta' ./genome.fa && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
14 samtools faidx ./genome.fa 2>&1 || echo 'Error running samtools faidx for indexing fasta reference for CNVkit' >&2 && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
15 #else |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
16 ln -s '$reference_source.fasta.fields.path' ./genome.fa && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
17 ln -s '${reference_source.fasta.fields.path}.fai' ./genome.fa.fai && |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
18 #end if |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
19 #end if |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
20 #import os |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
21 cnvkit.py coverage |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
22 ./tumor.bam |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
23 ./capture.split.bed |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
24 --output sample.targetcoverage.cnn |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
25 --processes \${GALAXY_SLOTS:-4} |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
26 $count |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
27 #if str($min_mapq) |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
28 --min-mapq $min_mapq |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
29 #end if |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
30 ]]></command> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
31 <inputs> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
32 <param name="input_bam_file" type="data" format="bam" label="Sample BAM file" help="" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
33 <param name="input_interval_bed" type="data" format="bed" label="Interval BED file" help="" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
34 <expand macro="reference_interface"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
35 <param argument="--count" type="boolean" checked="false" truevalue="--count" falsevalue="" label="Get read depths by counting read midpoints within each bin" help="" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
36 <param argument="--min-mapq" optional="true" type="integer" label="Minimum mapping quality score to count a read for coverage depth" min="0" max="60" value="0" help="" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
37 </inputs> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
38 <outputs> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
39 <data name="out_capture_target_coverage" format="tabular" label="${tool.name} on ${on_string}: Sample Target coverage" from_work_dir="sample.targetcoverage.cnn" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
40 </outputs> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
41 <tests> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
42 <test expect_num_outputs="1"> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
43 <conditional name="reference_source"> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
44 <param name="ref_selector" value="history"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
45 <param name="fasta" ftype="fasta" value="genome.fasta" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
46 </conditional> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
47 <param name="input_bam_file" ftype="bam" value="tumor.bam" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
48 <param name="input_interval_bed" ftype="bed" value="capture.split.bed" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
49 <output name="out_capture_target_coverage" file="sample.targetcoverage.cnn" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
50 </test> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
51 <test expect_num_outputs="1"> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
52 <conditional name="reference_source"> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
53 <param name="ref_selector" value="cached"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
54 <param name="fasta" value="test_buildid"/> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
55 </conditional> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
56 <param name="input_bam_file" ftype="bam" value="tumor.bam" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
57 <param name="input_interval_bed" ftype="bed" value="capture.split.bed" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
58 <output name="out_capture_target_coverage" file="sample.targetcoverage.cnn" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
59 </test> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
60 </tests> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
61 <help><![CDATA[ |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
62 Summary statistics of read counts and their binning are printed to standard error |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
63 when CNVkit finishes calculating the coverage of each sample (through either the |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
64 batch or coverage commands) |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
65 |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
66 Target and antitarget bin-level coverages (.cnn) output file contains those columns |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
67 chromosome, Start, end, gene, log2 and depth |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
68 ]]></help> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
69 <expand macro="citations" /> |
283ab3112eea
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit 29b0ab3564dcf719bdb8ebd19d8b0956b0990e7a
iuc
parents:
diff
changeset
|
70 </tool> |