Hi, I'm following the tutorial here to annotate my VCF files https://rockefelleruniversity.github.io/RU_GenomicVariants/presentations/singlepage/RU_GenomicVariant_session2.html#Predict_amino_acid_changes25
and I'm currently at the step where I'm supposed to run predictCoding to predict the amino acid changes that happen
So far, everything in the code has been fine except when I run this command:
coding <- predictCoding(vcf_chr1, txdb, seqSource = Hsapiens)
I get the following error message
Error in mergeNamedAtomicVectors(seqlengths(x), seqlengths(y), what = c("sequence", : sequence chrM has incompatible seqlengths:
- in 'x': 16569
- in 'y': 16571
I had initially subset chr1, so the VCF file should contain chr1 only so I'm finding it a bit odd that it says sequence chrM has incompatible seqlengths. Any idea what could be going wrong here?
Thank you.
your VCF is using a reference for chrM that is not the same as used by your R lib.
see diferent contigs chrM
Thank you for the clarification. How can I best go about changing this? They both have the same seqlevelsStyle, genome, seqlevels. How do I ensure that they're both the same version / how do I change either of them (ideally the version for the txdb as I don't have access to the raw data to generate the vcf files to re-align them again)?