This function fixes chromosomes so they are numeric

fix_chr(chr, f)

Arguments

chr

a vector of strings representing chromosomes

f

a scalar representing a file name (so user can understand which file is problematic)

Value

a vector of reformatted chromosomes