Dear All,
I have installed VariantAnnotation and I am doing the following to locate variants
library(VariantAnnotation)
library(TxDb.Mmusculus.UCSC.mm9.knownGene)
txdb <- TxDb.Mmusculus.UCSC.mm9.knownGene
head(seqlevels(txdb))
peak.file =read.table ("D:\\lena\\TOTAL.peak.target.genes.list.txt", header=T, sep='\t')
pr <- RangedData(IRanges(start=peak.file$start, end=peak.file$end), space=peak.file$chromosome, idx=1:nrow(peak.file))
loc <- locateVariants(pr, txdb, CodingVariants())
and I get the following error....
Error in function (classes, fdef, mtable) :
unable to find an inherited method for function "locateVariants", for signature "RangedData", "TranscriptDb"
Do you have any idea what it means?
I would thought that the installation wasn't ok but when I check into my libraries I can see the varriantannotation library
What should I do?
Thank you
Best regards Lena
thanks for the answer
I tried both the ways and I get the following error
I don't get what is going on.....
did you remember to use pr_GR instead or pr?
yes I did....
first I did the RangedData and then from that I did the GRange and I receive this error..
what do you think?
paste in your new code
here it is
and i get the following
What should I do?
Please help me....
loc <- locateVariants(pr_GR, txdb, CodingVariants())
sorry I made a typo....I had
loc <- locateVariants(pr_GR, txdb, CodingVariants())
Hi e.karasmani,
Are you still having problems with this? If yes, please show the first few lines of the GRanges you have created. The error message you are getting implies that the RangedData has not been successfully coerced to a GRanges. You can also confirm this with
Jeremy is correct in that RangedData is not an allowed input. To see all possible inputs use the showMethods() function,
Any time you have problems with a function in a Bioconductor package feel free to contact the maintainer with questions - contact emails can be found on the man page for the function. Also a post to the Bioconductor mailing list can be helpful.
http://bioconductor.org/help/mailing-list/
Valerie
that error does not make sense unless you are passing it RangedData. try this code:
this is what I am doing and what I get here it is
Here I get this warning but I don't think it is important
so I am saying
then I am doing that
and I get that error
I don't understand what is going on......
Sorry for that....I am a rookie in this field
Do you have any idea?
Thank you in advance
Best regards Lena
show us a sample of your pr_GR:
head(pr_GR)
here you are
what do you think?
those work fine. keep taking bigger chunks of your prGR (head(prGR,100)...head(prGR,500)...head(prGR,2000)) until you nail down the culprit.
i have made the pr_GR as a data frame and saved it and and I checked.....there are no NAs in the file and it looks ok
here is an example
and
I don't know what should I do.....
You need to actually try these chunks with locateVariants. This is debugging 101.
Thanks,
I have tried that and here is what I did
It doesn't look ok the output
What do you think is going on?
Neither of the columns look like what they supposed to be according to the manual of the Varriant annotation library.... Don't you agree?
Do you have any idea?
Thanks Lena
Hi Lena,
What part of this output looks wrong? It looks ok to me. A variant in an intron region will have a geneID but an intergenic variant (one that falls inbetween genes) will have geneID's for both the preceding and following genes.
Valerie