-
Notifications
You must be signed in to change notification settings - Fork 13
MultipleVariantReader and MultipleVariantIterator #118
Conversation
gamgee/multiple_variant_reader.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably better here, but we should have a flag that bypasses this validation (most of the time we will be merging files that were generated by the same tool, thus not needing the time consuming validation).
done reviewing! Great job @jmthibault79 this looks really good. I want @droazen to also take a look. With these important parts of the engine we should be very minutious with the review. |
Thanks. These small commits address your comments except:
Travis is still failing, and I'm having trouble parsing the error messages. It would help if we had access to an environment similar to Travis'. |
I think your problem is in this line:
you can't make the
also note from this error line how the typecasting from
|
Thanks for the Travis help. That makes sense. When I change that structure to hold only one header, I'll make sure that it's not const. |
woot woot ! we broke the 70% barrier! 👍 |
has my blessing, next step benchmark it against bcftools! |
MultipleVariantReader and MultipleVariantIterator
Enables iteration over multiple input files, returning a vector of Variant objects per genomic location.
The vector is reused per location, so the caller must complete processing before continuing iteration, or make a copy.
Strongly inspired by the example of VariantReader/VariantIterator. Merging these Readers or Iterators may be appropriate.
This is an alternative solution to Issue #76