Help for this page

Select Code to Download


  1. or download this
    for (my $i = 0; $i < $len; $i++) {
       $score += ((substr($ref_seq, $i, 1)) eq (substr($test_seq, $i, 1)))
    +;
    }
    return ($score / $len);
    
  2. or download this
    string1: "EKFCNSVVDLYSNLSKPFLDIVLYIFKLTSAIGAQGPA----SMMAYLVV"
    string2: "ERFCRQLSSMASKLI-------ISPFTLVYYTYQCFQSTGWPVSIFGYFI"