comparison hicup_macros.xml @ 0:396bdc215399 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/hicup commit 50173a1994a72d9774fd46777de94dd02d35bd42
author bgruening
date Mon, 24 Oct 2022 15:58:52 +0000
parents
children 82641e9a86cb
comparison
equal deleted inserted replaced
-1:000000000000 0:396bdc215399
1 <macros>
2 <token name="@VERSION@">0.8.3</token>
3 <xml name="requirements_hicup">
4 <requirements>
5 <requirement type="package" version="@VERSION@">hicup</requirement>
6 <requirement type="package" version="2.4.5">bowtie2</requirement>
7 <requirement type="package" version="1.16.1">samtools</requirement>
8 <yield/>
9 </requirements>
10 <version_command>hicup --version</version_command>
11 </xml>
12 <xml name="citation_hicup">
13 <citations>
14 <citation type="doi">10.12688/f1000research.7334.1</citation>
15 </citations>
16 </xml>
17 <xml name="reference_genome_macro">
18 <conditional name="reference_genome">
19 <param name="source" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options. See `Indexes` section of help below">
20 <option value="indexed">Use a built-in genome index</option>
21 <option value="history">Use a genome from the history and build index</option>
22 </param>
23 <when value="indexed">
24 <param name="index" type="select" label="Select reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
25 <options from_data_table="bowtie2_indexes">
26 <filter type="sort_by" column="2"/>
27 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
28 </options>
29 </param>
30 </when>
31 <when value="history">
32 <param name="own_file" type="data" format="fasta" label="Select reference genome" />
33 <!--<param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select reference genome" />-->
34 </when>
35 </conditional>
36 </xml>
37 <xml name="re1">
38 <param argument="--re1" type="text" value="" label="Restriction enzyme recognition sequence" help="Restriction enzyme used e.g. A^GATCT,BglII. Some Hi-C protocols may use several enzymes. To specify several enzymes, use the ':' to separate them e.g. A^GATCT,BglII:A^AGCTT,HindIII:^GATC,DpnII. HiCUP accomodates N in restriction enzyme: e.g. :A^ANCTT"/>
39 </xml>
40 <xml name="re2">
41 <param argument="--re2" type="text" value="" label="Restriction enzyme instead of sonication to shorten di-tags."
42 help="To specify a restriction enzyme instead of sonication to shorten di-tags. This restriction site does NOT form a Hi-C ligation junction. 2 .g. AG^CT,AluI. Typically the sonication protocol is followed."/>
43 </xml>
44 <xml name="filter_longest_shortest">
45 <param argument="--longest" type="text" value="" label="Max insert size" help="Maximum allowable insert size (bps)"/>
46 <param argument="--shortest" type="text" value="" label="Min insert size" help="Minimum allowable insert size (bps)"/>
47 </xml>
48 <xml name="no_fill">
49 <param argument="--nofill" type="boolean" value="false" truevalue="--nofill" falsevalue="" label="No fill"
50 help="Hi-C protocol did NOT include a fill-in of sticky ends prior to re-ligation and therefore reads shall be truncated at the restriction site sequence"/>
51 </xml>
52 <token name="@PAIRED-END_INPUT@"><![CDATA[
53 ## Taken from cutadapt except that I don't accept space in name
54 #import re
55 #set library_type = str($library.type)
56 #if $library_type == 'paired':
57 #set input_1 = $library.input_1
58 #set input_2 = $library.input_2
59 #else if $library_type == 'paired_collection'
60 #set input_1 = $library.input_1.forward
61 #set input_2 = $library.input_1.reverse
62 #end if
63
64 #if $input_1.is_of_type("fastq.gz", "fastqsanger.gz"):
65 #set ext = ".fq.gz"
66 #else:
67 #set ext = ".fq"
68 #end if
69 #set read1 = "dataset1" + $ext
70 ln -f -s '${input_1}' '$read1' &&
71
72 #if $input_2.is_of_type("fastq.gz", "fastqsanger.gz"):
73 #set ext2 = ".fq.gz"
74 #else:
75 #set ext2 = ".fq"
76 #end if
77 #set read2 = "dataset2" + $ext2
78 ln -f -s '${input_2}' '$read2' &&
79 ]]>
80 </token>
81 <xml name="input_paired">
82 <conditional name="library">
83 <param name="type" type="select" label="How Paired-end reads are organized">
84 <option value="paired">Separately</option>
85 <option value="paired_collection">Paired-end Collection</option>
86 </param>
87
88 <when value="paired">
89 <param name="input_1" format="fastq,fastq.gz" type="data" label="FASTQ/A file #1" help="Should be of datatype &quot;fastq.gz&quot;or &quot;fasta&quot;" />
90 <param name="input_2" format="fastq,fastq.gz" type="data" label="FASTQ/A file #2" help="Should be of datatype &quot;fastq.gz&quot;or &quot;fasta&quot;" />
91 </when>
92
93 <when value="paired_collection">
94 <param name="input_1" format="fastq,fastq.gz" type="data_collection" collection_type="paired" label="Paired Collection" help="Should be of datatype &quot;fastq.gz&quot; or &quot;fastq&quot;" />
95 </when>
96
97 </conditional>
98 </xml>
99 </macros>