pathlib add extension to path code example
Example: pathlib change extension
from pathlib import Path
filename = "mysequence.fasta"
new_filename = Path(filename).stem + ".aln"
from pathlib import Path
filename = "mysequence.fasta"
new_filename = Path(filename).stem + ".aln"