Maybe a better approach to allow using intervals and extract just one region will be using a IntervalWalker with require reference and variant input.
For each interval, we use the ReferenceContext for getting the bases and the list of variants from the FeatureContext to get the variants overlapping the interval and substitute for each sample the simple bases.
This should be quite straightforward, and will improve the usage of GetFasta to use with custom intervals...
We should generate a new engine to allow to do not pass any interval to the tool, and walk over all the genome chromosome by chromosome as it is currently done...
Maybe a better approach to allow using intervals and extract just one region will be using a
IntervalWalker
with require reference and variant input.For each interval, we use the
ReferenceContext
for getting the bases and the list of variants from theFeatureContext
to get the variants overlapping the interval and substitute for each sample the simple bases.This should be quite straightforward, and will improve the usage of
GetFasta
to use with custom intervals...