Wolfram Research

Function Repository Resource:

VitaminData

Source Notebook

Get information about vitamins and vitamers as well as nutritional information of foods

Contributed by: Claudio Lobo Chaib Filho

ResourceFunction["VitaminData"][arg]

gives data about the vitamin arg in entity form.

ResourceFunction["VitaminData"]["list"]

gives the requested list.

Details and Options

Get miscellaneous information about a vitamin, chemical and physical properties, visualization, relative composition of vitamins in foods, food nutritional information and many other vitamin and vitamers related properties with this function. The function has an extensive list of vitamins; some are new and some are questionable and/or old definitions, but were added to the function for didactic reasons and to make this function more complete.
In this function there are 50 vitamins/vitamers organized into 20 vitamer groups. The function can provide the chemical and physical data of each molecule, as well as its 2D and 3D visualization, information on its chemical bonds and provide the atom counts with their respective charges. There are also 27 relative vitamin content properties among the 15 relative groups available to provide values for a specific food. The function is available to work with all 1816 food types from the Wolfram knowledgebase. This function can also generate nutritional information in the form of food labels for each of the foods. Finally, as a special option, you can also create food rankings for many types of vitamins (for all the relative vitamin content available).
Use “OptionalsList” as the only argument in the function and get a complete list of available options and lists.
List types that, in addition to specific entities, can be used as arguments in the function:
"OptionalsList"
"EntitiesList"
"VitamersList"
"RelativeList"
"FoodList"
The options that can be used in the function and their modes of use:
"Show" vit, "Show" ->properties gives requested properties for the vitamin vit
"Food" arg, "Food" ->foodname gives the content of vitamin vit for foodname
"Food" ->arg provides all the vitamin content for foodname
"NutritionLabel" "NutritionLabel" ->arg shows the nutrition label of foodname
"Ranking" vit, "Ranking" ->arg2 gives the ranking of the top foods for the vitamin type vit
Use "EntitiesList" to get the complete alphabetical list of available vitamins. They are:
"5AdenylicAcid" "5Methyltetrahydrofolate" "Acetylcholine"
"AlphaCarotene" "AlphaTocopherol" "AnthranilicAcid"
"BetaCarotene" "BetaCryptoxanthin" "BetaTocopherol"
"Biocytin" "Choline" "DehydroascorbicAcid"
"DeltaTocopherol" "DPanthenol" "FlavinAdenineDinucleotide"
"FlavinMononucleotide" "FolicAcid" "FolinicAcid"
"GammaCarotene" "GammaTocopherol" "Hydroxocobalamin"
"Methylcobalamin" "Methylthioadenosine" "Niacin"
"NicotinamideRiboside" "Pyridoxal" "PyridoxalPhosphate"
"SAdenosylmethionine" "SMethylmethionine" "ThiaminDiphosphate"
"ThiaminPhosphate" "Trimethylglycine" "VitaminA"
"VitaminB1" "VitaminB12" "VitaminB2"
"VitaminB3" "VitaminB4" "VitaminB5"
"VitaminB6" "VitaminC" "VitaminD2"
"VitaminD3" "VitaminH" "VitaminH1"
"VitaminK1" "VitaminK3" "VitaminK5"
"VitaminP" "Xanthophyll"
Use “VitamersList” to get the complete alphabetical list of available vitamer groups. They are:
"VitamersA" "VitamersB1" "VitamersB2"
"VitamersB3" "VitamersB4" "VitamersB5"
"VitamersB6" "VitamersB8" "VitamersB9"
"VitamersB12" "VitamersC" "VitamersD"
"VitamersE" "VitamersH" "VitamersH1"
"VitamersK" "VitamersL" "VitamersP"
"VitamersU" "VitamersCholine"
The option “Show” selects which properties to return. Possible values are:
"OptionsList" gives the list of properties supported by "Show"
“Vitamers” shows the respective group of vitamers with all similar vitamin
"Model2D" shows the molecule in 2D representation
"Model3D" shows the molecule in 3D representation
"Bonds" shows a list of molecule bonds for the vitamin
"Atoms" shows the count of the atoms and the respective charges
"Properties" shows a complete list of chemical and physical properties
"Data" shows interactively all the chemical and physical properties at once
The table below shows relative vitamin content groups that are supported in some calls to VitaminData. Each can be associated with one or more properties, as each group can contain multiple vitamins.
"RelativeA" "RelativeB1" "RelativeB2"
"RelativeB3" "RelativeB5" "RelativeB6"
"RelativeB9" "RelativeB12" "RelativeC"
"RelativeD" "RelativeE" "RelativeH"
"RelativeK" "RelativeU" "RelativeCholine"
Use "RelativeList" to get the complete list of properties for each relative vitamin content group. A list of all relative properties is:
"RelativeAlphaCaroteneContent" "RelativeBetaCaroteneContent" "RelativeBetaCryptoxanthinContent"
"RelativeBetaineContent" "RelativeBetaTocopherolContent" "RelativeBiotinContent"
"RelativeCholineContent" "RelativeDeltaTocopherolContent" "RelativeFolicAcidContent"
"RelativeGammaTocopherolContent" "RelativeLuteinPlusZeaxanthinContent" "RelativeMethionineContent"
"RelativeNiacinContent" "RelativePantothenicAcidContent" "RelativeRetinolContent"
"RelativeRiboflavinContent" "RelativeThiaminContent" "RelativeTotalFolateContent"
"RelativeVitaminAContent" "RelativeVitaminB12Content" "RelativeVitaminB6Content"
"RelativeVitaminCContent" "RelativeVitaminD2Content" "RelativeVitaminD3Content"
"RelativeVitaminDContent" "RelativeVitaminEContent" "RelativeVitaminKContent"
Use "FoodList" to get the complete list of all food types.
When calling ResourceFunction["VitaminData"] on a relative content group argument, the option "Food" will return data for the selected food. If no relative content group is given, data on all vitamins is returned.
Calling ResourceFunction["VitaminData"] with the option "NutritionLabel" set to a food type argument returns the corresponding nutritional food label.
"Ranking10" and "Ranking200" are possible values for the "Ranking" option. They return the relative vitamin content of the top 10 or 200 foods with highest content for a specified relative vitamin content group. Use of this setting can be slow.
"Ranking10" top 10 foods for a relative vitamin content
"Ranking200" top 200 foods for a relative vitamin content

Examples

Basic Examples

With only a vitamin as argument the result is an entity of that vitamin:

In[1]:=
ResourceFunction["VitaminData"]["VitaminC"]
Out[1]=

Scope

Shows a list of all the arguments, in addition to the entities, that can be used in the function:

In[2]:=
ResourceFunction["VitaminData"]["OptionalsList"]
Out[2]=

Get an alphabetical list of all the available vitamins:

In[3]:=
ResourceFunction["VitaminData"]["EntitiesList"] // Short
Out[3]=

Get a list of all available vitamins and their groups of vitamers:

In[4]:=
ResourceFunction["VitaminData"]["VitamersList"] // Short
Out[4]=

Options

Show

Show a list of all properties of this option:

In[5]:=
ResourceFunction["VitaminData"]["VitaminD2", "Show" -> "OptionsList"]
Out[5]=

Find all similar vitamins in the group of vitamers to which a given vitamin belongs:

In[6]:=
ResourceFunction["VitaminData"]["BetaCarotene", "Show" -> "Vitamers"]
Out[6]=

Using "Show" and "Model2D" to view the 2D model of a vitamin:

In[7]:=
ResourceFunction["VitaminData"]["VitaminB12", "Show" -> "Model2D"]
Out[7]=

Using "Show" and "Model3D" to view the 3D model of a vitamin:

In[8]:=
ResourceFunction["VitaminData"]["VitaminB5", "Show" -> "Model3D"]
Out[8]=

Use "Show" and "Bonds" to provide a list of chemical bonds for a vitamin:

In[9]:=
ResourceFunction["VitaminData"]["VitaminB3", "Show" -> "Bonds"]
Out[9]=

Use "Show" and "Atoms" to provide the counting of atoms with their respective charges of a vitamin molecule:

In[10]:=
ResourceFunction["VitaminData"]["Hydroxocobalamin", "Show" -> "Atoms"]
Out[10]=

All chemical and physical properties of a vitamin can be shown in a list:

In[11]:=
ResourceFunction["VitaminData"]["VitaminC", "Show" -> "Properties"] // Short
Out[11]=

Display properties of some vitamins:

In[12]:=
ResourceFunction["VitaminData"]["VitaminH", "Show" -> "MolecularMass"]
Out[12]=
In[13]:=
ResourceFunction["VitaminData"]["VitaminK1", "Show" -> "NFPALabel"]
Out[13]=

View all properties simultaneously and interactively:

In[14]:=
ResourceFunction["VitaminData"]["VitaminC", "Show" -> "Data"]
Out[14]=

Foods

Show all available foods:

In[15]:=
ResourceFunction["VitaminData"]["FoodList"] // Short
Out[15]=

"RelativeList" returns a list of relative properties of all vitamins:

In[16]:=
ResourceFunction["VitaminData"]["RelativeList"]
Out[16]=

Get the values of relative properties pertaining to a given relative group and food:

In[17]:=
ResourceFunction["VitaminData"]["RelativeE", "Food" -> "Banana"]
Out[17]=

Find values of all relative properties for a specified food:

In[18]:=
ResourceFunction["VitaminData"]["Food" -> "Apple"]
Out[18]=

Food Nutritional Info

Use "NutritionLabel" to provide the nutritional information of a food in the form of a food label:

In[19]:=
ResourceFunction["VitaminData"]["NutritionLabel" -> "Shrimp"]
Out[19]=

Ranking of Foods

Use the "Ranking" option with setting "Ranking10", along with a given relative vitamin content, to provide and rank the top 10 foods. (Note that this option may take approximately 20 minutes for evaluation, as it queries all foods in the database):

In[20]:=
ResourceFunction["VitaminData"]["RelativeBetaCryptoxanthinContent", "Ranking" -> "Ranking10"]
Out[20]=

Resource History

Related Resources

License Information