Skip to content

Commit

Permalink
Merge pull request #9 from adamyhe/main
Browse files Browse the repository at this point in the history
Update match.py
  • Loading branch information
jmschrei authored Jun 20, 2024
2 parents 9248674 + 4b3fc4d commit 1593037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tangermeme/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def extract_matching_loci(loci, fasta, in_window=2114, out_window=1000,
verbose=verbose)

# Extract reference GC bins
matched_gc = X_matched.mean(axis=-1)[:, [1, 2]].sum(axis=1).numpy()
matched_gc = X_matched.mean(axis=-1, dtype=torch.float)[:, [1, 2]].sum(axis=1).numpy()
matched_gc = ((matched_gc + gc_bin_width / 2.) //
gc_bin_width).astype(int)

Expand All @@ -387,4 +387,4 @@ def extract_matching_loci(loci, fasta, in_window=2114, out_window=1000,
axis=(1, 2)).max()))

matched_loci = matched_loci.sort_values(["chrom", "start"])
return matched_loci
return matched_loci

0 comments on commit 1593037

Please sign in to comment.