Skip to content

Commit

Permalink
Actually use chromsizes from the header
Browse files Browse the repository at this point in the history
  • Loading branch information
Phlya committed May 3, 2024
1 parent 8c41a26 commit 907a35f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pairtools/lib/scaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ def compute_scaling(
pairs_df = pairs

elif isinstance(pairs, str) or hasattr(pairs, "buffer") or hasattr(pairs, "peek"):
pairs_df, _, _ = pairsio.read_pairs(pairs, nproc=nproc_in, chunksize=chunksize)
pairs_df, _, chromsizes = pairsio.read_pairs(
pairs, nproc=nproc_in, chunksize=chunksize
)
else:
raise ValueError(
"pairs must be either a path to a pairs file or a pd.DataFrame"
Expand Down

0 comments on commit 907a35f

Please sign in to comment.