annotate sort.xml @ 3:51ad4eee9d7e draft default tip

planemo upload for repository https://github.com/open2c/pairtools commit f60e7663dc3fd1a564e691ef35d35f35b0a851ad
author iuc
date Wed, 24 Sep 2025 11:49:16 +0000
parents 19f062c42798
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
1 <tool id="pairtools_sort" name="Pairtools sort" version="@TOOL_VERSION@+galaxy@SUFFIX_VERSION@" profile="@PROFILE_VERSION@" license="MIT">
0
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
2 <description>Sort a 4dn pairs/pairsam file</description>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
3 <macros>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
4 <import>macros.xml</import>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
5 </macros>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
6 <expand macro="requirements"/>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
2
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
8 #if $pairs_path.is_of_type('4dn_pairs.gz') or $pairs_path.is_of_type('4dn_pairsam.gz'):
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
9 #set $input_link = "input.gz"
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
10 #set $output_sorted_pairs_link = "sorted_output.gz"
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
11 #else
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
12 #set $input_link = "input"
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
13 #set $output_sorted_pairs_link = "sorted_output"
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
14 #end if
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
15 ln -s '$pairs_path' '$input_link' &&
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
16 ln -s '$output_sorted_pairs' '$output_sorted_pairs_link' &&
0
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
17 pairtools sort
2
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
18 '$input_link'
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
19 -o '$output_sorted_pairs_link'
0
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
20 --nproc-in \${GALAXY_SLOTS:-4}
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
21 --nproc-out \${GALAXY_SLOTS:-4}
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
22 ]]></command>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
23 <inputs>
2
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
24 <param name="pairs_path" type="data" format="4dn_pairs,4dn_pairsam,4dn_pairs.gz,4dn_pairsam.gz" label="Input file" help="Input a 4dn pairs or pairsam file"/>
0
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
25 </inputs>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
26 <outputs>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
27 <data name="output_sorted_pairs" format_source="pairs_path" label="${tool.name} on ${on_string}">
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
28 </data>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
29 </outputs>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
30 <tests>
2
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
31 <!--Test default parameters with pairs file, this us actually a pairsam file-->
0
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
32 <test expect_num_outputs="1">
2
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
33 <param name="pairs_path" ftype="4dn_pairsam" value="output_parsed_pairs_bam.pairs"/>
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
34 <output name="output_sorted_pairs" file="output_sorted_pairs.pairs" ftype="4dn_pairsam" lines_diff="10"/>
0
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
35 </test>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
36 <!--Test default parameters with pairsam file-->
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
37 <test expect_num_outputs="1">
2
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
38 <param name="pairs_path" ftype="4dn_pairsam" value="output_dedup_pairs_markdups.pairsam"/>
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
39 <output name="output_sorted_pairs" file="output_dedup_sorted.pairsam" ftype="4dn_pairsam" lines_diff="10"/>
0
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
40 </test>
2
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
41 <!--Test default parameters with pairsam file compressed output-->
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
42 <test expect_num_outputs="1">
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
43 <param name="pairs_path" ftype="4dn_pairsam" value="output_dedup_pairs_markdups.pairsam"/>
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
44 <output name="output_sorted_pairs" file="output_dedup_sorted.pairsam" ftype="4dn_pairsam" decompress="true" lines_diff="10"/>
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
45 </test>
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
46 <!--Test default parameters with pairsam file compressed input-->
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
47 <test expect_num_outputs="1">
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
48 <param name="pairs_path" ftype="4dn_pairsam" value="output_dedup_pairs_markdups.pairsam.gz"/>
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
49 <output name="output_sorted_pairs" file="output_dedup_sorted.pairsam" ftype="4dn_pairsam" lines_diff="10"/>
19f062c42798 planemo upload for repository https://github.com/open2c/pairtools commit abd18c860877b2100e02019b4b597d6d2569994e
iuc
parents: 0
diff changeset
50 </test>
0
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
51 </tests>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
52 <help><![CDATA[
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
53 **Pairtools sort**
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
54
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
55 Sort pairs in the lexicographic order along chrom1 and chrom2, in the numeric order along pos1 and pos2 and in the lexicographic order along pair_type.
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
56
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
57 ]]></help>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
58 <expand macro="citations"/>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
59 <expand macro="creator"/>
e90acf67d632 planemo upload for repository https://github.com/open2c/pairtools commit 89826caaf2e2bc933ef2ce407f21260ad69bc5c7
iuc
parents:
diff changeset
60 </tool>