-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mistake in BSseq
constructor?
#80
Comments
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 Lines 96 to 99 in 3281f31
} (remove the else clause).
Best, |
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 #81 resolves this |
If possible, can you port it also to the |
Hi Pete, I Best, |
Not forgotten this, just been swamped preparing for conference next week. |
I completely understand. No problem. |
It appears that one easy fix is to always include both |
* The issue (hansenlab/bsseq#80) is fixed by including both pData and sampleNames, even though you shouldn't really have to. There's no harm in doing so.
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:The text was updated successfully, but these errors were encountered: