statgen / EPACTS

GNU General Public License v3.0
34 stars 20 forks source link

Fixing issue with variants names (encoding) #1

Closed mcanouil closed 7 years ago

mcanouil commented 7 years ago

"which" returns error "Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'integer'" when the size of the logical vector is too high and includes names.

EDIT: In fact, the error can occurs for some encoding issue within the vcf file. "unname" didn't solve properly the issue, instead it just moved it elsewhere.

The workaround, is to replace the variant names, for the computation part, then put the correct names back at the end.