Closed KristenKrolick closed 7 months ago
Hi! Thanks for reaching out. I'm afraid I can't tell from this information why the error is being thrown. I'm happy to help try and diagnose if you are able to send me a small subset of your chr1_22_M_bismarkBSseq.filtered
object that still throws the error. Let me know if you'd like a dropbox link for upload.
Yes, for the dropbox link. That sounds awesome, thanks! I know how to easily subset my data by 1 chromosome, and then save the workspace. Did you want me to upload the .Rdata file (workspace) or a different way?
You can subset to 1 chromosome (or even just a small fraction e.g. 10% of the chromosome if that still throws the same error - you can use bsObjectSubset <- bsObject[1:X,]
where bsObject
is the original bsseq object, and X
is the number of sites you'd like to keep in the subset). After verifying the error occurs on the bsObjectSubset
, please use the saveRDS
function to save the subsetted object (e.g. saveRDS(bsObjectSubset, "exData.rds")
.
Here is a dropbox file request link for easy upload of the .rds file: https://www.dropbox.com/request/PK9TVgZqRPLX6D1K1xr3
Oh nevermind it is working! It was because I had '0' and '1' for my testvariable instead of 'Yes' or 'No' category. Thank you!
Hello,
Thank you so much for your tool! Can you please help me figure out why I am getting the error "Error in data.frame(g.fac = rep(pDat[, colnames(design)[coeff[1]]], each = length(ix)), : arguments imply differing number of rows: 672, 654" when trying to run dmrseq? I think it may be because the way I filtered out zeros from samples, I did not know the code for how to do it per group. Can you give me example code of how to do it per group?
Or do you think the error returned is for a different reason? I can not figure out where the numbers 672 and 654 are coming from that is being returned in the error... It does not seem like it had to actually do with my covariate data inside the colData object of my BSseq object...
Thank you, Kristen
My code: