Mercurial > repos > abims-sbr > cds_search
diff scripts/dico.py @ 1:c79bdda8abfb draft default tip
planemo upload for repository https://github.com/abims-sbr/adaptsearch commit 3a118aa934e6406cc8b0b24d006af6365c277519
author | abims-sbr |
---|---|
date | Thu, 09 Jun 2022 12:40:00 +0000 |
parents | eb95bf7f90ae |
children |
line wrap: on
line diff
--- a/scripts/dico.py Fri Feb 01 10:26:37 2019 -0500 +++ b/scripts/dico.py Thu Jun 09 12:40:00 2022 +0000 @@ -3,10 +3,10 @@ def dico(F1): dicoco = {} with open(F1, "r") as file: - for name, query in itertools.izip_longest(*[file]*2): + for name, query in itertools.zip_longest(*[file]*2): if name[0] == ">": fasta_name_query = name[:-1] - Sn = string.split(fasta_name_query, "||") + Sn = str.split(fasta_name_query, "||") fasta_name_query = Sn[0] fasta_seq_query = query[:-1] dicoco[fasta_name_query] = fasta_seq_query