annotate plot_coverage.xml @ 79:c42dd2551c9c draft

"planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
author mvdbeek
date Tue, 07 Apr 2020 13:41:14 -0400
parents 6178c24ddd5a
children c9361b7a025d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
79
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
1 <tool id="plot_coverage" name="Plot coverage" version="0.5.25">
34
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
2 <description>as area plot between BAM files</description>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
3 <requirements>
79
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
4 <requirement type="package" version="0.5.25">readtagger</requirement>
34
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
5 </requirements>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
6 <command detect_errors="aggressive"><![CDATA[
75
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
7 #import re
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
8 plot_coverage
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
9 #for $r in $input_files
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
10 #set identifier = re.sub('[^\w\-_\.\,]', '_', str( $r.input.element_identifier))
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
11 --file '$r.input' '$identifier' $r.total_reads
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
12 #end for
79
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
13 output.pdf --cores \${GALAXY_SLOTS:-4} --regions '$regions' --plot_kind $plot_kind --style $style
34
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
14 ]]></command>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
15 <inputs>
75
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
16 <repeat name="input_files" title="Add input files to coverage plot" min="1">
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
17 <param name="input" type="data" format="bam,cram" label="Select a BAM file to plot"/>
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
18 <param name="total_reads" type="integer" value="0" min="0" label="Total number of (mapped) reads. If given plot scale will be reads per million"/>
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
19 </repeat>
34
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
20 <param name="regions" type="text" label="Select regions to plot" optional="true" help="e.g X:1200000-1250000,X1250000-1300000. If left blank will plot all contigs/chromosomes.">
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
21 <sanitizer>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
22 <valid initial="string.letters,string.digits">
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
23 <add value="-" />
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
24 <add value="," />
38
f6311a04a6c9 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 6ac744bd9d610990d1d54a2c36ddfca671b15205-dirty
mvdbeek
parents: 37
diff changeset
25 <add value=":" />
77
b9b76f9a816c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit dcf9c3bb0ed1b0a3011f659bd702bb47578178e7"
mvdbeek
parents: 76
diff changeset
26 <add value="." />
34
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
27 </valid>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
28 </sanitizer>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
29 </param>
78
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
30 <param name="plot_kind" type="select" label="Select the plot type">
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
31 <option value="area">Area plot</option>
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
32 <option value="line">Line plot</option>
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
33 </param>
79
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
34 <param name="style" type="select" label="Select a plotting style">
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
35 <option value="ggplot">ggplot</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
36 <option value="classic">classic</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
37 <option value="greyscale">greyscale</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
38 <option value="dark_background">dark_background</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
39 <option value="seaborn">seaborn</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
40 <option value="seaborn-bright">seaborn-bright</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
41 <option value="seaborn-colorblind">seaborn-colorblind</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
42 <option value="seaborn-dark">seaborn-dark</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
43 <option value="seaborn-dark-palette">seaborn-dark-palette</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
44 <option value="seaborn-darkgrid">seaborn-darkgrid</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
45 <option value="seaborn-deep">seaborn-deep</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
46 <option value="seaborn-muted">seaborn-muted</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
47 <option value="seaborn-notebook">seaborn-notebook</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
48 <option value="seaborn-paper">seaborn-paper</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
49 <option value="seaborn-pastel">seaborn-pastel</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
50 <option value="seaborn-poster">seaborn-poster</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
51 <option value="seaborn-talk">seaborn-talk</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
52 <option value="seaborn-ticks">seaborn-ticks</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
53 <option value="seaborn-white">seaborn-white</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
54 <option value="seaborn-whitegrid">seaborn-whitegrid</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
55 <option value="tableau-colorblind10">tableau-colorblind10</option>
c42dd2551c9c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit df2b1a906b8772810d995d7887e4e8f04aabc13a"
mvdbeek
parents: 78
diff changeset
56 </param>
34
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
57 </inputs>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
58 <outputs>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
59 <data name="output" format="pdf" label="Coverage plot on $on_string" from_work_dir="output.pdf"/>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
60 </outputs>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
61 <tests>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
62 <test>
75
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
63 <param name="input_files_0|input" value="three_cluster_out.bam" ftype="bam"/>
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
64 <param name="input_files_1|input" value="three_cluster_out.bam" ftype="bam"/>
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
65 <param name="input_files_0|total_reads" value="1000000" ftype="bam"/>
2c7f70390b7c "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 8ee42193ec9c4778fd2bd312f53322389b0731c5"
mvdbeek
parents: 74
diff changeset
66 <param name="input_files_1|total_reads" value="1000000" ftype="bam"/>
34
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
67 <param name="regions" value="3R:13373525-13373615"/>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
68 <output name="output" file="three_cluster_plot.pdf" ftype="pdf" compare="sim_size"/>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
69 </test>
78
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
70 <test>
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
71 <param name="input_files_0|input" value="three_cluster_out.bam" ftype="bam"/>
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
72 <param name="input_files_1|input" value="three_cluster_out.bam" ftype="bam"/>
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
73 <param name="input_files_0|total_reads" value="1000000" ftype="bam"/>
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
74 <param name="input_files_1|total_reads" value="1000000" ftype="bam"/>
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
75 <param name="regions" value="3R:13373525-13373615"/>
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
76 <param name="plot_kind" value="line"/>
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
77 <output name="output" file="three_cluster_plot_line.pdf" ftype="pdf" compare="sim_size"/>
6178c24ddd5a "planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit a1ef57aa402ca6a3cfc75a9652a02372b8b2c013"
mvdbeek
parents: 77
diff changeset
78 </test>
34
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
79 </tests>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
80 <help><![CDATA[
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
81
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
82 This tool plots the coverage over a specified region (by default all chromosomes/contigs).
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
83
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
84 ]]></help>
240c901dedc0 planemo upload for repository https://github.com/bardin-lab/readtagger/tree/master/galaxy commit 4b06a6c763730d6e20140c03156863d8d6aeace4-dirty
mvdbeek
parents:
diff changeset
85 </tool>