I'm running a VCF file through singeR in order to get a mutation matrix; however, I keep getting this error. What could be causing it and how can I fix it, in layman's terms? Thank you!
Tutorial: https://bioconductor.org/packages/release/bioc/vignettes/signeR/inst/doc/signeR-vignette.html
Context: https://ibb.co/WBDmKw7
Error output, picture: https://ibb.co/4Jw79hT
Error output, no picture:
mut <- genCountMatrixFromVcf(BSgenome.Hsapiens.UCSC.hg19, vcfobj) Error in .getOneSeqFromBSgenomeMultipleSequences(x, name, start, NA, width, : sequence 1 not found In addition: Warning message: In .Seqinfo.mergexy(x, y) : The 2 combined objects have no sequence levels in common. (Use suppressWarnings() to suppress this warning.)
Not a good idea to send links to images to show the code you ran. We cannot copy/paste code from images.
Please include a self-contained reproducible example in the body of your post, in text form, so we can copy/paste it.
Also please provide your
sessionInfo()
as instructed in our posting guide.Thanks!
What do you mean by "self-contained reproducible example"? Can you give an example of an example that might help you? I'm just confused as to what information might help you and what data types you need
Here is my system info: https://ibb.co/zJfvLmz
You ran some code and you got an error. The people on this support site who want to help you need to be able to run that code, or a simplified version of it, on their own machine, so they can reproduce the error you got. A "self-contained reproducible example" is just that: a few lines of code that you provide and that we can run. Right now we can't because the code you showed in the image is not self-contained i.e. it uses things that we don't have access to (the VCF file).
I suspect that the error you got is because your VCF file is incompatible with the BSgenome package that you use (BSgenome.Hsapiens.UCSC.hg19). In particular it looks like the chromosomes in your VCF file have names that don't match the names of the chromosomes in hg19. So you need to figure out what assembly your VCF file is based on and make sure that you use the BSgenome package that matches this assembly.
Also please provide the full output of your
sessionInfo()
. What you provided in the image is truncated e.g. the first lines showing the version of R and the platform that you are on are missing.Finally please avoid putting code and code output in images. The information contained in these images is not searchable. Instead include code and code output in the body of your post. Thanks!
Okay, great! Thanks for the clarification. Here is the code I'm running from the tutorial above:
Here is my full systemInfo():
Here is the error:
Is that enough information? Thanks for your help!
No it's not. As I said earlier, we don't have access to your VCF file so we can't run the code you provided. If you can't provide code that we can run, you'll need to troubleshoot on your side. I gave you some hints in my previous comment on where to start looking (incompatibility between your VCF file and the BSgenome package you use). Did you look at that? What did you find?
H.