Using the PubChem REST API is the most straightforward for new users because it utilizes the URL.
CAS registry numbers are ubiquitous chemical identifiers that have use in many areas of industry. It is important, therefore, to be able to connect other chemical identifiers to CAS RN, improving the visibility of chemicals on the internet.
1. Download data (containing CAS RN)
Domestic Substances List (Canada)
Non-Confidential TSCA Inventory (United States)
2. Search individually through PubChem REST API (leveraging R) and returning as text.
"naphthenic acids"
https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/1338-24-5/synonyms/txt
R code:
library(XML)
library(RCurl)
LIST<-{your vector of CAS RN}
getURL(paste0("http://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/",LIST,"/synonyms/txt"))
use xmlTreeParse() for each entry in the vector to transform it into xml for slightly easier handling.
3. Create list object in R of synonyms by dumping synonyms into list objects.
For each xml, get the value of each synonym node and save it as the i-th list entry.
OR
3b. Use REST API to make a call for identifiers
"naphthenic acids"
http://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/1338-24-5/property/InChI/TXT
3c. Append another column to the matrix which contains the identifier (InChI, SMILES, etc...)
USEFUL POST:
http://depth-first.com/articles/2007/05/21/simple-cas-number-lookup-with-pubchem/
Springer Publishing
Wednesday, 2 September 2015
Monday, 31 August 2015
Cucumber + blueberry
Cucumber and blueberry, when eaten together, produce a combination of taste which is overall positive.
Together, I wouldn't say they enhance each other directly, but they dull each other's stronger flavours. For instance, some of the distinctly cucumber notes are lessened at the same time the bitter tones of blueberry are lessened.
Noticeable is the buttery flavour of blueberries still present. Overall the total flavour is not strong, but smooth.
The texture is dominated by the crunch of the cucumber whereas the blueberry, almost creamy in the presence of cucumber, is barely noticeable from the point of texture.
When cucumber is eaten directly after blueberries, the flavour of the cucumber overpowers the blueberry flavour quickly but not immediately.
When blueberry is eaten after cucumber, the flavour of the blueberry dominated the cucumber flavour in much the same fashion as the cucumber did to the blueberry.
C + B = C + B + 0.5CB
Monday, 24 August 2015
Carrot + nectarine (white flesh)
The acidity of the nectarine, though low compared to other fruits, seems to "kill off" the flavour of the carrot.
Raw carrot comes with its own rooty tang which had a cousin in parsnip and maybe ginger. Yet, when combined with nectarine, the carrot almost seems to have no unique taste of its own and ask I can taste is nectarine with some tasteless crunch.
There's a huge difference in texture between a soft nectarine and a carrot stick. The carrot is hard, crunchy and dry while the nectarine is juicy, fleshy and soft.
Tuesday, 18 August 2015
Canteloupe + raw peanuts = slightly unpleasant
Cantaloupe, when eaten with raw peanuts, produces a distinct mixture of flavours which is on the neutral to slightly unpleasant side.
Peanuts are dry and crunchy with slight chew and canteloupe is wet and slightly firm. In terms of texture, the two do not mix very well.
Raw peanuts clash with cantaloupe aftertaste.
Cantaloupe clashes with raw peanut aftertaste, but to a lesser extent than the reverse.
For me, the collective aftertaste is generally slightly unpleasant.
Peanuts are dry and crunchy with slight chew and canteloupe is wet and slightly firm. In terms of texture, the two do not mix very well.
Raw peanuts clash with cantaloupe aftertaste.
Cantaloupe clashes with raw peanut aftertaste, but to a lesser extent than the reverse.
For me, the collective aftertaste is generally slightly unpleasant.
Monday, 17 August 2015
Subscribe to:
Posts (Atom)




