Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Reconstitute a sequence given positional differences with a reference sequence
ResourceFunction["ReconstituteSequenceFromReferenceDifferences"][diff,ref] produces a sequence by applying the relevant diff substitutions to the reference sequence ref. |
Reconstitute a simple sequence from a positional difference with a reference sequence:
| In[1]:= |
| Out[1]= |
Biomolecular sequences can also serve as the source for a reconstituted sequence:
| In[2]:= |
| Out[2]= |
This function will undo the effect of SequenceAlignment and the resource function AlignmentToPositionDifferences:
| In[3]:= | ![]() |
| Out[3]= |
| In[4]:= |
| Out[4]= |
Use the SARS-CoV-2 reference sequence to reconstitute another SARS-CoV-2 sequence from positional differences obtained before:
| In[5]:= | ![]() |
| Out[5]= |
| In[6]:= |
| Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License