annotate split.xml @ 12:3b91601ad5df draft default tip

planemo upload for repository https://github.com/open2c/pairtools commit f60e7663dc3fd1a564e691ef35d35f35b0a851ad
author iuc
date Wed, 24 Sep 2025 11:50:02 +0000
parents 7a125af14644
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
1 <tool id="pairtools_split" name="Pairtools split" version="@TOOL_VERSION@+galaxy@SUFFIX_VERSION@" profile="@PROFILE_VERSION@" license="MIT">
0
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
2 <description>Split a pairsam file into pairs and SAM/BAM</description>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
3 <macros>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
4 <import>macros.xml</import>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
5 </macros>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
6 <expand macro="requirements"/>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
9
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
8 #if $pairsam_path.is_of_type('4dn_pairsam.gz'):
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
9 #set $input_link = "input.gz"
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
10 #set $output_pairs_link = "output_pairs.gz"
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
11 #else
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
12 #set $input_link = "input"
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
13 #set $output_pairs_link = "output_pairs"
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
14 #end if
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
15 ln -s '$pairsam_path' '$input_link' &&
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
16 ln -s '$output_pairs' '$output_pairs_link' &&
0
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
17 pairtools split
9
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
18 '$input_link'
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
19 --output-pairs '$output_pairs_link'
0
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
20 --output-sam ./output.bam
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
21 --nproc-in \${GALAXY_SLOTS:-4}
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
22 --nproc-out \${GALAXY_SLOTS:-4}
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
23 ]]></command>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
24 <inputs>
9
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
25 <param name="pairsam_path" type="data" format="4dn_pairsam,4dn_pairsam.gz" label="Input 4dn pairsam file"/>
0
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
26 </inputs>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
27 <outputs>
9
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
28 <data name="output_pairs" label="${tool.name} on ${on_string}: Output Pairs" auto_format="true" />
0
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
29 <data name="output_file" format="qname_sorted.bam" from_work_dir="output.bam" label="${tool.name} on ${on_string}: Output BAM" />
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
30 </outputs>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
31 <tests>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
32 <!--Test default parameters-->
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
33 <test expect_num_outputs="2">
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
34 <param name="pairsam_path" value="output_dedup_pairs_markdups.pairsam"/>
9
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
35 <output name="output_pairs" file="output_pairs_split.pairs" ftype="4dn_pairs" lines_diff="10"/>
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
36 <output name="output_file" ftype="qname_sorted.bam" file="output_pairs_split.bam" lines_diff="20"/>
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
37 </test>
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
38 <!--Test default parameters and compressed input and output-->
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
39 <test expect_num_outputs="2">
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
40 <param name="pairsam_path" value="output_dedup_pairs_markdups.pairsam.gz"/>
7a125af14644 planemo upload for repository https://github.com/open2c/pairtools commit 5997d890c2a3fedff3c66d858cb1629b28138dc0
iuc
parents: 0
diff changeset
41 <output name="output_pairs" file="output_pairs_split.pairs" ftype="4dn_pairs.gz" decompress="true" lines_diff="10"/>
0
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
42 <output name="output_file" ftype="qname_sorted.bam" file="output_pairs_split.bam" lines_diff="20"/>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
43 </test>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
44 </tests>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
45 <help><![CDATA[
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
46 **Pairtools split**
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
47
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
48 Restore a SAM/BAM file from SAM1 and SAM2 fields of a `pairsam` file. Create a `pairs` file without SAM1/SAM2 fields.
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
49
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
50 ]]></help>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
51 <expand macro="citations"/>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
52 <expand macro="creator"/>
bffcba7ce9b5 planemo upload for repository https://github.com/open2c/pairtools commit 33081628e25ae7ace6d357c8f22994825f8fc428
iuc
parents:
diff changeset
53 </tool>