Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Align sequences known to be nearly identical
ResourceFunction["AlignNearlyIdenticalSequences"][seq1,seq2] create an alignment between two strings or biomolecular sequences seq1 and seq2. |
Find an alignment for nearly identical sequences:
In[1]:= |
Out[1]= |
This function is suitable for aligning biomolecular sequences:
In[2]:= |
Out[2]= |
This function can be used with the AlignmentToPositionDifferences resource function to produce manageable differences between quite large but nearly identical sequences:
In[3]:= |
Out[3]= |
Use this alignment to compare a variant of the SARS-CoV-2 coronavirus with the reference sequence:
In[4]:= |
Out[4]= |
In[5]:= |
Out[5]= |
When we cannot assume these sequences are nearly identical, we have to work longer to assure an optimal alignment:
In[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License