Function Repository Resource:

CharacterProteinPlot3D

Source Notebook

Visualize English letters with 3D protein structures

Contributed by: Soutick Saha

ResourceFunction["CharacterProteinPlot3D"][alphabet]

can be used to visualize English letters with protein structures.

Details and Options

CharacterProteinPlot3D currently supports capital English letters A-Z. Lowercase letters a-z are capitalized.
The plots for the letters are generated using BiomoleculePlot3D of the Wolfram/ProteinVisualization paclet and the PDB IDs of the proteins is taken from Howarth, M. Say it with proteins: an alphabet of crystal structures. Nat Struct Mol Biol 22, 349 (2015).
ResourceFunction["CharacterProteinPlot3D"] supports the same options as BiomoleculePlot3D.

Examples

Basic Examples (1) 

Visualize letter A with protein structure:

In[1]:=
ResourceFunction["CharacterProteinPlot3D"]["A"]
Out[1]=

Scope (1) 

Color letter A by secondary structure of the protein using "BackboneColorRules" Option of BiomoleculePlot3D:

In[2]:=
ResourceFunction["CharacterProteinPlot3D"]["A", "BackboneColorRules" -> {"SecondaryStructure", Automatic}]
Out[2]=

Neat Examples (1) 

Visualize all letters of English alphabet (Disclaimer: This example takes a long time to evaluate):

In[3]:=
AbsoluteTiming[
 proteinAlphabetsRaster = Rasterize@ResourceFunction["CharacterProteinPlot3D"][#] & /@ Alphabet[];]
Out[3]=
In[4]:=
alphabetPartition = Partition[proteinAlphabetsRaster, UpTo@6];
In[5]:=
GraphicsColumn[
 Table[GraphicsRow[
   Graphics[#, ImageSize -> {Automatic, 500}] & /@ alphabetPartition[[i]], ImageSize -> {Automatic, 200}], {i, Length@alphabetPartition}]]
Out[5]=

Publisher

WolframChemistry

Requirements

Wolfram Language 13.0 (December 2021) or above

Version History

  • 1.0.0 – 10 June 2024

Source Metadata

Related Resources

License Information