annotate readmap.xml @ 16:1b8108a02da3 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 16119f70b162e16eee01de1e806e180ad76149f5
author drosofff
date Wed, 20 Dec 2017 18:49:52 -0500
parents ee1e4c892e9d
children a44d213048ce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
1b8108a02da3 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 16119f70b162e16eee01de1e806e180ad76149f5
drosofff
parents: 15
diff changeset
1 <tool id="Readmap" name="Generate readmap and histograms from alignment files" version="1.2.7">
8
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
2 <description>from sRbowtie aligment</description>
15
ee1e4c892e9d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 170951554bb5674a7b2b7a13a03a3422a91af38d
drosofff
parents: 14
diff changeset
3 <requirements>
16
1b8108a02da3 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 16119f70b162e16eee01de1e806e180ad76149f5
drosofff
parents: 15
diff changeset
4 <requirement type="package" version="1.0.0">bowtie</requirement>
15
ee1e4c892e9d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 170951554bb5674a7b2b7a13a03a3422a91af38d
drosofff
parents: 14
diff changeset
5 <requirement type="package" version="1.11.2=py27_0">numpy</requirement>
10
be6fb196f074 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 8da4eb1a48d56a8186ba3ca33d3de73aff8da323
drosofff
parents: 9
diff changeset
6 <requirement type="package" version="0.11.2.1=py27_0">pysam</requirement>
13
7234d438f495 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit eec44c6edc352050a20a9170932be1c3cfaba7bf
drosofff
parents: 12
diff changeset
7 <requirement type="package" version="1.3.2=r3.3.2_0">r-optparse</requirement>
10
be6fb196f074 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 8da4eb1a48d56a8186ba3ca33d3de73aff8da323
drosofff
parents: 9
diff changeset
8 <requirement type="package" version="0.6_28=r3.3.2_0">r-latticeextra</requirement>
be6fb196f074 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 8da4eb1a48d56a8186ba3ca33d3de73aff8da323
drosofff
parents: 9
diff changeset
9 <requirement type="package" version="2.2.1=r3.3.2_0">r-gridextra</requirement>
15
ee1e4c892e9d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 170951554bb5674a7b2b7a13a03a3422a91af38d
drosofff
parents: 14
diff changeset
10 <requirement type="package" version="1.4.2=r3.3.2_0">r-reshape2</requirement>
ee1e4c892e9d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 170951554bb5674a7b2b7a13a03a3422a91af38d
drosofff
parents: 14
diff changeset
11 </requirements>
ee1e4c892e9d planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 170951554bb5674a7b2b7a13a03a3422a91af38d
drosofff
parents: 14
diff changeset
12 <command><![CDATA[
8
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
13 python2 $__tool_directory__/readmap.py
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
14 #if $refGenomeSource.genomeSource == "history":
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
15 --reference_fasta
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
16 $refGenomeSource.ownFile ## index source
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
17 #else:
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
18 #silent reference= filter( lambda x: str( x[0] ) == str( $refGenomeSource.series[0].input.dbkey ), $__app__.tool_data_tables[ 'bowtie_indexes' ].get_fields() )[0][-1]
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
19 --reference_bowtie_index
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
20 $reference
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
21 #end if
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
22 --output_readmap
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
23 "$readmap_dataframe"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
24 --output_size_distribution
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
25 "$size_distribution_dataframe"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
26 --minquery $minquery
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
27 --maxquery $maxquery
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
28 --input
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
29 #for $i in $refGenomeSource.series
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
30 $i.input
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
31 #end for
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
32 --ext
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
33 #for $i in $refGenomeSource.series
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
34 $i.input.ext
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
35 #end for
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
36 --label
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
37 #for $i in $refGenomeSource.series
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
38 "$i.input.name"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
39 #end for
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
40 --normalization_factor
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
41 #for $i in $refGenomeSource.series
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
42 $i.norm
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
43 #end for
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
44 #if $gff:
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
45 --gff
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
46 $gff
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
47 #end if
12
076008825416 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit a91db0ffc9ffa13820088fc2756f00c741a01165
drosofff
parents: 11
diff changeset
48 ; Rscript '$__tool_directory__'/plot_size_readmap.r
8
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
49 --readmap_tab "$readmap_dataframe"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
50 --size_distribution_tab "$size_distribution_dataframe"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
51 --readmap_pdf "$readmap_PDF"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
52 --size_distribution_pdf "$size_PDF"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
53 --combi_pdf "$combi_PDF"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
54 --title "$title"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
55 --xlabel "$xlabel"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
56 --ylabel "$ylabel"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
57 --yrange "$yrange"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
58 --rows_per_page "$rows_per_page"
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
59 ]]>
0
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
60 </command>
8
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
61 <inputs>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
62 <conditional name="refGenomeSource">
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
63 <param name="genomeSource" 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">
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
64 <option value="indexed">Use a built-in index</option>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
65 <option value="history">Use one from the history</option>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
66 </param>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
67 <when value="indexed">
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
68 <repeat name="series" title="Add alignment files">
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
69 <param name="input" type="data" label="Select multiple alignments to parse" format="tabular,sam,bam">
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
70 <validator type="dataset_metadata_in_data_table" table_name="bowtie_indexes" metadata_name="dbkey" metadata_column="0" message="database not set for this bowtie output. Select the database(=genome used for matching) manually, or select a reference fasta from your history."/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
71 </param>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
72 <param name="norm" type="float" value="1" label="Indicate a normalization factor to compare multiple aligments"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
73 </repeat>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
74 </when>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
75 <when value="history">
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
76 <param name="ownFile" type="data" format="fasta" label="Select a fasta file, that served as the reference index for the alignments" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
77 <repeat name="series" title="Add alignment files">
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
78 <param name="input" type="data" label="Select multiple alignments to parse" format="tabular,sam,bam"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
79 <param name="norm" type="float" value="1" label="Indicate a normalization factor to compare multiple aligments"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
80 </repeat>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
81 </when>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
82 </conditional>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
83 <param name="gff" type="data" format="gff3" optional="true" label="Optional: select a GFF to investigate regions of interest" help="GFF must match genome build"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
84 <!-- <validator type="dataset_metadata_in_data_table" table_name="bowtie_indexes" metadata_name="dbkey" metadata_column="0" message="GFF database and alignment file databse do not match!"/> -->
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
85 <param name="minquery" type="integer" size="3" value="18" label="Min size of query small RNAs" help="'18' = 18 nucleotides"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
86 <param name="maxquery" type="integer" size="3" value="28" label="Max size of query small RNAs" help="'28' = 28 nucleotides"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
87 <param name="title" type="text" size="15" value= "Readmaps and size distributions" label="Main Titles"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
88 <param name="xlabel" type="text" size="15" value="Coordinates/read size" label="x axis label"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
89 <param name="ylabel" type="text" size="15" value="Number of reads" label="y axis label"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
90 <param name="yrange" type="integer" size="3" value="0" label="y axis range for readmaps. 0 means auto-scaling."/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
91 <param name="rows_per_page" type="text" size="9" value="8" label="How many items to display per page?">
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
92 <validator type="in_range" min="6" max="20" message="Select between 6 and 20 rows, as the readability will suffer otherwise."/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
93 </param>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
94 </inputs>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
95 <outputs>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
96 <data format="tabular" name="readmap_dataframe" label="Readmap dataframe"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
97 <data format="tabular" name="size_distribution_dataframe" label="Size distribution dataframe"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
98 <data format="pdf" name="readmap_PDF" label="Readmaps"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
99 <data format="pdf" name="size_PDF" label="Size distribution"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
100 <data format="pdf" name="combi_PDF" label="Size distribution and Readmaps"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
101 </outputs>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
102 <help>
0
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
103
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
104 **What it does**
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
105
8
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
106 Takes one or more alignment files (BAM, SAM or tabular bowtie output) as input and produces a "Readmap",
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
107 where by default for each "chromosome" the position of the read is recorded on the x-axis, and the y-axis indicates
0
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
108 the number of reads per position. Reads that map in sense are on the top, reads that map antisense are on the bottom.
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
109
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
110
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
111 .. class:: warningmark
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
112
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
113 '''TIP''' The input data can be produced using the sRbowtie tool.
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
114
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
115 ----
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
116
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
117 '''Example'''
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
118
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
119 Query sequence::
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
120 For a SAM file as the following:
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
121
8
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
122 5 16 2L_79 24393 255 17M * 0 0 CCTTCATCTTTTTTTTT IIIIIIIIIIIIIIIII XA:i:0 MD:Z:17 NM:i:0
0
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
123
8
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
124 11 0 2R_1 12675 255 21M * 0 0 AAAAAAAACGCGTCCTTGTGC IIIIIIIIIIIIIIIIIIIII XA:i:0 MD:Z:21 NM:i:0
0
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
125
8
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
126 2 16 2L_5 669 255 23M * 0 0 TGTTGCTGCATTTCTTTTTTTTT IIIIIIIIIIIIIIIIIIIIIII XA:i:0 MD:Z:23 NM:i:0
0
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
127
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
128 produce a plot like this:
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
129
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
130 ----
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
131
8
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
132 .. image:: static/images/readmap.png
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
133 :height: 800
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
134 :width: 500
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
135 </help>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
136 <tests>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
137 <test>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
138 <param name="genomeSource" value="history" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
139 <param name="ownFile" value ="transposons.fasta" ftype="fasta" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
140 <param name="series_0|input" value="sample1.srbowtie_out" ftype="tabular"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
141 <param name="series_0|norm" value="1" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
142 <param name="series_1|input" value="sample2.srbowtie_out" ftype="tabular"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
143 <param name="series_1|norm" value="1" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
144 <param name="series_2|input" value="sample3.srbowtie_out" ftype="tabular"/>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
145 <param name="series_2|norm" value="1" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
146 <param name="minquery" value="20" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
147 <param name="maxquery" value="30" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
148 <param name="title" value="Readmaps and size distributions" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
149 <param name="xlabel" value="Coordinates/read size" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
150 <param name="ylabel" value="Number of reads" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
151 <param name="rows_per_page" value="8" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
152 <output name="readmap_dataframe" ftype="tabular" file="Readmap_dataframe.tab" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
153 <output name="size_distribution_dataframe" ftype="tabular" file="Size_distribution_dataframe.tab" />
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
154 </test>
be0c6b6466cc planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 97b40d7a593cef6c3303f7baba781a84d242e454
mvdbeek
parents: 6
diff changeset
155 </tests>
0
ac7d8e55bb67 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit fe40dec87779c1fcfbd03330e653aa886f4a2cda
drosofff
parents:
diff changeset
156 </tool>