hammerlab / guacamole

Spark-based variant calling, with experimental support for multi-sample somatic calling (including RNA) and local assembly
Apache License 2.0
83 stars 21 forks source link

fold halfWindowSize into args plumbing #597

Closed ryan-williams closed 7 years ago

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.09%) to 78.757% when pulling b855ea5568b109aa312e38ee26ae058823875ea3 on ryan-williams:hws into 738996d8cfcc4bbcabf2138cf269b965dff5b190 on hammerlab:master.

ryan-williams commented 7 years ago

Sure, sorry I didn't provide more context.

I'm diving back into some loci-partitioning stuff to explore sending only the necessary reference material to each partition, rather than Broadcasting it per-contig.

The halfWindowSize treatment through the loci-partitioning logic felt like it was not encapsulated correctly:

The API I'm trying to support for loci-partitioners is:

Assembly callers want to map their --assembly-window-range parameter to the half-window-size, so I've done this by having CappedRegionsPartitionerArgs mix-in a halfWindowSize method that AssemblyArgs overrides and maps that flag to.

In a forthcoming PR I add a thin "partition-loci" top-level guac command that wants to do the same thing but with a different flag, so mixing-in and overriding HalfWindowConfig is a way to let multiple commands plumb half-windows through the loci-partitioning logic while allowing them to configure that value through CLI flags (or other logic) of their choice.

coveralls commented 7 years ago

Coverage Status

Changes Unknown when pulling 10c595bc652a900305dffbf000a53867b38f02ce on ryan-williams:hws into \ on hammerlab:master**.