glow icon indicating copy to clipboard operation
glow copied to clipboard

Support exploded genotype structs in utility functions

Open Hoeze opened this issue 5 years ago • 1 comments

It would be cool if all methods working for ArrayType(StructType([calls_schema])) genotypes could work for explode(genotypes) alias StructType([calls_schema]) as well.

Example:

  • genotype_states( <ArrayType(StructType([calls_schema]))> ) works
  • genotype_states( <(StructType([calls_schema])> ) does not

Of course, this only applies to methods that work on each sample separately.

Hoeze avatar Dec 29 '19 04:12 Hoeze

Thanks, this is a great suggestion!

henrydavidge avatar Jan 02 '20 15:01 henrydavidge