Function Repository Resource:

NuIDDecode

Source Notebook

Generate the oligonucleotide sequence corresponding to a given nucleotide universal identifier (nuID)

Contributed by: Jan Mangaldan

ResourceFunction["NuIDDecode"]["string"]

decodes the nucleotide universal identifier (nuID) contained in a string and returns the corresponding "DNA" BioSequence.

Details

The nucleotide universal IDentifier (nuID) is a lossless compression scheme that encodes a DNA oligonucleotide as a modified Base64 string.

Examples

Basic Examples (1) 

Generate a "DNA" BioSequence from a nuID:

In[1]:=
ResourceFunction["NuIDDecode"]["BnjPwCI"]
Out[1]=

Properties and Relations (2) 

The resource function NuIDEncode can be used to generate a nuID:

In[2]:=
ResourceFunction["NuIDDecode"]["9hX2C4CBEtO8zrMtOs"]
Out[2]=
In[3]:=
ResourceFunction["NuIDEncode"][%]
Out[3]=

NuIDDecode returns a Failure object if the given string cannot be interpreted as a nuID:

In[4]:=
ResourceFunction["NuIDDecode"]["9hX2C4CGEtO8zrMtOs"]
Out[4]=

Version History

  • 1.0.0 – 28 June 2021

Source Metadata

Related Resources

License Information