Mercurial > repos > charles-bernard > data_manager_build_alfa_indexes
changeset 21:fbb5a2468fa8 draft
Uploaded
author | charles-bernard |
---|---|
date | Mon, 31 Oct 2016 19:22:59 -0400 |
parents | 58cb1f6c337d |
children | b9ebfd9461eb |
files | data_manager_build_alfa_indexes/data_manager/data_manager_build_alfa_indexes.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/data_manager_build_alfa_indexes/data_manager/data_manager_build_alfa_indexes.py Mon Oct 31 19:11:55 2016 -0400 +++ b/data_manager_build_alfa_indexes/data_manager/data_manager_build_alfa_indexes.py Mon Oct 31 19:22:59 2016 -0400 @@ -104,11 +104,11 @@ list_species = [''] * nb_lines for i in range(0, nb_lines): if kingdom == 'vertebrates': - fields = species_lines[0].split(' ') + fields = species_lines[i].split(' ') columns = fields[-1].split('\r') list_species[i] = columns[0] else: - columns = species_lines[0].split('\t') + columns = species_lines[i].split('\t') list_species[i] = columns[1] exact_match = re.search('^%s$' % species_name, list_species[i]) if exact_match: @@ -236,4 +236,4 @@ cleanup_before_exit(tmp_dir) open(output_filename, 'wb').write(to_json_string(data_manager_dict)) -main() \ No newline at end of file +main()