Dear..
I would like to view pDensity, RPKM and rms values in the UCSC genome browser. For generation of RPKM and pDensity Wiggle files I followed the 7.2 "Export Wiggle Files" workflow as described in the MEDIPS tutorial, which woked well. Next, I would like to also add rms values as a costum track, which I do not think is included in the MEDIPS.exportWIG function?:
Instead, I tried the following:
H1 <- MEDIPS.createSet(file = "H1_Hg18_merged.bam", BSgenome = BSgenome, window_size = ws, extend = extend, shift = shift, uniq = uniq)
CS = MEDIPS.couplingVector(pattern = "CG", refObj = H1)
H1_results = MEDIPS.meth(MSet1 = H1, CSet = CS, CNV = F, MeDIP = T)
rms_H1 <- H1_results$H1_Hg18_merged.bam.rms
cat(rms_H1, sep = "\n", file = "rms_H1_WS200.txt", labels = NULL, append = FALSE)
# Subsequently, I opened up the rms_H1_WS200.txt file in a text editor and added the following (to the top):
track type=wiggle_0 name="H1_rms" description="" visibility=full autoScale=on co
lor=0,0,255 maxHeightPixels=100:50:20 graphType=bar priority=20
fixedStep chrom=chr1 start=1 step=200 span=200
Example:
track type=wiggle_0 name="H1_rms" description="" visibility=full autoScale=on co
lor=0,0,255 maxHeightPixels=100:50:20 graphType=bar priority=20
fixedStep chrom=chr1 start=1 step=200 span=200
0
0
0.2791065
0.06519054
0
0
0
# However, when I paste the URL (http://../rms_H1_WS200.wig) into UCSC, I get the following error:Error track load error (track name='ct_H1rms_3997'):
invalid double: NA
Is there a way to generate Wig files from rms values through the MEDIPS.exportWIG function? Or any advice on how to generate the rms Wig file in a similar manner to the RPKM and pDensity Wig files is much appreciated
Kindest,
Maria