Skip to content

Reading VCF file features using custom 'Allele' subclass #1653

Answered by lbergelson
makenzi-nzau asked this question in Q&A
Discussion options

You must be logged in to vote

@makenzi-nzau That's a great question. Unfortunately I don't have a great answer. The simple answer is that there's no easy way to make the AbstractFeatureReader provide an iterator that does what you want.

I think the simplest thing to do, but it might not be what you want, is to wrap the produced iterator in a new iterator that internally repackages the produced VariantContexts with your Allele implementation.

A more involved procedure would be to implement your own subclass of AbstractFeatureReader which does what you want and then explicitly invoke that.

Neither is really is likely to be a great option unfortunately. I think WHY you want a new implementation of Allele and what you wan…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@makenzi-nzau
Comment options

Answer selected by makenzi-nzau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants