Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kcibul committed Mar 9, 2021
1 parent 20bbff4 commit 0293a21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions scripts/variantstore/tieout/compare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ def unroll_interval_range(r):
(start, end) = range_string.split("-")
return [ f"{chrom}:{x}" for x in range(int(start), int(end)+1) ]

if len(sys.argv) < 3:
print("Usage: python3 compare_data.py <warp-vcf-gz> <gvs-vcf-gz> [file-of-intervals-to-exclude]")
sys.exit(1)

vcf_file_1 = sys.argv[1]
vcf_file_2 = sys.argv[2]

Expand All @@ -229,7 +233,6 @@ def unroll_interval_range(r):
exclude_list.extend(unroll_interval_range(x.strip()))
exclude_set = set(exclude_list)


print(f"Excluding {len(exclude_set)} loci")

lines = 0
Expand Down Expand Up @@ -270,7 +273,7 @@ def unroll_interval_range(r):
if not equals(e1, e2, key):
log_difference(key, e1, e2)

# TODO: temporary until we decide what to do with spanning deletions
# TODO: temporary until we decide what to do with spanning deletions (see https://github.com/broadinstitute/dsp-spec-ops/issues/143)
if ('*' in e1['alt']):
#print(f"Dropping {e1['chrom']}:{e1['pos']} due to * allele")
continue
Expand Down
2 changes: 1 addition & 1 deletion scripts/variantstore/tieout/dig_reblocked.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ SAMPLE=$1
POS=$2

GVCF=$(cat legacy_wdl/sample_set_membership_v6.tsv | grep $SAMPLE | cut -f2)
gsutil cat $GVCF | gunzip | grep -C 10 $POS
gsutil cat $GVCF | zgrep -C 10 $POS

0 comments on commit 0293a21

Please sign in to comment.