Skip to content

Commit

Permalink
removed ensemble shifts in stitch
Browse files Browse the repository at this point in the history
  • Loading branch information
anyakors committed Feb 21, 2024
2 parents 6967b4e + 9be07ed commit 88b70e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/baskerville/scripts/hound_snp.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ def main():
help="Ensemble prediction shifts [Default: %default]",
)
parser.add_option(
"--stitch",
"--stitch",
dest="stitch",
default=False,
default=False,
action="store_true",
help="Stitch left and right compensation shift predictions for indels [Default: %default]")
help=" [Default: %default]",
)
parser.add_option(
"--stats",
dest="snp_stats",
Expand Down
2 changes: 1 addition & 1 deletion src/baskerville/snps.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def score_snps(params_file, model_file, vcf_file, worker_index, options):
)
alt_preds = np.repeat(alt_preds, repeats=2, axis=0)
alt_preds = list(alt_preds)

# flip reference and alternate
if snps[si].flipped:
rp_snp = np.array(alt_preds)
Expand Down

0 comments on commit 88b70e4

Please sign in to comment.