annotate minfi_dmp.xml @ 64:3d083550977f draft

Uploaded
author kpbioteam
date Thu, 04 Apr 2019 11:21:19 -0400
parents cffa2871fe8b
children 53aaf097238c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
1 <tool id="minfi_dmp" name="Minfi DMP" version="@MINFI_VERSION@">
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
2 <description>to find differentially methylated positions</description>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
3 <macros>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
4 <import>macros.xml</import>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
5 </macros>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
6 <expand macro="requirements" />
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
8 Rscript '$minfi_dmp_script'
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
9 ]]></command>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
10 <configfiles>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
11 <configfile name="minfi_dmp_script"><![CDATA[
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
12 require("minfi", quietly = TRUE)
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
13
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
14 set <- get(load('$grset'))
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
15
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
16 genomeranges <- as.data.frame(ranges(set))
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
17
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
18 beta <- getBeta(set)
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
19
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
20 pheno <- read.table('$phenotype_table',skip=1)
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
21
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
22 type <- '$phenotype'
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
23
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
24 qCutoff <- as.numeric('$q_cutoff')
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
25
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
26 shrinkVar <- '$variance_shrinkage'
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
27
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
28 tab <- read.table('$ucsc_genome')
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
29
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
30 tab <- tab[,-(11:14),drop=FALSE]
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
31
64
3d083550977f Uploaded
kpbioteam
parents: 17
diff changeset
32 tab <- tab[,c(1,4,5,10)]
17
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
33
64
3d083550977f Uploaded
kpbioteam
parents: 17
diff changeset
34 colnames(tab) <- c('chr','start','end','names')
17
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
35
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
36 dmp <- dmpFinder(beta, pheno[,"V2"], type = type, qCutoff = qCutoff, shrinkVar = shrinkVar)
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
37
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
38 dmp[,"names"] <- rownames(dmp)
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
39
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
40 data <- merge(dmp, tab, by="names",sort = TRUE)
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
41
64
3d083550977f Uploaded
kpbioteam
parents: 17
diff changeset
42 data <- data[,c(6,7,8,1,4,5)]
17
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
43
64
3d083550977f Uploaded
kpbioteam
parents: 17
diff changeset
44 write.table(data, file= '$dmp', quote = FALSE,col.names = TRUE, row.names = FALSE, sep = "\t")
3d083550977f Uploaded
kpbioteam
parents: 17
diff changeset
45 ]]>
17
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
46 </configfile>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
47 </configfiles>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
48 <inputs>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
49 <param type="data" name="grset" format="rdata" label="Input Set" help="MethylSet, RatioSet or GenomicRatioSet" />
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
50 <param type="data" name="phenotype_table" format="tabular" label="Phenotype Table"/>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
51 <param name="phenotype" type="select" label="Phenotype Type">
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
52 <option value="categorical">categorical</option>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
53 <option value="continuous">continuous</option>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
54 </param>
64
3d083550977f Uploaded
kpbioteam
parents: 17
diff changeset
55 <param name="q_cutoff" type="float" value="1" label="qCutoff Size" help="DMPs with an FDR q-value greater than this will not be returned."/>
17
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
56 <param name="variance_shrinkage" type="boolean" truevalue="TRUE" falsevalue="FALSE" label="Variance Shrinkage"
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
57 help="Enable variance shrinkage is recommended when sample sizes are small"/>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
58 <param type="data" name="ucsc_genome" format="gtf" label="Genome Table" help="UCSC genome data Methyl450"/>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
59 </inputs>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
60 <outputs>
64
3d083550977f Uploaded
kpbioteam
parents: 17
diff changeset
61 <data name="dmp" format="interval" label="Differentially Methylated Positions"/>
17
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
62 </outputs>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
63 <tests>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
64 <test>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
65 <param name="grset" value="GRSet_without_SNPs.rdata"/>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
66 <param name="phenotype_table" value="phenotypeTable.txt"/>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
67 <param name="phenotype" value="categorical"/>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
68 <param name="q_cutoff" value="1"/>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
69 <param name="variance_shrinkage" value="FALSE"/>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
70 <param name="ucsc_genome" value="ucsc.gtf"/>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
71 <output name="dmp" file="Differentially_Methylated_Positions.interval"/>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
72 </test>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
73 </tests>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
74 <help><![CDATA[
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
75 This tool creates differentially methylated positions (DMPs) with respect to a phenotype covariate. The phenotype may be categorical (e.g. cancer vs. normal) or continuous (e.g. blood pressure).
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
76
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
77 The output is an interval file with the following columns:
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
78
64
3d083550977f Uploaded
kpbioteam
parents: 17
diff changeset
79 - chr
17
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
80 - start
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
81 - end
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
82 - names
64
3d083550977f Uploaded
kpbioteam
parents: 17
diff changeset
83 - pvalue
3d083550977f Uploaded
kpbioteam
parents: 17
diff changeset
84 - qval
17
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
85
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
86 ]]></help>
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
87 <expand macro="citations" />
cffa2871fe8b Uploaded
kpbioteam
parents:
diff changeset
88 </tool>