pathlib python 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"