annotate nanopolish_methylation.xml @ 0:f9dadc362197 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
author bgruening
date Wed, 30 May 2018 11:55:55 -0400
parents
children 709490665bad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
1 <tool id="nanopolish_methylation" name="Nanopolish methylation" version="0.1.0">
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
2 <description>- Classify nucleotides as methylated or not.</description>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
3 <macros>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
4 <import>macros.xml</import>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
5 </macros>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
6 <expand macro="requirements" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
8 ln -s '$input_merged' reads.fasta &&
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
9
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
10 #if $input_reads_raw.extension == 'fast5':
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
11 mkdir fast5_files && ln -s '$input_reads_raw' fast5_files/read1.fast5 &&
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
12 #else
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
13 ln -s '$input_reads_raw' fast5_files.tar.gz &&
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
14 mkdir fast5_files && tar -xzf fast5_files.tar.gz -C fast5_files &&
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
15 #end if
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
16
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
17 nanopolish index -d fast5_files/ reads.fasta &&
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
18 ln -s '$b' reads.bam &&
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
19 ln -s '${b.metadata.bam_index}' reads.bam.bai &&
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
20 ln -s '$g' genome.fa &&
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
21
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
22 nanopolish call-methylation
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
23 -r reads.fasta
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
24 -b reads.bam
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
25 -g genome.fa
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
26 #if $w and str($w).strip():
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
27 -w "${w}"
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
28 #end if
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
29 > methylation_calls.tsv
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
30 ]]></command>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
31 <inputs>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
32 <!-- index inputs -->
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
33 <param type="data" name="input_merged" format="fasta,fastq" label="Basecalled merged reads.fa"/>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
34 <param type="data" name="input_reads_raw" format="h5,fast5.tar.gz" label="Flat archive file of raw fast5 files"/>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
35
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
36 <!-- variants consensus inputs -->
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
37 <param type="data" argument="-b" format="bam" label="Reads aligned to the reference genome" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
38 <param type="data" argument="-g" format="fasta" label="The reference genome"/>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
39
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
40 <param argument="-w" type="text" optional="true"
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
41 label="find variants in window of region chromsome:start-end" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
42
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
43 </inputs>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
44
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
45 <outputs>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
46 <!-- variants consensus outputs -->
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
47 <data name="output_methylation_calls" format="tabular" from_work_dir="methylation_calls.tsv" label="called methylation sites" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
48 </outputs>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
49 <tests>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
50 <test>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
51 <!-- index test -->
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
52 <param name="input_merged" ftype="fasta" value="reads.fasta" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
53 <param name="input_reads_raw" ftype="fast5.tar.gz" value="fast5_files.tar.gz" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
54
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
55 <!-- variants consensus test -->
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
56 <param name="b" value="reads.sorted.bam" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
57 <param name="g" value="draft.fa" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
58 <param name="w" value="tig00000001:200000-202000" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
59
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
60 <output name="output_methylation_calls" file="methylation_calls.tsv" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
61 </test>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
62 </tests>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
63 <help><![CDATA[
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
64 Usage: nanopolish call-methylation [OPTIONS] --reads reads.fa --bam alignments.bam --genome genome.fa
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
65 Classify nucleotides as methylated or not.
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
66
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
67 Quickstart tutorial and manual available at:
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
68 http://nanopolish.readthedocs.io/en/latest/quickstart_call_methylation.html
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
69
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
70 ]]></help>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
71 <expand macro="citations" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
72 </tool>