Skip to content

Commit ebf8d6f

Browse files
committed
sort species alphabetically to improve reproducability
1 parent 787b384 commit ebf8d6f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

FastOMA/_utils_roothog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def parse_proteomes(folder=None, min_sequence_length=0): # list_oma_species
166166
species_names.append(species_name)
167167
fasta_format_keep = ext # last one is stored either fa or fasta
168168

169+
species_names.sort() # sort the species names alphabetically -> reproducible results
169170
# todo accept all fasta formats in the input prtoeome folder, fasta, fa, fna, ..
170171
prot_recs_lists = {} # key: species name, value is a dic of query protein Biopython records. # 'MYCGE': [SeqRecord(seq=Seq('MDFDK
171172
#smallprot_recs_lists ={}

0 commit comments

Comments
 (0)