bvilhjal / ldpred

MIT License
96 stars 57 forks source link

Potential bug in plinkfiles.py #140

Open stormliucong opened 4 years ago

stormliucong commented 4 years ago

line 39~43

    # Iterating over file to load SNPs
    snp_i = 0
    next_i = ordered_snp_indices.pop()
    line_i = 0
    max_i = ordered_snp_indices[0]

if there is only one snp in ordered_snp_indices. there will be a IndexError: list index out of range for max_i