Mercurial > repos > kpbioteam > chipeakanno_annopeaks
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 |
rev | line source |
---|---|
0 | 1 <tool id="chipeakanno_annopeaks" name="ChIPpeakAnno annoPeaks" version="0.1.0"> |
2 <description>annotate peaks by annoGR object in the given range</description> | |
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 | 8 </requirements> |
9 <command detect_errors="exit_code"><![CDATA[ | |
10 Rscript '$chipeakanno_annopeaks_script' | |
11 ]]></command> | |
12 <configfiles> | |
13 <configfile name="chipeakanno_annopeaks_script"><![CDATA[ | |
14 require("ChIPpeakAnno", quietly = TRUE) | |
15 require("EnsDb.Hsapiens.v75", quietly = TRUE) | |
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 | 18 |
19 options(warn = -1) | |
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 | 22 |
23 peaks <- GRanges(seqnames = data[, 1], | |
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 | 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 | 28 seqlevelsStyle(peaks) <- seqlevelsStyle(db) |
29 | |
30 start <- as.numeric('$start') | |
31 end <- as.numeric('$end') | |
32 | |
33 anno <- annoPeaks(peaks, annoData=db, bindingType =c('$type'), bindingRegion=c(start, end)) | |
34 | |
35 write.table(anno, file= '$tab', quote = FALSE, row.names = FALSE, sep = "\t") | |
36 ]]> | |
37 </configfile> | |
38 </configfiles> | |
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 | 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"> |
42 <option value="startSite">startSite</option> | |
43 <option value="endSite">endSite</option> | |
44 <option value="fullRange">fullRange</option> | |
45 <option value="nearestBiDirectionalPromoters">nearestBiDirectionalPromoters</option> | |
46 </param> | |
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)"/> | |
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)"/> | |
49 | |
50 <param name="score" type="text" value="5" label="Additional Column of Score" help="Position of Additional Column of the Score" /> | |
51 </inputs> | |
52 <outputs> | |
53 <data name="tab" format="tabular" label="Table of Annotated Peaks"/> | |
54 </outputs> | |
55 <tests> | |
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 | 58 <param name="type" value="startSite"/> |
59 <param name="start" value="-5000"/> | |
60 <param name="end" value="5000"/> | |
61 <param name="score" value="5"/> | |
62 <output name="tab" file="annoTab.tabular"/> | |
63 </test> | |
64 </tests> | |
65 <help><![CDATA[ | |
66 This tool annotate peaks from bed file. | |
67 bindingType | |
68 Specifying the criteria to associate peaks with annotation. Here is how to use it together with the parameter bindingRegion | |
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) | |
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) | |
71 To obtain peaks from 5kb upstream to 3kb downstream of genes/Exons , set bindingType = "fullRange" and bindingRegion = c(-5000, 3000) | |
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) | |
73 startSite | |
74 start position of the feature (strand is considered) | |
75 endSite | |
76 end position of the feature (strand is considered) | |
77 fullRange | |
78 whole range of the feature | |
79 nearestBiDirectionalPromoters | |
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. | |
81 bindingRegion | |
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. | |
83 ignore.peak.strand | |
84 ignore the peaks strand or not. | |
85 ]]></help> | |
86 <citations> | |
87 <citation type="doi">10.18129/B9.bioc.ChIPpeakAnno</citation> | |
88 </citations> | |
89 </tool> |