GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
206 stars 62 forks source link

Filter VariantTrack by VCF's FILTER column #766

Open garrettjstevens opened 4 years ago

garrettjstevens commented 4 years ago

Filter by VCF FILTER == "PASS", or by any other combination of detected filters. Remember VCF's FILTER can be an array of filter strings.

cmdcolin commented 4 years ago
  const VCFParser = new VCF({ header })
  console.log(VCFParser.metadata.FILTER)

With the vcf-js parser

    { PASS: { Description: 'Passed all filters' },
      q10: { Description: 'Quality below 10' },
      s50: { Description: 'Less than 50% of samples have data' } }