Skip to content

Commit

Permalink
cast sample names to str (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerkm authored May 14, 2024
1 parent 12edb1e commit dedfe5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeprvat/data/dense_gt.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def setup_phenotypes(
# account for the fact that genotypes.h5 and phenotype_df can have different
# orders of their samples
self.index_map_geno, _ = get_matched_sample_indices(
samples_gt.astype(int), self.samples.astype(int)
samples_gt.astype(str), self.samples.astype(str)
)
# get_matched_sample_indices is a much, much faster implementation of the code below
# self.index_map_geno = [np.where(samples_gt.astype(int) == i) for i in self.samples.astype(int)]
Expand Down

0 comments on commit dedfe5d

Please sign in to comment.