Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pathlib change extension

from pathlib import Path

filename = "mysequence.fasta"
new_filename = Path(filename).stem + ".aln"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pathlib #change #extension
ADD COMMENT
Topic
Name
1+2 =