Commit 6b2f2dda authored by Jean Mainguy's avatar Jean Mainguy
Browse files

add sort to faciliate functional testing.

parent 0ff60cf3
......@@ -511,10 +511,10 @@ def main():
accessions_unfound_in_mapping_prot = accessions_unfound_in_mapping & hit_accessions
if acessions_with_unfound_taxid_prot:
outdisc.write(f"{protein_id}\tNo taxid in taxdump\t{','.join(acessions_with_unfound_taxid_prot)}\n")
outdisc.write(f"{protein_id}\tNo taxid in taxdump\t{','.join(sorted(acessions_with_unfound_taxid_prot))}\n")
if accessions_unfound_in_mapping_prot:
outdisc.write(f"{protein_id}\tNo protid correspondance file\t{','.join(accessions_unfound_in_mapping_prot)}\n")
outdisc.write(f"{protein_id}\tNo protid correspondance file\t{','.join(sorted(accessions_unfound_in_mapping_prot))}\n")
consensual_contig_taxid = get_taxid_consensus(contig_collate_hits, main_ranks)
count_rank_affiliation_contig[taxid2rank[consensual_contig_taxid]] += 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment