From Project ROSALIND: Consensus and Profile http://rosalind.info/problems/cons/ Version History 2020-04-14 — David M. Ng — Initial version.
This project started from a copy of project “FASTA Parser”. This provided not only the FASTA_Read custom block, but also variables needed by FASTA_Read and starter/sample code that calls FASTA_Read. See the “FASTA Parser” project for Instructions, and Notes and Credits. There are a lot of different computations to perform over relatively complex data structures, and thus a lot of code. I used custom blocks to decompose the code. Main program (i.e., event handler for [when green flag clicked]) * BuildProfile — reads the FASTA file and constructs the profile matrix * FASTA_Read — “imported” from another project to read the FASTA file * InitializeProfile — checks to see if profile lists have been initialized and, if not, creates profile lists with correct number of zero entries (a zero for each sequence position) * BuildConsensusString — repeats for each base position to build the consensus string * FormatConsensusOutput — creates a list (to enable copying of results) with entries for the consensus string and each of the base profiles