vatlab / varianttools

software tool for the manipulation, annotation, selection, and analysis of variants in the context of next-gen sequencing analysis
https://vatlab.github.io/vat-docs/
GNU General Public License v3.0
31 stars 4 forks source link

index out of range from 'vtools associate' #127

Closed BoPeng closed 5 years ago

BoPeng commented 5 years ago
(vtools) [bpeng1@iaiw0cl0148595:~/vtools/demo]$ vtools associate common_ceu BMI --covariate SEX --samples "RACE=1" -m "LinRegBurden --alternative 2" -j1 --to_db EA_CV -v3
INFO: 90 samples are selected by condition: (RACE=1)
ERROR: string index out of range

The error happens at this line of code,

if HDF5_table[0][0] != self.table or HDF5_group[0][0] != group_by[0]:

where HDF5_table is actually ('', ).

BoPeng commented 5 years ago

@jma7 Let me know if the patch makes sense.