comparison nucDyn.xml @ 2:e88c806ddf3e draft default tip

Uploaded
author spanish_national_institue_of_bioinformatics
date Fri, 12 Apr 2019 05:28:43 -0400
parents
children
comparison
equal deleted inserted replaced
1:707216744193 2:e88c806ddf3e
1 <tool id="nucDyn" name="Nucleosome Dynamics" version="0.1">
2 <description>: detection of local changes in the position of nucleosomes, observed between two reference nucleosome maps </description>
3 <requirements>
4 <requirement type="binary">docker</requirement>
5 </requirements>
6 <command>
7 <![CDATA[
8 ln -f -s $output_bw_file $output_bw_file\.bw;
9 docker run -v $__root_dir__/database/files:$__root_dir__/database/files -v /data:/data -v /tmp:/tmp -u `id -u`:`id -g` mmbirb/nucleosome-dynamics nucDyn --input1 $rdata_file --input2 $rdata_file2 --calls1 $gff_file --calls2 $gff_file2 --outputGff $output_gff_file --outputBigWig $output_bw_file\.bw
10 #if $assembly.source == "buildin":
11 --genome ${assembly.ref_chrom_sizes_buildin}
12 #else if $assembly.source == "history":
13 --genome ${assembly.ref_chrom_sizes}
14 #end if
15
16 #if $maxdiff
17 --maxDiff $maxdiff
18 #end if
19 #if $maxlen
20 --maxLen $maxlen
21 #end if
22 #if $minreads
23 --shift_min_nreads $minreads
24 #end if
25 #if $threshold
26 --shift_threshold $threshold
27 #end if
28 #if $minread
29 --indel_min_nreads $minread
30 #end if
31 #if $indthreshold
32 --indel_threshold $indthreshold
33 #end if
34
35 --range $range --equal_size $equal --readSize $readsize ;
36 rm $output_bw_file\.bw
37 ]]>
38 </command>
39 <inputs>
40 <param name="rdata_file" type="data" format="rdata" label="Condition 1: MNase-seq reference reads (Rdata)" help="Input BAM from MNase-seq in RData format for the initial state to be compared."/>
41 <param name="gff_file" type="data" format="gff" label="Condition 1: MNase-seq reference nucleosomes (GFF)" help="Nucleosome calls in GFF format as obtained from nucleR for the initial state to be compared"/>
42 <param name="rdata_file2" type="data" format="rdata" label="Condition 2: MNase-seq final reads (Rdata)" help="Input BAM from MNase-seq in RData format for the final state to be compared. "/>
43 <param name="gff_file2" type="data" format="gff" label="Condition 2: MNase-seq final nucleosomes (GFF)" help="Nucleosome calls in GFF format as obtained from nucleR for the final state to be compared."/>
44 <conditional name="assembly">
45 <param name="source" type="select" label="Select a built-in reference genome or use one from your history" help="Taking from each assembly their chromosome sizes.">
46 <option value="buildin" selected="True">Use a built-in genome</option>
47 <option value="history">Use a genome from the history</option>
48 </param>
49 <when value="buildin">
50 <param name="ref_chrom_sizes_buildin" type="select" label="Select reference genome (Chrom sizes)" help="Select chromosome size for your reference genome. If your genome of interest is not listed, contact the Galaxy team">
51 <options from_file="nucldyn_publicdata.loc">
52 <column name="name" index="2"/>
53 <column name="value" index="3"/>
54 </options>
55 </param>
56 </when>
57 <when value="history">
58 <param name="ref_chrom_sizes" type="data" format="txt" label="Reference genome (Chrom sizes)" help="Upload chromosome size for your reference genome. Check below the documentation for learning about the file format."/>
59 </when>
60 </conditional>
61 <param name="range" type="text" value="All" label="Range" help="Genomic region to be analyzed: whole genome ('all'), entire chromosome (chromosome name i.e. 'chrX'), or region of a chromosome."/>
62 <param name="maxdiff" type="integer" value="70" label="Maximum Diff" optional="True" help="Maximum distance between the dyads of two reads that allows them to still be considered a *shift*. If unspecified but *readSize* is specified, it will be set to the half of readSize. If neither of them is specified, it will be set to 70."/>
63 <param name="maxlen" type="integer" value="140" label="Maximum Lenght" optional="True" help="Used in the preliminar filtering. Reads longer than this number will be filtered out."/>
64 <param name="minreads" type="integer" value="3" label="Shift minimum num. reads" optional="True" help="Minimum number of reads in a 'SHIFT +' or a 'SHIFT -' hotspot."/>
65 <param name="threshold" type="float" value="0.1" label="Shifts threshold" optional="True" help="Minimum score for a 'SHIFT +' or a 'SHIFT -' hotspot."/>
66 <param name="minread" type="integer" value="3" label="Indels minimum num. reads" optional="True" help="Minimum number of reads in an 'INCLUSION +' or a 'DELETION -' hotspot" />
67 <param name="indthreshold" type="float" value="0.05" label="Indels threshold" optional="True" help="Minimum score for an 'INCLUSION' or a 'DELETION' hotspot." />
68 <param name="equal" type="boolean" checked="false" label="Use Equal Size" optional="True" help="Set all fragments to the same size."/>
69 <param name="readsize" type="integer" value="140" label="Read Size" help="Length to which all reads will be set in case `equalSize` is `TRUE`. It is ignored when `equalSize` is set to `FALSE`." />
70 </inputs>
71 <outputs>
72 <data format="gff" name="output_gff_file" label="ND__${os.path.splitext(($gff_file.name.split('__'))[1])[0]}_${os.path.splitext(($gff_file2.name.split('__'))[1])[0]}.gff"/>
73 <data format="bigwig" name="output_bw_file" label="ND__${os.path.splitext(($gff_file.name.split('__'))[1])[0]}_${os.path.splitext(($gff_file2.name.split('__'))[1])[0]}.bw"/>
74 </outputs>
75 <tests>
76 <test>
77 <param name="rdata_file" value="readBAM__cellcycleG2_chrII.RData" />
78 <param name="rdata_file2" value="readBAM__cellcycleM_chrII.RData" />
79 <param name="gff_file" value="NR__cellcycleG2_chrII.gff" />
80 <param name="gff_file2" value="NR__cellcycleM_chrII.gff" />
81 <param name="ref_chrom_sizes_buildin" value="/data/nucldyn_publicdata/refGenomes/R64-1-1/R64-1-1.fa.chrom.sizes" />
82 <param name="range" value="All" />
83 <param name="maxdiff" value="70" />
84 <param name="maxlen" value="140" />
85 <param name="minreads" value="3" />
86 <param name="threshold" value="0.1" />
87 <param name="minread" value="3" />
88 <param name="indthreshold" value="0.05" />
89 <output name="output_gff_file" file="ND__cellcycleG2_chrII_cellcycleM_chrII.gff" />
90 <output name="output_bw_file" file="ND__cellcycleG2_chrII_cellcycleM_chrII.bw" />
91 </test>
92 </tests>
93 <help>
94 .. image:: ${static_path}/images/NucleosomeDynamicsLogo.png
95 :height: 80
96 :width: 200
97
98 -----
99
100 Nucleosome Dynamics is a set of tools that take MNase-seq and ATAC-seq aligned reads and performs a serie of nucleosome-related analyses on them.
101
102 .. class:: infomark
103
104 Visit the documentation of the original application for learning more about the accepted values and formats. http://mmb.irbbarcelona.org/NucleosomeDynamics/help/usage/nucleosome-dynamics
105 </help>
106 <citations>
107 <citation type="bibtex">
108 @misc{github,
109 author = {Buitrago D},
110 year = {2019},
111 title = {Nucleosome Dynamics suite: containerized installation},
112 publisher = {GitHub},
113 journal = {GitHub repository},
114 url = {https://github.com/nucleosome-dynamics/nucleosome_dynamics},
115 }</citation>
116 </citations>
117 </tool>