You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks again for developing such a fantastic tool. We use it for nearly every project in my group!
I'm curious if it would be possible to add a new property/method to VariantInfo that returns a sparse representation of genotypes. Ideally, something like var.sparse_genotypes that returns a (values, indices) for non-zero genotypes and sample indices where those occur.
This is already achievable with numpy filtering of var.gt_types, it is somewhat slow, and I'm curious if doing this in Cython space is faster.
The overall goal is to be able to build a sparse genotype matrix across all variants, which would look something like,
Hi @brentp ,
thanks again for developing such a fantastic tool. We use it for nearly every project in my group!
I'm curious if it would be possible to add a new property/method to
VariantInfo
that returns a sparse representation of genotypes. Ideally, something likevar.sparse_genotypes
that returns a (values, indices) for non-zero genotypes and sample indices where those occur.This is already achievable with numpy filtering of
var.gt_types
, it is somewhat slow, and I'm curious if doing this in Cython space is faster.The overall goal is to be able to build a sparse genotype matrix across all variants, which would look something like,
The text was updated successfully, but these errors were encountered: