Mercurial > repos > iuc > semibin_concatenate_fasta
annotate concatenate_fasta.xml @ 2:298542e0e136 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit 13abac83068b126399ec415141007a48c2efaa84
author | iuc |
---|---|
date | Fri, 10 Nov 2023 20:50:29 +0000 |
parents | e6bc3455940e |
children |
rev | line source |
---|---|
0
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
1 <tool id="semibin_concatenate_fasta" name="SemiBin: Concatenate fasta files" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
2 <description> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
3 for multi-sample binning |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
4 </description> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
5 <macros> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
6 <import>macros.xml</import> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
7 </macros> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
8 <expand macro="biotools"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
9 <expand macro="requirements"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
10 <expand macro="version"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
11 <command detect_errors="exit_code"><![CDATA[ |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
12 #import re |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
13 #for $e in $input_fasta |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
14 #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($e.element_identifier)) |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
15 #if $e.ext.endswith(".gz") |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
16 gunzip -c '$e' > '${identifier}.fasta' && |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
17 #else |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
18 ln -s '$e' '${identifier}.fasta' && |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
19 #end if |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
20 #end for |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
21 |
2
298542e0e136
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit 13abac83068b126399ec415141007a48c2efaa84
iuc
parents:
1
diff
changeset
|
22 SemiBin2 concatenate_fasta |
0
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
23 --input-fasta *.fasta |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
24 --output 'output' |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
25 --separator '$separator' |
2
298542e0e136
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit 13abac83068b126399ec415141007a48c2efaa84
iuc
parents:
1
diff
changeset
|
26 --compression none |
0
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
27 -m $min_len |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
28 ]]></command> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
29 <inputs> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
30 <param argument="--input-fasta" type="data" multiple="true" format="fasta,fasta.gz" label="Contig sequences"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
31 <expand macro="separator"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
32 <expand macro="concat_min_len"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
33 </inputs> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
34 <outputs> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
35 <data name="fasta" format="fasta" from_work_dir="output/concatenated.fa" /> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
36 </outputs> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
37 <tests> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
38 <test expect_num_outputs="1"> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
39 <param name="input_fasta" ftype="fasta" value="input_single.fasta,input_single_2.fasta,input_single_3.fasta"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
40 <param name="separator" value=":"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
41 <param name="min_len" value="0"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
42 <output name="fasta" ftype="fasta"> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
43 <assert_contents> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
44 <has_text text=">input_single:g1k_0"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
45 <has_text text=">input_single_3:g4k_7"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
46 <has_text text=">input_single_2:g1k_0"/> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
47 </assert_contents> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
48 </output> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
49 </test> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
50 </tests> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
51 <help><![CDATA[ |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
52 @HELP_HEADER@ |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
53 |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
54 Inputs |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
55 ====== |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
56 |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
57 @HELP_INPUT_FASTA@ |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
58 |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
59 Outputs |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
60 ======= |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
61 |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
62 - One fasta with all contigs |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
63 |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
64 ]]></help> |
dcc81bfe5f6a
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit aa9bfb2fb62547ee8bac34f0de5b3beaa0bfd1a4"
iuc
parents:
diff
changeset
|
65 <expand macro="citations"/> |
1
e6bc3455940e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/semibin commit 59a7b7a334fd2c3aca6163c2ff11d18ef654ab9d
iuc
parents:
0
diff
changeset
|
66 </tool> |