Refactored identify_chromosomes into two functions: one to read the file and one just to get the names