Skip to content

Commit

Permalink
Fix bug in get_gene_sequences_from_fastas
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjarnoux committed Nov 28, 2023
1 parent 22a0b20 commit d8fcf91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppanggolin/annotate/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def get_gene_sequences_from_fastas(pangenome: Pangenome, fasta_files: List[Path]
raise KeyError(f"One of the genome in your '{fasta_files}' was not found in the pan."
f" This might mean that the genome names between your annotation file and "
f"your fasta file are different.")
with read_compressed_or_not(elements[1]) as currFastaFile:
with read_compressed_or_not(Path(elements[1])) as currFastaFile:
fasta_dict[org] = read_fasta(org, currFastaFile)
if set(pangenome.organisms) > set(fasta_dict.keys()):
missing = pangenome.number_of_organisms - len(set(pangenome.organisms) & set(fasta_dict.keys()))
Expand Down

0 comments on commit d8fcf91

Please sign in to comment.