Im working on a code using python and I need help with this problem: What is the average molecular weight of the peptide sequences in “some_frog_amps.fasta”? (To solve this, read in the FASTA file, compute and sum up the molecular weight for each sequence, and divide by the number of sequences.)
This is what I've tried so far and it didn't work:
`**from bio import SeqUtils `#read in FASTA file seqs = [] for seq_record in SeqIO.parse("some_frog_amps.fasta", "fasta"): seqs.append(seq_record.seq) #computing molecular weight SeqUtils.molecular_weight(Seq("some_frog_amps.fasta"))**`