2
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
1 <tool id="nucleR" name="NucleR" version="0.1">
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
2 <description>: analyze aligned BAM files from MNAse (in RData format)</description>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
3 <requirements>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
4 <requirement type="binary">docker</requirement>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
5 </requirements>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
6 <command>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
7 <![CDATA[
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
8 docker run -v $__root_dir__/database/files:$__root_dir__/database/files -v /tmp:/tmp -u `id -u`:`id -g` mmbirb/nucleosome-dynamics nucleR --input $rdata_file --output $output_gff_file --type $seq_type --width $width --minoverlap $minoverlap --dyad_length $dyad_length --hthresh $hthres --wthresh $wthres --pcKeepComp $pcKeepComp --fdrOverAmp $fdrOverAmp --trim $trim --fragmentLen $fragmentLen
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
9 #if $threshold.is == "absolute":
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
10 --thresholdValue ${threshold.thresholdValue}
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
11 #else if $threshold.is == "percentage":
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
12 --thresholdPercentage ${threshold.thresholdPercentage}
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
13 #end if
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
14 #if $chr
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
15 --chr $chr
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
16 #end if
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
17 #if $start
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
18 --start $start
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
19 #end if
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
20 #if $end
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
21 --end $end
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
22 #end if
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
23 #if $comp
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
24 --components $comp
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
25 #end if
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
26 ]]>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
27 </command>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
28 <inputs>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
29 <param name="rdata_file" type="data" format="rdata" label="Input MNase-seq/ATAC-seq reads (RData)" help="Input BAM file in RData format as generated by readBAM."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
30 <param name="seq_type" type="select" label="Type of sequence reads">
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
31 <option value="paired">Paired</option>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
32 <option value="single">Single</option>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
33 </param>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
34 <param name="width" size="4" type="integer" value="147" label="Width (bp)" help="Size of each nucleosome."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
35 <param name="minoverlap" type="integer" value="80" label="Minimum Overlap (bp)" help="Minimum overlap between two nucleosomes for merging them."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
36 <param name="dyad_length" type="integer" value="50" label="Dyad length (bp)" help="Lenght of the reads that should be used for nucleosome calling to define the dyad of the nucleosomes keeping the number of bases around the center of the read."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
37 <param name="fragmentLen" type="integer" value="170" label="Fragment Length (bp)" help="Maximum fragment length allowed (bp)" optional="True" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
38 <param name="chr" type="text" value="" label="Chromosome" optional="True" help="Chromosome to consider for the analysis in the given input file."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
39 <param name="start" type="integer" value="" label="Start" optional="True" help="Start genomic position to consider for the analysis in the given input file."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
40 <param name="end" type="integer" value="" label="End" optional="True" help="End genomic position to consider for the analysis in the given input file."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
41 <param name="comp" type="integer" value="1" label="Components" optional="True" help="Number of negative binomials that will be used to filter duplicated reads."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
42 <conditional name="threshold">
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
43 <param name="is" type="select" label="Background threshold" help="Minimum number of reads (Coverage) to call a nucleosome. Can be given as a percentage, or an absolute number of reads.">
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
44 <option value="percentage" selected="True">use a percentage</option>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
45 <option value="absolute">use a number of reads</option>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
46 </param>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
47 <when value="absolute">
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
48 <param name="thresholdValue" type="integer" value="10" label="Bakground level (reads)" help="Absolute value to filter out nucleosome calls. It is the minimum number of reads (coverage) in a nucleosome call expressed as reads per million of mapped reads."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
49 </when>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
50 <when value="percentage">
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
51 <param name="thresholdPercentage" type="float" value="35" label="Background level (%)" help="Percentile of coverage in the experiment used as threshold to filter out nucleosome calls (i.e., 25% would mean that only peaks with coverage in the 1st quantile would be considered)"/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
52 </when>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
53 </conditional>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
54 <param name="hthres" type="float" value="0.4" label="Height Threshold" help="Height threshold (between 0 and 1) to classify a nucleosome as fuzzy (class=F) or well-positioned ( class=W) according to the number of reads at the dyad. Nucleosomes below this value will be defined as fuzzy."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
55 <param name="wthres" type="float" value="0.6" label="Width Threshold" help="Width threshold (between 0 and 1) to classify a nucleosome as fuzzy (class=F) or well-positioned (class=W) according to the dispersion of the reads around the dyad."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
56 <param name="fdrOverAmp" type="float" value="0.05" label="fdrOverAmp" help="Threshold to filter over-amplified reads , as defined in filterDuplReads function of htSetqTools R package."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
57 <param name="pcKeepComp" type="float" value="0.02" label="Coverage Smoothing" help="Parameter used in the smoothing when Fourier transformation is applied. Number of components to select with respect to the total size of the sample. Allowed values are numeric (in range 0:1) for manual setting, or auto for automatic detection."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
58 <param name="trim" type="integer" value="50" label="Trim" help="Number of basepairs to keep from each read (or to extend in case it is larger than the read width)."/>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
59 </inputs>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
60 <outputs>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
61 <data format="gff" name="output_gff_file" label="NR__${os.path.splitext(($rdata_file.name.split('__'))[1])[0]}.gff" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
62 </outputs>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
63 <tests>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
64 <test>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
65 <param name="rdata_file" value="readBAM__cellcycleM_chrII.RData" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
66 <param name="seq_type" value="paired" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
67 <param name="width" value="147" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
68 <param name="minoverlap" value="80" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
69 <param name="dyad_length" value="50" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
70 <param name="thresholdPercentage" value="35" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
71 <param name="hthres" value="0.4" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
72 <param name="wthres" value="0.6" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
73 <param name="pcKeepComp" value="0.02" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
74 <output name="output_gff_file" file="NR__cellcycleM_chrII.gff" />
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
75 </test>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
76 </tests>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
77 <help>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
78 .. image:: ${static_path}/images/NucleosomeDynamicsLogo.png
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
79 :height: 80
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
80 :width: 200
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
81
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
82 -----
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
83
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
84 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.
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
85
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
86 .. class:: infomark
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
87
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
88 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
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
89 </help>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
90 <citations>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
91 <citation type="bibtex">
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
92 @misc{github,
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
93 author = {Buitrago D},
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
94 year = {2019},
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
95 title = {Nucleosome Dynamics suite: containerized installation},
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
96 publisher = {Github},
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
97 journal = {GitHub repository},
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
98 url = {https://github.com/nucleosome-dynamics/nucleosome_dynamics},
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
99 }</citation>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
100 </citations>
|
spanish_national_institue_of_bioinformatics
parents:
diff
changeset
|
101 </tool>
|