Mercurial > repos > iuc > semibin_concatenate_fasta
comparison concatenate_fasta.xml @ 6:a72b974c98a2 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/semibin commit 2c08a2e49a2844efe92340c5a9e9c8323e4a33d6
| author | iuc |
|---|---|
| date | Tue, 28 Oct 2025 08:21:31 +0000 |
| parents | 298542e0e136 |
| children |
comparison
equal
deleted
inserted
replaced
| 5:2c7ed948eeed | 6:a72b974c98a2 |
|---|---|
| 9 <expand macro="requirements"/> | 9 <expand macro="requirements"/> |
| 10 <expand macro="version"/> | 10 <expand macro="version"/> |
| 11 <command detect_errors="exit_code"><![CDATA[ | 11 <command detect_errors="exit_code"><![CDATA[ |
| 12 #import re | 12 #import re |
| 13 #for $e in $input_fasta | 13 #for $e in $input_fasta |
| 14 #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($e.element_identifier)) | 14 #set $identifier = re.sub('[^\s\w\-]', '_', str($e.element_identifier)) |
| 15 #if $e.ext.endswith(".gz") | 15 ln -s '$e' '${identifier}.$e.ext' && |
| 16 gunzip -c '$e' > '${identifier}.fasta' && | |
| 17 #else | |
| 18 ln -s '$e' '${identifier}.fasta' && | |
| 19 #end if | |
| 20 #end for | 16 #end for |
| 21 | 17 |
| 22 SemiBin2 concatenate_fasta | 18 SemiBin2 concatenate_fasta |
| 23 --input-fasta *.fasta | 19 --input-fasta |
| 20 #for $e in $input_fasta | |
| 21 #set $identifier = re.sub('[^\s\w\-]', '_', str($e.element_identifier)) | |
| 22 '${identifier}.$e.ext' | |
| 23 #end for | |
| 24 --output 'output' | 24 --output 'output' |
| 25 --separator '$separator' | 25 --separator '$separator' |
| 26 --compression none | 26 --compression none |
| 27 -m $min_len | 27 -m $min_len |
| 28 ]]></command> | 28 ]]></command> |
| 29 <inputs> | 29 <inputs> |
| 30 <param argument="--input-fasta" type="data" multiple="true" format="fasta,fasta.gz" label="Contig sequences"/> | 30 <param argument="--input-fasta" type="data" multiple="true" format="fasta,fasta.gz,fasta.bz2" label="Contig sequences"/> |
| 31 <expand macro="separator"/> | 31 <expand macro="separator"/> |
| 32 <expand macro="concat_min_len"/> | 32 <expand macro="concat_min_len"/> |
| 33 </inputs> | 33 </inputs> |
| 34 <outputs> | 34 <outputs> |
| 35 <data name="fasta" format="fasta" from_work_dir="output/concatenated.fa" /> | 35 <data name="fasta" format="fasta" from_work_dir="output/concatenated.fa" /> |
| 39 <param name="input_fasta" ftype="fasta" value="input_single.fasta,input_single_2.fasta,input_single_3.fasta"/> | 39 <param name="input_fasta" ftype="fasta" value="input_single.fasta,input_single_2.fasta,input_single_3.fasta"/> |
| 40 <param name="separator" value=":"/> | 40 <param name="separator" value=":"/> |
| 41 <param name="min_len" value="0"/> | 41 <param name="min_len" value="0"/> |
| 42 <output name="fasta" ftype="fasta"> | 42 <output name="fasta" ftype="fasta"> |
| 43 <assert_contents> | 43 <assert_contents> |
| 44 <has_text text=">input_single:g1k_0"/> | 44 <has_text text=">input_single_fasta:g1k_0"/> |
| 45 <has_text text=">input_single_3:g4k_7"/> | 45 <has_text text=">input_single_3_fasta:g4k_7"/> |
| 46 <has_text text=">input_single_2:g1k_0"/> | 46 <has_text text=">input_single_2_fasta:g1k_0"/> |
| 47 </assert_contents> | 47 </assert_contents> |
| 48 </output> | 48 </output> |
| 49 </test> | 49 </test> |
| 50 </tests> | 50 </tests> |
| 51 <help><