PMBio / limix-backup

http://pmbio.github.io/limix/
Apache License 2.0
45 stars 12 forks source link

snp_idx not defined in genotype_reader #20

Open jeffhsu3 opened 8 years ago

jeffhsu3 commented 8 years ago

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.