Write a function that takes a list of arbitrary number


Problem

Write a function sum_of_pairs_score that takes a list of arbitrary number of aligned sequences aln as input and calculates the sum-of-pairs score of the alignment using the above scoring scheme.

a) Hint: You may use nested for loops to iterate over all pairs of sequences.
b) Hint: Don't calculate A vs. B and B vs. A twice!
c) for example match= 2 mismatch=-1 and gap(-)= -3 ACGCGT- AT-CGTA ACGC-TC

ss = (2, -1, -3)
def sum_of_pairs_score(aln):
#your code here

assert sum_of_pairs_score(['ACGCGT-', 'AT-CGTA', 'ACGC-TC'])

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a function that takes a list of arbitrary number
Reference No:- TGS03233645

Expected delivery within 24 Hours