annotate chipeakanno_annopeaks.xml @ 4:104882a2de00 draft default tip

"planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
author kpbioteam
date Sun, 23 Feb 2020 07:58:07 -0500
parents 6f52c0dc56d4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
1 <tool id="chipeakanno_annopeaks" name="ChIPpeakAnno annoPeaks" version="0.1.0">
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
2 <description>annotate peaks by annoGR object in the given range</description>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
3 <requirements>
4
104882a2de00 "planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
kpbioteam
parents: 3
diff changeset
4 <requirement type="package" version="3.20.0">bioconductor-chippeakanno</requirement>
104882a2de00 "planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
kpbioteam
parents: 3
diff changeset
5 <requirement type="package" version="2.99.0">bioconductor-ensdb.hsapiens.v75</requirement>
104882a2de00 "planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
kpbioteam
parents: 3
diff changeset
6 <requirement type="package" version="1.46.0">bioconductor-rtracklayer</requirement>
104882a2de00 "planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
kpbioteam
parents: 3
diff changeset
7 <requirement type="package" version="1.2.2">bioconductor-genomeinfodbdata</requirement>
0
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
8 </requirements>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
9 <command detect_errors="exit_code"><![CDATA[
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
10 Rscript '$chipeakanno_annopeaks_script'
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
11 ]]></command>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
12 <configfiles>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
13 <configfile name="chipeakanno_annopeaks_script"><![CDATA[
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
14 require("ChIPpeakAnno", quietly = TRUE)
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
15 require("EnsDb.Hsapiens.v75", quietly = TRUE)
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
16 require("rtracklayer", quietly = TRUE)
4
104882a2de00 "planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
kpbioteam
parents: 3
diff changeset
17 require("GenomeInfoDbData", quietly = TRUE)
0
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
18
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
19 options(warn = -1)
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
20
4
104882a2de00 "planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
kpbioteam
parents: 3
diff changeset
21 data <- read.table('$dmp',header=FALSE)
0
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
22
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
23 peaks <- GRanges(seqnames = data[, 1],
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
24 ranges = IRanges
4
104882a2de00 "planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
kpbioteam
parents: 3
diff changeset
25 (start = as.numeric(data[, 2]), end = as.numeric(data[, 3]), score = data[, as.numeric('$score')]))
0
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
26
4
104882a2de00 "planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
kpbioteam
parents: 3
diff changeset
27 db <- toGRanges(EnsDb.Hsapiens.v75, feature="gene")
0
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
28 seqlevelsStyle(peaks) <- seqlevelsStyle(db)
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
29
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
30 start <- as.numeric('$start')
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
31 end <- as.numeric('$end')
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
32
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
33 anno <- annoPeaks(peaks, annoData=db, bindingType =c('$type'), bindingRegion=c(start, end))
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
34
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
35 write.table(anno, file= '$tab', quote = FALSE, row.names = FALSE, sep = "\t")
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
36 ]]>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
37 </configfile>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
38 </configfiles>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
39 <inputs>
4
104882a2de00 "planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
kpbioteam
parents: 3
diff changeset
40 <param type="data" name="dmp" format="bed" label="Differentially Methylated Positions"/>
0
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
41 <param name="type" type="select" label="bindingType" help="Specifying the criteria to associate peaks with annotation e.g. startSite start position of the feature strand">
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
42 <option value="startSite">startSite</option>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
43 <option value="endSite">endSite</option>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
44 <option value="fullRange">fullRange</option>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
45 <option value="nearestBiDirectionalPromoters">nearestBiDirectionalPromoters</option>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
46 </param>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
47 <param name="start" type="text" value="-5000" label="bindingRegionStart" help="e.g. to obtain peaks within 5kb upstream and up to 3kb downstream of TSS within the gene body, set bindingType = startSite and bindingRegion = c(-5000, 3000)"/>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
48 <param name="end" type="text" value="3000" label="bindingRegionEnd" help="e.g. to obtain peaks with nearest bi-directional promoters within 5kb upstream and 3kb downstream of TSS, set bindingType = nearestBiDirectionalPromoters and bindingRegion = c(-5000, 3000)"/>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
49
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
50 <param name="score" type="text" value="5" label="Additional Column of Score" help="Position of Additional Column of the Score" />
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
51 </inputs>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
52 <outputs>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
53 <data name="tab" format="tabular" label="Table of Annotated Peaks"/>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
54 </outputs>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
55 <tests>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
56 <test>
4
104882a2de00 "planemo upload for repository https://github.com/kpbioteam/chipeakanno_annopeaks commit 3af73b895c2dac2b8d87d1dec15204e5d30c709a-dirty"
kpbioteam
parents: 3
diff changeset
57 <param name="dmp" value="Differentially_Methylated_Positions.bed"/>
0
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
58 <param name="type" value="startSite"/>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
59 <param name="start" value="-5000"/>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
60 <param name="end" value="5000"/>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
61 <param name="score" value="5"/>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
62 <output name="tab" file="annoTab.tabular"/>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
63 </test>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
64 </tests>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
65 <help><![CDATA[
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
66 This tool annotate peaks from bed file.
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
67 bindingType
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
68 Specifying the criteria to associate peaks with annotation. Here is how to use it together with the parameter bindingRegion
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
69 To obtain peaks within 5kb upstream and up to 3kb downstream of TSS within the gene body, set bindingType = "startSite" and bindingRegion = c(-5000, 3000)
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
70 To obtain peaks up to 5kb upstream within the gene body and 3kb downstream of gene/Exon End, set bindingType = "endSite" and bindingRegion = c(-5000, 3000)
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
71 To obtain peaks from 5kb upstream to 3kb downstream of genes/Exons , set bindingType = "fullRange" and bindingRegion = c(-5000, 3000)
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
72 To obtain peaks with nearest bi-directional promoters within 5kb upstream and 3kb downstream of TSS, set bindingType = "nearestBiDirectionalPromoters" and bindingRegion = c(-5000, 3000)
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
73 startSite
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
74 start position of the feature (strand is considered)
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
75 endSite
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
76 end position of the feature (strand is considered)
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
77 fullRange
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
78 whole range of the feature
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
79 nearestBiDirectionalPromoters
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
80 nearest promoters from both direction of the peaks (strand is considered). It will report bidirectional promoters if there are promoters in both directions in the given region (defined by bindingRegion). Otherwise, it will report the closest promoter in one direction.
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
81 bindingRegion
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
82 Annotation range used together with bindingType, which is a vector with two integer values, default to c (-5000, 5000). The first one must be no bigger than 0. And the sec ond one must be no less than 1. For details, see bindingType.
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
83 ignore.peak.strand
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
84 ignore the peaks strand or not.
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
85 ]]></help>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
86 <citations>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
87 <citation type="doi">10.18129/B9.bioc.ChIPpeakAnno</citation>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
88 </citations>
95ad07b229df Uploaded
kpbioteam
parents:
diff changeset
89 </tool>