-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on setting seqlevelsStyle(gal) <- "RefSeq"
#105
Comments
Hi Robert, It doesn't work here for this particular GAlignments object because its genome is unknown:
So it doesn't really have much to do with the fact that the object is a TxDb or GAlignments, you would get the same error with a TxDb object that has an unspecified genome. For example with a simple GRanges object:
Anyways, the error message is admittedly not very helpful here. I'll try to improve that... |
I see, thanks Hervé. Looking at the code of the package of GenomicAlignments, the line that builds the seqinfo <- Seqinfo(seqnames=names(seqlengths), seqlengths=seqlengths) does not attempt to fill the The package library(VariantAnnotation)
hdr <- scanVcfHeader(fl)
hdr
class: VCFHeader
samples(3): NA00001 NA00002 NA00003
meta(8): fileDate fileformat ... SAMPLE PEDIGREE
fixed(1): FILTER
info(6): NS DP ... DB H2
geno(4): GT GQ DP HQ
seqinfo(hdr)
Seqinfo object with 1 sequence from B36 genome:
seqnames seqlengths isCircular genome
20 62435964 NA B36 Wouldn't make sense for the package |
Indeed. I just changed this in GenomicAlignments 1.39.4 so now
According to the SAM specs, the genome assembly can be specified via the
However, there are at least two problems with this:
Sure, but note that it's easy enough to set the |
hi Hervé, thanks a lot for the thorough analysis of the underlying problem, for the fix, and for starting the feature request on Rsamtools. Indeed, being able to do |
…er on GAlignment* objects is not NA; see Bioconductor/GenomeInfoDb#105
hi,
setting
seqlevelsStyle()
toRefSeq
works for, e.g.,TxDb
objects, but it gives an error withGenomicAlignment
objects. Here is a minimal repex:I guess if it is supported for
TxDb
objects, it should be also supported forGenomicAlignment
objects.The text was updated successfully, but these errors were encountered: