I was trying to use the bsseq package to analyze methylation. I was able to make a bsseq object but cannot seem to get the methylation values from the object. For example, I create an object (tdmr) with 4 samples:
tdmr
An object of type 'BSseq' with 27027 methylation loci 4 samples has not been smoothed
The object seems to contain the data for the 4 samples, but when I convert this into a GRanges object I can't see the data:
gr <- granges(tdmr)
gr GRanges object with 27027 ranges and 0 metadata columns:
seqnames ranges strand
<Rle> <IRanges> <Rle>
[1] chrX [3045200, 3045200] *
[2] chrX [3045201, 3045201] *
[3] chrX [3045249, 3045249] *
[4] chrX [3045250, 3045250] *
[5] chrX [3045279, 3045279] *
... ... ... ...
[27023] chrX [155614920, 155614920] *
[27024] chrX [155615020, 155615020] *
[27025] chrX [155615021, 155615021] *
[27026] chrX [155615169, 155615169] *
[27027] chrX [155615170, 155615170] *
seqinfo: 450 sequences from an unspecified genome; no seqlengths
Have I converted the bsseq object incorrectly? Or do I need to do something else?
thanks!