Due Date: 11:59pm, June 22 (Sun), 2025
Purpose |
|
Description |
Write a python code to implement Fitch algorithm as a character-based evolutionary tree reconstruction algorithm to solve the small parsimony problem. Your python script should take the input file and output file names as command-line arguments, read 2^n DNA sequences (where n >= 1) in a FASTA format from the input file, implement the Fitch algorithm to find optimal sequences for internal nodes of an evolutionary tree, print the sequences for all nodes in the evolutionary tree to the output file, and print the parsimony score to screen. Please assign the DNA sequences in the input file to the leaf nodes of the evolutionary tree from left to right. Please assume all input DNA sequences have the same length. Please print the sequences of all nodes of the evolutionary tree (including leaf nodes), from left to right and top-down, to the output file. |
Submission |
Submit your python code "Assignment9.py" via LearnUs. |
Note |
|