Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert a sequence alignment to a list of positional differences from the first sequence to the second
ResourceFunction["AlignmentToPositionDifferences"][alignment] takes an alignment between two sequences and returns the positions and rules that allow the first sequence to be converted to the second. |
Reduce the result of a sequence alignment to only the positions that have been changed:
| In[1]:= |
| Out[1]= |
Process the result of a sequence alignment directly:
| In[2]:= |
| Out[2]= |
The resource function ReconstituteSequenceFromReferenceDifferences restores sequences from the positional differences produced by this sequence:
| In[3]:= | ![]() |
| Out[3]= |
Find the differences with the COVID-19 reference sequence for a reported variant:
| In[4]:= | ![]() |
| Out[4]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License