Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Add per sample stats for training examples.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 363087311
  • Loading branch information
Genomics team in Google Brain authored and copybara-github committed Mar 16, 2021
1 parent a041ea8 commit c5e0e05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nucleus/util/variantcall_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ def get_min_dp(variant_call):
variant_call.info, 'MIN_DP', is_single_field=True)


def set_bam_fname(variant_call, bam_fname):
"""Sets 'BAM_FNAME' field of the VariantCall."""
return struct_utils.set_string_field(variant_call.info, 'BAM_FNAME',
bam_fname)


def has_genotypes(variant_call):
"""Returns True iff the VariantCall has one or more called genotypes.
Expand Down

0 comments on commit c5e0e05

Please sign in to comment.