Mercurial > repos > iuc > concoct_cut_up_fasta
comparison cut_up_fasta.xml @ 0:b9d37d30731e draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 40a09cbfd6052f7b0295946621db1bdf58228b09"
author | iuc |
---|---|
date | Sun, 13 Mar 2022 08:43:39 +0000 |
parents | |
children | 0132036a530a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b9d37d30731e |
---|---|
1 <tool id="concoct_cut_up_fasta" name="CONCOCT: cut fasta contigs" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
2 <description>into equal length non-overlapping or overlapping parts</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"/> | |
7 <command detect_errors="exit_code"><![CDATA[ | |
8 python '$__tool_directory__/cut_up_fasta.py' | |
9 --input_fasta '$input_fasta' | |
10 #if $input_fasta.is_of_type('fasta.gz'): | |
11 --gzipped | |
12 #end if | |
13 --chunk_size $chunk_size | |
14 --overlap_size $overlap_size | |
15 $merge_last | |
16 #if str($output_bed_param) == 'yes': | |
17 --output_bed '$output_bed' | |
18 #end if | |
19 --output_fasta '$output_fasta' | |
20 ]]></command> | |
21 <inputs> | |
22 <param name="input_fasta" type="data" format="fasta,fasta.gz" label="Fasta contigs file"/> | |
23 <param argument="--chunk_size" type="integer" value="1999" label="Chunk size"/> | |
24 <param argument="--overlap_size" type="integer" value="1900" label="Overlap size" help="Zero value produces non-overlapping parts"/> | |
25 <param argument="--merge_last" type="boolean" truevalue="--merge_last" falsevalue="" checked="false" label="Concatenate final part to last contig?"/> | |
26 <param name="output_bed_param" type="select" label="Output bed file with exact regions of the original contigs corresponding to the newly created contigs?" help="Can be used as input to the SAMTools bedcov tool"> | |
27 <option value="no" selected="true">No</option> | |
28 <option value="yes">Yes</option> | |
29 </param> | |
30 </inputs> | |
31 <outputs> | |
32 <data name="output_bed" format="bed" label="${tool.name} on ${on_string} (bed)"> | |
33 <filter>output_bed_param == 'yes'</filter> | |
34 </data> | |
35 <data name="output_fasta" format="fasta" label="${tool.name} on ${on_string} (contigs)"/> | |
36 </outputs> | |
37 <tests> | |
38 <!-- default settings --> | |
39 <test expect_num_outputs="1"> | |
40 <param name="input_fasta" value="input.fasta.gz" ftype="fasta.gz"/> | |
41 <output name="output_fasta" ftype="fasta"> | |
42 <assert_contents> | |
43 <has_size value="2366"/> | |
44 <has_text text="116"/> | |
45 <has_n_lines n="100"/> | |
46 </assert_contents> | |
47 </output> | |
48 </test> | |
49 <!-- merge_last and output bed file --> | |
50 <test expect_num_outputs="2"> | |
51 <param name="input_fasta" value="input.fasta.gz" ftype="fasta.gz"/> | |
52 <param name="merge_last" value="--merge_last"/> | |
53 <param name="output_bed_param" value="yes"/> | |
54 <output name="output_bed" ftype="bed"> | |
55 <assert_contents> | |
56 <has_size value="1332"/> | |
57 <has_text text="116"/> | |
58 <has_n_lines n="50"/> | |
59 </assert_contents> | |
60 </output> | |
61 <output name="output_fasta" ftype="fasta"> | |
62 <assert_contents> | |
63 <has_size value="2366"/> | |
64 <has_text text="116"/> | |
65 <has_n_lines n="100"/> | |
66 </assert_contents> | |
67 </output> | |
68 </test> | |
69 <!-- Change chunk size and overlap size --> | |
70 <test expect_num_outputs="1"> | |
71 <param name="input_fasta" value="input.fasta.gz" ftype="fasta.gz"/> | |
72 <param name="chunk_size" value="500"/> | |
73 <param name="overlap_size" value="499"/> | |
74 <output name="output_fasta" ftype="fasta"> | |
75 <assert_contents> | |
76 <has_size value="2366"/> | |
77 <has_text text="116"/> | |
78 <has_n_lines n="100"/> | |
79 </assert_contents> | |
80 </output> | |
81 </test> | |
82 </tests> | |
83 <help><![CDATA[ | |
84 **What it does** | |
85 | |
86 Accepts a fasta file containing contigs, cuts them into non-overlapping or overlapping parts of equal length, and produces | |
87 a fasta file containing the cut contigs. An optional output BED file can be produced, where the cut contigs are specified | |
88 in terms of the original contigs. Using this file as input to a BED coverage tool (e.g., bedtools Compute both the length | |
89 and depth of coverage) will produce a file that can be used as input to the CONCOCT Create coverage table tool. | |
90 | |
91 @HELP_OVERVIEW@ | |
92 ]]></help> | |
93 <expand macro="citations"/> | |
94 </tool> |