annotate seqkit_stats.xml @ 9:ec5741a97fdd draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/seqkit commit 3e9d74190f9a12f75b044a302ba1a70bd866831c
author iuc
date Thu, 04 Dec 2025 12:48:17 +0000
parents ef9f258d7439
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
1 <tool id="seqkit_stats" name="SeqKit statistics" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
2 <description>of FASTA/Q files</description>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
3 <macros>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
4 <import>macros.xml</import>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
5 </macros>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
6 <expand macro="bio_tools"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
9 #import re
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
10
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
11 #set input_identifier = re.sub('[^\s\w\-]', '_', str($input.element_identifier))
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
12 ln -s '${input}' '${input_identifier}' &&
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
13
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
14 seqkit stats
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
15 '${input_identifier}'
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
16 $all
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
17 $basename
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
18 #if str($input.ext) in ['fastqsanger', 'fastqsanger.gz']:
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
19 --fq-encoding sanger
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
20 #end if
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
21 $skip_err
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
22 $tabular
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
23 > '$output'
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
24 ]]></command>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
25 <inputs>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
26 <param name="input" type="data" format="fasta,fasta.gz,fastqsanger,fastqsanger.gz" label="Input file"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
27 <param argument="--all" type="boolean" truevalue="--all" falsevalue="" checked="false" label="Output all statistics?" help="Includes quartiles of seq length, sum_gap, N50"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
28 <param argument="--basename" type="boolean" truevalue="--basename" falsevalue="" checked="false" label="Output base name of input file?"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
29 <param argument="--skip_err" type="boolean" truevalue="--skip-err" falsevalue="" checked="false" label="Skip errors?" help="Only show warning messages"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
30 <param argument="--tabular" type="boolean" truevalue="--tabular" falsevalue="" checked="true" label="Output machine-friendly tabular format?"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
31 </inputs>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
32 <outputs>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
33 <data name="output" format="txt">
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
34 <change_format>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
35 <when input="tabular" value="--tabular" format="tabular"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
36 </change_format>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
37 </data>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
38 </outputs>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
39 <tests>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
40 <test expect_num_outputs="1">
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
41 <param name="input" value="input1.fastq.gz" ftype="fastqsanger.gz"/>
8
ef9f258d7439 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents: 4
diff changeset
42 <param name="all" value="true"/>
0
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
43 <output name="output" file="stats_output1.tabular" ftype="tabular"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
44 </test>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
45 <test expect_num_outputs="1">
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
46 <param name="input" value="input1.fasta.gz" ftype="fasta.gz"/>
8
ef9f258d7439 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 76c1a289f15cc9a9a7d9a49dc132af62cc1d5af2
iuc
parents: 4
diff changeset
47 <param name="all" value="true"/>
0
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
48 <output name="output" file="stats_output2.tabular" ftype="tabular"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
49 </test>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
50 </tests>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
51 <help>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
52 **What it does**
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
53
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
54 Outputs simple statistics of FASTA/Q files; number of sequences, sum / min / avg / max sequence lengths, Q1, Q2, Q3,
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
55 sum gap, N50, Q20(%), and Q30(%).
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
56 </help>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
57 <expand macro="citations"/>
a40d1f17314e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 15c99d80da6739b94a911a2744b523a2112cc55c
iuc
parents:
diff changeset
58 </tool>