You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the VariantAnnotation package to annotate a VCF file from nf-core/sarek (UCSC style) using AnnotationHubEnsDb objects (Ensembl style), where I encountered the following issues:
However, this does not work, because the genome() of the EnsDb object is GRCh38, while the one of the assembly is hg38, raising an assertion error in VariantAnnotation. So this needs an additional line changing the internal state of the S4 genome object (we can't change the EnsDb object):
genome(ens106)[] ="hg38"# Error: unable to find an inherited method for function 'seqinfo<-' for signature 'x = "EnsDb"'asm@seqinfo@genome[] ="GRCh38"# works, but is messing with internals# this was previously the default, but they explicitly changed it
I'm not sure what a good solution is here. It seems to be that a check if they genomes are identical (as performed by VariantAnnotation) is reasonable. I'm raising this issue more to document it rather than suggesting a change in ensembldb.
I'm trying to use the VariantAnnotation package to annotate a VCF file from nf-core/sarek (UCSC style) using AnnotationHub
EnsDbobjects (Ensembl style), where I encountered the following issues:EnsDbobjects. I raised this (Allow 'ANY' txdb, eg. EnsDb objects Bioconductor/VariantAnnotation#74), but it will probably not get fixed; I worked around this by providing my own S4 method in my codeseqlevelsStyles()do not matchFor point (2), I can change the
EnsDbstyle toUCSC:and then either load UCSC-style genome or change the Ensembl-style genome to UCSC:
However, this does not work, because the
genome()of theEnsDbobject isGRCh38, while the one of the assembly ishg38, raising an assertion error in VariantAnnotation. So this needs an additional line changing the internal state of the S4 genome object (we can't change theEnsDbobject):I'm not sure what a good solution is here. It seems to be that a check if they genomes are identical (as performed by VariantAnnotation) is reasonable. I'm raising this issue more to document it rather than suggesting a change in ensembldb.