Write a computer program in any scripting language of your choice to convert a DNA sequence assigned to you (available in .fasta format; refer to the appendix) into protein sequence considering the following mandatory requirements:
- The minimum length of protein should be 44 (containing 44 amino acids).
- There is no limit on maximum length of protein.
- If a file with wrong format is given then it should throw a message “input file is not in .fasta format” (https://en.wikipedia.org/wiki/FASTA_format)
- If a file with non DNA characters is given it should throw a message “input file does not contain DNA sequence data”
Your submission should contain your code along with following information in .txt/.doc/.pdf:
- Total number of proteins found
- Number of proteins found under the following sequence length:
- 44-100
- 100-500
- 500-Beyond