vcf-js icon indicating copy to clipboard operation
vcf-js copied to clipboard

Optimized parseGenotypes routine

Open cmdcolin opened this issue 1 year ago • 0 comments

At PAG a user gave me an idea for plotting many genotypes at once on the VCF track.

This is something that was done in jbrowse 1 with multivariantviewer, but it requires iterating through the genotypes of many features quickly. Ideally, we would want to see e.g. 1000 genomes data from a zoom level of e.g. 500kb

We could optimize the parseGenotypes routine e.g. the "get SAMPLES" routine

here is an example of how it looks parsing

Screenshot from 2023-01-20 09-17-45

2,800 variants, taking 8 seconds from a 100kb zoom level at 1000 genome data

cmdcolin avatar Jan 20 '23 17:01 cmdcolin