Mercurial > repos > iuc > control_freec
comparison control_freec.xml @ 1:2c6349fb175c draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freec commit a8b671c0a0d277296751dd2ae403603bea1c58dd"
| author | iuc |
|---|---|
| date | Tue, 18 Aug 2020 08:52:45 -0400 |
| parents | e46944a59b31 |
| children | f923c54a17ee |
comparison
equal
deleted
inserted
replaced
| 0:e46944a59b31 | 1:2c6349fb175c |
|---|---|
| 11 #if str($reference_source.ref_selector) == 'history': | 11 #if str($reference_source.ref_selector) == 'history': |
| 12 ln -s '$reference_source.ref' ./genome.fa && | 12 ln -s '$reference_source.ref' ./genome.fa && |
| 13 samtools faidx ./genome.fa 2>&1 || echo 'Error running samtools faidx for indexing fasta reference for control-freec' >&2 && | 13 samtools faidx ./genome.fa 2>&1 || echo 'Error running samtools faidx for indexing fasta reference for control-freec' >&2 && |
| 14 #else | 14 #else |
| 15 ln -s '$reference_source.ref.fields.path' ./genome.fa && | 15 ln -s '$reference_source.ref.fields.path' ./genome.fa && |
| 16 ln -s '${reference_source.ref.fields.path}.fai' ./genome.fa.fai && | 16 cp '${reference_source.ref.fields.path}.fai' ./genome.fa.fai && |
| 17 #end if | 17 #end if |
| 18 | 18 |
| 19 #if int($WGS_WES.advanced_settings.window_section.window) == 0 | 19 #if int($WGS_WES.advanced_settings.window_section.window) == 0 |
| 20 ln -s '$WGS_WES.input_capture_file' ./capture.bed && | 20 ln -s '$WGS_WES.input_capture_file' ./capture.bed && |
| 21 | |
| 22 cat ./capture.bed | cut -f 1 | sort | uniq > ./capture.bed_tmp && | |
| 23 cp ./genome.fa.fai ./genome.fa.fai_tmp && | |
| 24 awk 'NR==FNR{A[$1];next}($1 in A)' ./capture.bed_tmp ./genome.fa.fai_tmp > ./genome.fa.fai && | |
| 21 #end if | 25 #end if |
| 22 | 26 |
| 23 mkdir ./chromosomes && | 27 mkdir ./chromosomes && |
| 24 mkdir ./output && | 28 mkdir ./output && |
| 25 | 29 |
| 40 #if $output_section.makeGraph | 44 #if $output_section.makeGraph |
| 41 && R -f `which makeGraph.R` '$WGS_WES.advanced_settings.ploidy' 'output/sample.bam_ratio.txt' | 45 && R -f `which makeGraph.R` '$WGS_WES.advanced_settings.ploidy' 'output/sample.bam_ratio.txt' |
| 42 #end if | 46 #end if |
| 43 | 47 |
| 44 #if $output_section.circos_data | 48 #if $output_section.circos_data |
| 45 && python '$__tool_directory__/ratio2circos.py' | 49 && python '$__tool_directory__/ratio2circos.py' '$WGS_WES.advanced_settings.ploidy' |
| 46 -i ./output/sample.bam_ratio.BedGraph | |
| 47 -p '$WGS_WES.advanced_settings.ploidy' | |
| 48 -o sample.bam_ratio_log2_circos.txt | |
| 49 #end if | 50 #end if |
| 50 ]]></command> | 51 ]]></command> |
| 51 <configfiles> | 52 <configfiles> |
| 52 <configfile name="script_file"><![CDATA[ | 53 <configfile name="script_file"><![CDATA[ |
| 53 #import os | 54 #import os |
| 157 <filter>output_section['makeGraph']</filter> | 158 <filter>output_section['makeGraph']</filter> |
| 158 </data> | 159 </data> |
| 159 <data name="out_gc_profile" format="tabular" label="${tool.name} on ${on_string}: GC-content profile" from_work_dir="output/GC_profile.targetedRegions.cnp"> | 160 <data name="out_gc_profile" format="tabular" label="${tool.name} on ${on_string}: GC-content profile" from_work_dir="output/GC_profile.targetedRegions.cnp"> |
| 160 <filter>int(WGS_WES['advanced_settings']['window_section']['window']) == 0</filter> | 161 <filter>int(WGS_WES['advanced_settings']['window_section']['window']) == 0</filter> |
| 161 </data> | 162 </data> |
| 162 <data name="out_ratio_log2_circos" format="tabular" label="${tool.name} on ${on_string}: Circos 2D-track data" from_work_dir="output/sample.bam_ratio_log2_circos.txt"> | 163 <data name="out_ratio_log2_circos" format="tabular" label="${tool.name} on ${on_string}: Circos Log2 Ratio (2D Data Track)" from_work_dir="output/sample.bam_ratio_log2_circos.txt"> |
| 164 <filter>output_section['circos_data']</filter> | |
| 165 </data> | |
| 166 <data name="out_chr_sorted_circos" format="tabular" label="${tool.name} on ${on_string}: Circos Karyotype" from_work_dir="output/karyotype_circos.txt"> | |
| 163 <filter>output_section['circos_data']</filter> | 167 <filter>output_section['circos_data']</filter> |
| 164 </data> | 168 </data> |
| 165 </outputs> | 169 </outputs> |
| 166 <tests> | 170 <tests> |
| 167 <test expect_num_outputs="5"> | 171 <test expect_num_outputs="5"> |
