diff --git a/VERSION b/VERSION index 38f77a65..e9307ca5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.1 +2.0.2 diff --git a/ppanggolin/formats/writeSequences.py b/ppanggolin/formats/writeSequences.py index e853f096..ea3b0291 100644 --- a/ppanggolin/formats/writeSequences.py +++ b/ppanggolin/formats/writeSequences.py @@ -38,8 +38,7 @@ def write_gene_sequences_from_annotations(genes_to_write: Iterable[Gene], file_o logging.getLogger("PPanGGOLiN").info(f"Writing all CDS sequences in {file_obj.name}") for gene in tqdm(genes_to_write, unit="gene", disable=disable_bar): if gene.type == "CDS": - gene_id = gene.ID if gene.local_identifier == "" else gene.local_identifier - file_obj.write(f'>{add}{gene_id}\n') + file_obj.write(f'>{add}{gene.ID}\n') file_obj.write(f'{gene.dna}\n') file_obj.flush()