Skip to content

Commit

Permalink
fix: try to fix VCF init
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 12, 2024
1 parent e62ed16 commit 79c9dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/samples.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import Tabix from "@gmod/tabix";
import VCF from "@gmod/vcf"
import VCF from "@gmod/vcf";

import config from "../config.js";
import envConfig from "../envConfig.js";
Expand All @@ -19,7 +19,7 @@ import {
const { TabixIndexedFile } = Tabix;

const VCF_TABIX_FILE = new TabixIndexedFile({ path: envConfig.GENOTYPE_VCF_PATH });
const vcfParser = new VCF({ header: await VCF_TABIX_FILE.getHeader() });
const vcfParser = new VCF.default({ header: await VCF_TABIX_FILE.getHeader() });
const vcfFilterFn = config.samples?.vcfFindFn
?? ((line) => line.REF.length === 1 && line.ALT.every((a) => a.length === 1));

Expand Down

0 comments on commit 79c9dfb

Please sign in to comment.