annotate seqkit_split2.xml @ 0:c19015f577a5 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
author iuc
date Fri, 26 Sep 2025 16:48:57 +0000
parents
children 911de3a36b31
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
1 <tool id="seqkit_split2" name="Seqkit Split2" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
2 <description>Split sequences into files by part size, number of parts, or length</description>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
3 <macros>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
4 <import>macros.xml</import>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
5 </macros>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
6 <expand macro="bio_tools"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
9 #import re
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
10 mkdir -p out &&
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
11
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
12 ## The preprocessing steps below are adapted from the cutadapt.xml tool wrapper.
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
13 ## Set things up for handling inputs and outputs in single- vs paired-end modes
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
14 #set input_type = str($input_file_type.type)
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
15 #if $input_type == 'single':
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
16 #set paired = False
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
17 #else:
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
18 #set paired = True
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
19 #end if
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
20
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
21 #if $input_type == 'paired_collection'
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
22 #set input_1 = $input_file_type.input_1.forward
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
23 #set input_2 = $input_file_type.input_1.reverse
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
24 #set read1 = re.sub('[^\w\-\s]', '_', str($input_file_type.input_1.name)) + "_1"
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
25 #set read2 = re.sub('[^\w\-\s]', '_', str($input_file_type.input_1.name)) + "_2"
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
26 #else
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
27 #set input_1 = $input_file_type.input_1
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
28 #set read1 = re.sub('[^\w\-\s]', '_', str($input_file_type.input_1.element_identifier))
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
29 #end if
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
30
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
31 #if $input_1.is_of_type("fastq", "fastq.gz"):
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
32 #set ext = ".fastqsanger"
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
33 #else
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
34 #set ext = ".fasta"
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
35 #end if
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
36 #if $input_1.ext.endswith(".gz"):
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
37 #set ext=ext+".gz"
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
38 #end if
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
39
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
40 #set read1 = $read1 + $ext
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
41
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
42 #if $paired:
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
43 #if $input_2.is_of_type("fastq", "fastq.gz"):
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
44 #set ext2 = ".fastqsanger"
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
45 #else
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
46 #set ext2 = ".fasta"
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
47 #end if
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
48 #if $input_2.ext.endswith(".gz"):
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
49 #set ext2=ext2+".gz"
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
50 #end if
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
51 #set read2 = $read2 + $ext2
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
52 #end if
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
53
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
54 ## Link in the input files
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
55 ln -fs '$input_1' '$read1' &&
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
56 #if $paired:
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
57 ln -fs '$input_2' '$read2' &&
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
58 #end if
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
59
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
60 seqkit split2
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
61 #if $paired:
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
62 -1 '$read1'
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
63 -2 '$read2'
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
64 #else:
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
65 '$read1'
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
66 #end if
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
67 #if str($split_type.split_selector) == 'by_part':
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
68 -p $split_type.by_part
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
69 #else if str($split_type.split_selector) == 'by_size':
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
70 -s $split_type.by_size
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
71 #else if str($split_type.split_selector) == 'by_length':
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
72 -l $split_type.by_length
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
73 #end if
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
74 -o seqkit_split2
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
75 -O out
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
76 -j "\${GALAXY_SLOTS:-4}"
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
77 ]]></command>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
78 <inputs>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
79 <conditional name="input_file_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
80 <param name="type" type="select" label="Single-end or Paired-end reads?">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
81 <option value="single">Single-end</option>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
82 <option value="paired_collection">Paired-end Collection</option>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
83 </param>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
84 <when value="single">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
85 <param name="input_1" type="data" format="@FASTQ_TYPES@" label="Input FASTQ/A file" help="Select a single FASTA or FASTQ file (gzipped or uncompressed)"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
86 </when>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
87 <when value="paired_collection">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
88 <param name="input_1" format="@FASTQ_TYPES@" type="data_collection" collection_type="paired" label="Paired Collection" help="Should be of datatype &quot;fastq.gz&quot; or &quot;fasta&quot;" />
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
89 </when>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
90 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
91 <conditional name="split_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
92 <param name="split_selector" type="select" label="Split sequences by">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
93 <option value="by_part" selected="true">Number of parts</option>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
94 <option value="by_size">Number of sequences per part</option>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
95 <option value="by_length">Length of sequences</option>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
96 </param>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
97 <when value="by_part">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
98 <param name="by_part" type="integer" value="" min="1" label="Number of parts" help="Split sequences into N parts using round-robin distribution." />
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
99 </when>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
100 <when value="by_size">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
101 <param name="by_size" type="integer" value="" min="1" label="Number of sequences per part" help="Split sequences into parts with N sequences each." />
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
102 </when>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
103 <when value="by_length">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
104 <param name="by_length" type="text" value="" label="Chunk size" help="Split sequences into chunks of >=N bases. Supports K/M/G suffix (e.g., 10K, 1M)">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
105 <validator type="regex" message="Invalid characters in field">^[0-9KMG]+$</validator>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
106 </param>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
107 </when>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
108 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
109 </inputs>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
110 <outputs>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
111 <collection name="outputs_files" type="list" label="${tool.name} on ${on_string}: Splitted files">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
112 <discover_datasets pattern="(?P&lt;designation&gt;seqkit_split2\.part_\d+)\.(?P&lt;ext&gt;.+)" directory="out"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
113 </collection>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
114 </outputs>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
115 <tests>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
116 <!-- Test 01: for Seqkit Split with Single End FASTQ file; splitting by parts -->
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
117 <test expect_num_outputs="1">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
118 <conditional name="input_file_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
119 <param name="type" value="single"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
120 <param name="input_1" value="reads_1.fq.gz"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
121 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
122 <conditional name="split_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
123 <param name="split_selector" value="by_part"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
124 <param name="by_part" value="2"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
125 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
126 <output_collection name="outputs_files" type="list" count="2">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
127 <element name="seqkit_split2.part_001" ftype="fastqsanger.gz">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
128 <assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
129 <has_n_lines n="4958"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
130 </assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
131 </element>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
132 <element name="seqkit_split2.part_002" ftype="fastqsanger.gz">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
133 <assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
134 <has_n_lines n="4949"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
135 </assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
136 </element>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
137 </output_collection>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
138 </test>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
139
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
140 <!-- Test 02: for Seqkit Split with Paired FASTQ Collection; splitting by parts -->
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
141 <test expect_num_outputs="1">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
142 <conditional name="input_file_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
143 <param name="type" value="paired_collection"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
144 <param name="input_1">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
145 <collection type="paired">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
146 <element name="forward" ftype="fastq.gz" value="reads_1.fq.gz"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
147 <element name="reverse" ftype="fastq.gz" value="reads_2.fq.gz"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
148 </collection>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
149 </param>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
150 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
151 <conditional name="split_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
152 <param name="split_selector" value="by_part"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
153 <param name="by_part" value="2"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
154 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
155 <output_collection name="outputs_files" type="list" count="2">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
156 <element name="seqkit_split2.part_001" ftype="fastqsanger.gz">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
157 <assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
158 <has_n_lines n="4958"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
159 </assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
160 </element>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
161 <element name="seqkit_split2.part_002" ftype="fastqsanger.gz">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
162 <assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
163 <has_n_lines n="4949"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
164 </assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
165 </element>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
166 </output_collection>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
167 </test>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
168
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
169 <!-- Test 03: for Seqkit Split with Single End FASTA file; splitting by parts -->
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
170 <test expect_num_outputs="1">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
171 <conditional name="input_file_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
172 <param name="type" value="single"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
173 <param name="input_1" value="hairpin.fa.gz"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
174 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
175 <conditional name="split_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
176 <param name="split_selector" value="by_part"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
177 <param name="by_part" value="2"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
178 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
179 <output_collection name="outputs_files" type="list" count="2">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
180 <element name="seqkit_split2.part_001" ftype="fasta.gz">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
181 <assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
182 <has_n_lines n="2988"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
183 </assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
184 </element>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
185 <element name="seqkit_split2.part_002" ftype="fasta.gz">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
186 <assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
187 <has_n_lines n="2987"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
188 </assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
189 </element>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
190 </output_collection>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
191 </test>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
192
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
193 <!-- Test 04: for Seqkit Split with Single End FASTA file; splitting by size -->
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
194 <test expect_num_outputs="1">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
195 <conditional name="input_file_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
196 <param name="type" value="single"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
197 <param name="input_1" value="hairpin.fa.gz"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
198 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
199 <conditional name="split_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
200 <param name="split_selector" value="by_size"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
201 <param name="by_size" value="200"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
202 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
203 <output_collection name="outputs_files" type="list" count="25">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
204 <element name="seqkit_split2.part_001" ftype="fasta.gz">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
205 <assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
206 <has_n_lines n="224"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
207 </assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
208 </element>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
209 <element name="seqkit_split2.part_002" ftype="fasta.gz">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
210 <assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
211 <has_n_lines n="281"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
212 </assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
213 </element>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
214 </output_collection>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
215 </test>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
216
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
217 <!-- Test 05: for Seqkit Split with Single End FASTA file; splitting by length -->
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
218 <test expect_num_outputs="1">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
219 <conditional name="input_file_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
220 <param name="type" value="single"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
221 <param name="input_1" value="hairpin.fa.gz"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
222 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
223 <conditional name="split_type">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
224 <param name="split_selector" value="by_length"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
225 <param name="by_length" value="50K"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
226 </conditional>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
227 <output_collection name="outputs_files" type="list" count="10">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
228 <element name="seqkit_split2.part_001" ftype="fasta.gz">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
229 <assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
230 <has_n_lines n="642"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
231 </assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
232 </element>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
233 <element name="seqkit_split2.part_002" ftype="fasta.gz">
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
234 <assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
235 <has_n_lines n="589"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
236 </assert_contents>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
237 </element>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
238 </output_collection>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
239 </test>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
240 </tests>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
241 <help><![CDATA[
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
242
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
243 **Seqkit Split2**
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
244
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
245 This tool splits FASTA or FASTQ files (single-end or paired-end) into multiple files based on the number of parts, sequences per part, or sequence length. It supports low memory usage and fast processing.
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
246
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
247 **Input type**: Choose between single-end FASTA/FASTQ or paired-end FASTQ files.
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
248
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
249 **Split sequences by**:
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
250 - **Number of parts**: Split into N parts using round-robin distribution.
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
251 - **Number of sequences per part**: Split into parts with N sequences each.
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
252 - **Length of sequences**: Split into chunks of >=N bases (supports K/M/G suffix, e.g., 10K, 1M).
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
253
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
254 **Outputs**
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
255
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
256 - A collection of split FASTA/FASTQ files
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
257
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
258 For more details, see the Seqkit Split2 documentation_
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
259
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
260 .. _documentation: https://bioinf.shenwei.me/seqkit/usage/#split2
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
261
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
262 ]]></help>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
263 <expand macro="citations"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
264 <creator>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
265 <person givenName="Saim" familyName="Momin" url="https://github.com/SaimMomin12" identifier="https://orcid.org/0009-0003-9935-828X"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
266 <organization name="Galaxy Europe" url="https://galaxyproject.org/eu/"/>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
267 </creator>
c19015f577a5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents:
diff changeset
268 </tool>