Hi everyone,
I am having a coding problem while using SeqVarData function. I believe I've been using the same exact code with the same type of data and it worked perfectly so I don't know what I' doing wrong this time.
Here is the code I'm running:
seqData <- SeqVarData(gds, sampleData=annot)
And here is the error message:
Error in (function (cond) : error in evaluating the argument 'data' in selecting a method for function 'AnnotatedDataFrame': is.character(gdsfile) | inherits(gdsfile, "SeqVarGDSClass") is not TRUE
When I run
is.character(gdsfile)
[1] TRUE
or
inherits(gdsfile, "SeqVarGDSClass")
[1] FALSE
If someone had an idea of what the problem may be, that would be super helpful! Thanks a lot!
In your first block of code, the object is called 'gds', but in the second and third blocks it's called 'gdsfile'. Presumably those aren't the same things?
Sorry my mistake,
With the correct input
is.character(gds) > FALSE
inherits(gds, "SeqVarGDSClass") > TRUE