annotate segment.xml @ 0:9d9a8f230a2f draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
author iuc
date Sun, 14 May 2023 20:07:45 +0000
parents
children c4a22d0fdba5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
1 <tool id="cnvkit_segment" name="CNVkit Segment" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
2 <description>Infer copy number segments from the given coverage table</description>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
3 <macros>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
4 <import>macros.xml</import>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
5 </macros>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
6 <expand macro="xrefs"/>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
9 ln -s '$filename' ./tumor.cnr &&
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
10 #if $additional_SNP_allelic_process.vcf
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
11 ln -s '$additional_SNP_allelic_process.vcf' ./vcf_file.vcf &&
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
12 #end if
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
13 #import os
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
14 cnvkit.py segment
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
15 ./tumor.cnr
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
16 --output sample.cns
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
17 --processes \${GALAXY_SLOTS:-4}
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
18 #if $advanced_settings.dataframe
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
19 --dataframe '$advanced_settings.dataframe'
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
20 #end if
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
21 #if $advanced_settings.method == "cbs"
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
22 #set $method_val = "cbs"
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
23 --method '$method_val'
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
24 #else
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
25 --method '$advanced_settings.method'
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
26 #end if
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
27 #if str($advanced_settings.threshold)
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
28 --threshold $advanced_settings.threshold
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
29 #end if
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
30 $advanced_settings.drop_low_coverage
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
31 #if str($advanced_settings.drop_outliers)
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
32 --drop-outliers $advanced_settings.drop_outliers
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
33 #end if
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
34 $advanced_settings.smooth_cbs
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
35 #if $additional_SNP_allelic_process.vcf
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
36 --vcf ./vcf_file.vcf
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
37 #end if
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
38 #if $additional_SNP_allelic_process.sample_id
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
39 --sample-id '$additional_SNP_allelic_process.sample_id'
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
40 #end if
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
41 #if $additional_SNP_allelic_process.normal_id
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
42 --normal-id '$additional_SNP_allelic_process.normal_id'
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
43 #end if
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
44 #if str($additional_SNP_allelic_process.min_variant_depth)
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
45 --min-variant-depth $additional_SNP_allelic_process.min_variant_depth
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
46 #end if
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
47 #if str($additional_SNP_allelic_process.zygosity_freq)
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
48 --zygosity-freq $additional_SNP_allelic_process.zygosity_freq
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
49 #end if
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
50 ]]></command>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
51 <inputs>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
52 <param name="filename" type="data" format="tabular" label="Input CNR file" help="" />
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
53 <section name="additional_SNP_allelic_process" title="additional process for SNP b_allele frequencies" expanded="false">
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
54 <expand macro="additionally_SNP_process" />
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
55 </section>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
56 <section name="advanced_settings" title="Advanced settings" expanded="false">
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
57 <expand macro="segment_optional" />
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
58 </section>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
59 </inputs>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
60 <outputs>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
61 <data name="out_sample_segment" format="tabular" label="${tool.name} on ${on_string}: Sample segment" from_work_dir="sample.cns" />
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
62 </outputs>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
63 <tests>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
64 <test expect_num_outputs="1">
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
65 <param name="filename" ftype="tabular" value="tumor.cnr" />
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
66 <param name="method" value="hmm" />
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
67 <param name="threshold" value="2" />
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
68 <param name="drop_outliers" value="2" />
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
69 <param name="drop_low_coverage" value="1" />
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
70 <output name="out_sample_segment">
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
71 <assert_contents><has_text text="chromosome"/></assert_contents>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
72 </output>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
73 </test>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
74 </tests>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
75 <help><![CDATA[
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
76 Infer copy number segments from the given coverage table. Segmentation runs independently on
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
77 each chromosome arm, and can be parallelized with the processes option (except for the HMM methods), similar to batch
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
78
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
79 Segmented log2 ratios (.cns) output file contains those columns
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
80 chromosome, Start, end, gene, log2, depth, weight and number of bins covered by the segment (probes)
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
81 ]]></help>
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
82 <expand macro="citations" />
9d9a8f230a2f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cnvkit commit c35b83e4b65b211377c9f616c77d7306da48a984
iuc
parents:
diff changeset
83 </tool>