Not sure if this is the function I should be using as it is placed in the deprecated folder.
I get the following when trying to call genotype_reader_h5py.getPos:
NameError: global name 'snp_idx' is not defined
Just commented out this line and it worked
elif snp_idx is not None:
return self.position.iloc[snp_idx]
Guessing this was useful at getting out 1 particular SNP by index.