Pathlib -Änderungserweiterung
from pathlib import Path
filename = "mysequence.fasta"
new_filename = Path(filename).stem + ".aln"
Danger D
from pathlib import Path
filename = "mysequence.fasta"
new_filename = Path(filename).stem + ".aln"