Mercurial > repos > greg > genotype_population_info
changeset 5:47edf67ae650 draft
Uploaded
author | greg |
---|---|
date | Fri, 09 Nov 2018 14:15:22 -0500 |
parents | 5923e3420a04 |
children | be5f52df9a25 |
files | genotype_population_info.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/genotype_population_info.py Fri Nov 09 14:12:40 2018 -0500 +++ b/genotype_population_info.py Fri Nov 09 14:15:22 2018 -0500 @@ -40,9 +40,11 @@ csv_sample_id = items[0] csv_region = items[9] # Make sure the csv_sample_id is in the sample_list. - loc = sample_list.index(csv_sample_id) - if loc >= 0: + try: + loc = sample_list.index(csv_sample_id) region_list[loc] = csv_region + except Exception: + pass # The output file will consist of columns: # Item #, Sample ID, Region