Hello,
I am a beginner who start to study bioinformatics.
Now I am trying to run RnBeads (R package) to analyze bisulfite sequencing data. I have beed used this package for several times and had successful results without any error.
But this time I tried for 3 times, but still getting an same error, and cannot guess what the problem is.
Is there any one who can help me to solve or fix this error?
I used "bismarkcov" format files, which are results of bismark and want to get result of differential methylation analysis.
My code is like this :
rnb.options(
identifiers.column="sampleID",
import.bed.style="bismarkCov",
assembly="hg38",
differential.report.sites=FALSE
)
report.dir <- file.path(getwd(), "results_diffMethyl_3")
data.dir <- file.path(getwd())
sample.annotation <- file.path(getwd(), "sample_annotation.csv")
data.source <- c(data.dir, sample.annotation)
rnb.set <- rnb.execute.import(data.source=data.source, data.type="bs.bed.dir")
rnb.set.unfiltered <- rnb.set
result_preprocessing <- rnb.run.preprocessing(rnb.set.unfiltered, dir.reports=report.dir)
rnb2.set <- result_preprocessing$rnb.set
rnb.run.differential(rnb2.set, report.dir)
And the error is like...
2018-01-17 23:38:37 11.2 STATUS COMPLETED Adding volcano plots
2018-01-17 23:38:37 11.2 STATUS STARTED Adding tables
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 583340, 218725
In addition: There were 12 warnings (use warnings() to see them)
I would be really grateful if you help to find out the reason or fix this error...
I am working on this for 7days...
I added code markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:
can you show the result of
str(rnb2.set)
?Thank you for giving me a comment! I would be very appreciate if you keep helping me to solve the problem..
in your working directory, do you have any results from the differential analysis? I'm just trying to understand at what point it's failing
In differential methylation analysis html page, I got regional level - scatter plots & volcano plots, but "Differential Methylation Tables" subsection is totally missing.
It only has :
and after this, there is nothing...