Skip to content

Commit

Permalink
debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 12, 2024
1 parent 53c7999 commit 05b585b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/samples.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,16 @@ export function queryMap(chrom, start, end = start + 1) {
export async function vcfQuery(contig, start, end) {
const lines = [];
await VCF_TABIX_FILE.getLines(contig, start, end, line => lines.push(vcfParser.parseLine(line)));
console.debug(contig, start, end, lines);
return lines;
}


export function normalizeSamplesMap(lines) {
const variant = lines.find(vcfFilterFn);

console.debug(variant);

if (!variant) return undefined;

const variantData = {
Expand Down

0 comments on commit 05b585b

Please sign in to comment.