1. The file /home/bios546/QM_rrnA.seq is a fairly simple fasta-formated file. The file only has 2 lines: the first is the comment line, starting with >, and the second is the entire sequence.
Open this file and read in the 2 lines into 2 string variables.
Parse the comment line, extracting the ID (everything after the > and before the first space), the beginning and end coordinates (next 2 numbers, separated by a hyphen, and the length. Print these out on separate lines that are labeled so I know which is which.
Print out the sequence with 80 characters per line (with \n at the end of each line). You will want to use the substr command for this.
2. The file /home/bios546/b_circ_16S.seq is a bit more complicated, because the sequence has been put on several lines. Your main objective here is to concatenate the entire sequence into a single string (with no \n’s in it). Also, pull out the GenBank accession number from the comment line: it is the stuff between gb| and the following |. Print out the sequence as a 2-line fasta-formatted file, with just the GenBank number on the comment line (immediately following the >), and the entire sequence on the next line.