Skip to content

Commit

Permalink
pvar must be collected if there is no variant subset
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Scott <[email protected]>
  • Loading branch information
kscott-1 committed Nov 19, 2024
1 parent b03e125 commit ae5f067
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snputils/snp/io/read/pgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def read(
if variant_idxs is None:
num_variants = file_num_variants
variant_idxs = np.arange(num_variants, dtype=np.uint32)
pvar = pvar.collect()
else:
num_variants = np.size(variant_idxs)
variant_idxs = np.array(variant_idxs, dtype=np.uint32)
Expand Down

0 comments on commit ae5f067

Please sign in to comment.