add paths to path object 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"