Open rcavalcante opened 5 years ago
Thanks for the example. I'll take a look this week and get back to you.
Hi @PeteHaitch,
I ran into a very similar issue. I believe that the culprit is this: https://github.com/hansenlab/bsseq/blame/master/R/BSseq-class.R#L98 since to get to it, the sampleNames
have to be NULL
and pData
is not NULL
. So it looks to me like https://github.com/hansenlab/bsseq/blob/3281f31f0f6cfefb5c75c3a5f7c59f13d685255e/R/BSseq-class.R#L96-L99 needs to be just a single }
(remove the else
clause).
Best, Leo
Ok, I just tested and it works for me using data from https://github.com/LieberInstitute/brain-epigenomics/blob/master/DMR_acf/compute_DMR_acf.R (under the following test case https://github.com/LieberInstitute/brain-epigenomics/blob/master/DMR_acf/compute_DMR_acf.R#L29).
> packageVersion('bsseq')
[1] ‘1.18.0’
This PR https://github.com/hansenlab/bsseq/issues/81 resolves this
If possible, can you port it also to the RELEASE
branch? Thx!
Hi Pete,
I git cherry-picked
my commit to my fork of the RELEASE_3_8
branch and was able to install it with devtools::install_github('lcolladotor/bsseq@RELEASE_3_8')
, so there's no hurry from my side about this. My old code now works again ^^
Best, Leo
Not forgotten this, just been swamped preparing for conference next week. Thanks for your patience.
I completely understand. No problem.
It appears that one easy fix is to always include both pData
and sampleNames
.
Hello,
I'm trying to get the code for methylSig in working order with the Bioc 3.8 and devel versions of
bsseq
and I'm running into a problem I didn't have with previous versions.Namely,
Gives the following error despite the rownames of
pData
being correct relative to theM
andCov
parameters:I've tracked down the problem to this block of the constructor (lines 91-111 of
BSseq-class.R
):The small example I've given above has
NULL
sampleNames
but non-NULL
pData
, so it tries to runpData <- DataFrame(row.names = sampleNames)
, which obliterates thepData
I've passed and causes the invalid rownames error.I think, at least. Please let me know if I've misunderstood or you can't reproduce with the example above. Thanks in advance!
Here is my
sessionInfo()
, I'm running in the Bioc 3.8 release Docker image with updated packages: