A script written in Python that returns a consensus string and profile matrix of a given DNA string(s) in FASTA format.
Open the file and rename the "cons.fasta" to your input DNA strings FASTA file. OR Rename your file to cons.fasta and place it beside the script.
The code will return the consensus string and save the profile matrix to a csv file.
This script was written to solve a problem on rosalind.info: https://rosalind.info/problems/cons/