We provide support for command line data retrieval as CSV, TSV, and SDF files for any search type that can be performed via a web browser. Options are available to control display of column headers, types of delimiters for CSV files (comma or semicolon), and double quoting of values.
Two command line scripts are available to search and retrieve LMSD data: LMSDRecord.php and LMSDSearch.php
The LMSDRecord.php script supports retrieval of detailed information for a specific lipid with a valid LMID as CSV/TSV or SD file. The LMSDSearch.php is provided to search LMSD using a variety of parameters specified in a user query and retrieve the data for those LMSD records which match the query. The usage details and examples for these two scripts are provided in the following two sections.
All parameters are case sensitive.
Note: Updated URLs October 2021
Please note that the following examples are meant to be typed on one line.
wget -O "LMFA08040013.mol" "https://www.lipidmaps.org/databases/lmsd/LMFA08040013?format=mdlmol"
wget -O "LMFA08040013.sdf" "https://www.lipidmaps.org/databases/lmsd/LMFA08040013?format=sdf"
wget -O "LMFA08040013.csv" "https://www.lipidmaps.org/databases/lmsd/LMFA08040013?format=csv"
wget -O "LMFA08040013.tsv" "https://www.lipidmaps.org/databases/lmsd/LMFA08040013?format=tsv"
For command-line data retrieveal, the Mode parameter must be set to one of:
Mode
Mode=ProcessStrSearch
Mode=ProcessTextSearch
Mode=ProcessTextOntologySearch
When used with no other parameters, the following will all return the entire LMSD:
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessStrSearch&OutputMode=File"
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessStrSearch&OutputMode=File&OutputType=SDF"
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessStrSearch&OutputMode=File&OutputType=CSV&OutputColumnHeader=Yes"
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputMode=File"
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextOntologySearch&OutputMode=File"
mode=ProcessStrSearch
(Structure-based search)
Please note that the following examples are meant to be typed on one line and that results for these examples may change as more records are added to the database, or if any changes are made to the existing records.
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessStrSearch&OutputMode=File&LMID=LMSL02000001"
wget -O "Test.tsv" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessStrSearch&OutputMode=File&OutputType=TSV&SearchType=SubStructure&SMILESString=c1ccccc1"
Web interfaces for Structure-based searches can be found at: http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=SetupStrSearch
mode=ProcessTextOntologySearch
(Text-based or Text/ontology -based searches)
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputMode=File&CoreClass=1"
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputMode=File&CoreClass=1&MainClass=101&SubClass=10101"
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextOntologySearch&OutputMode=File&CoreClass=1&MainClass=101&SubClass=10101"
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputMode=File&SubClass=10101"
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputMode=File&CoreClass=2&MainClass=202&SubClass=20201&ExactMass=594&ExactMassOffSet=10"
wget -O "Test.tsv" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputMode=File&OutputType=TSV&OutputQuote=Yes&Name=acetic"
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextSearch&OutputMode=File&CoreClass=1&MainClass=101&SubClass=10101&ExactMass=45&ExactMassOffSet=1&Name=fat"
Up to four set of triplets - OntologyParamName, OntologyParamModifier, and OntologyParamValue - to control the ontology search. The name of the parameters are generated by appended a integer value from 1 to 4 to each set of the four set of names triplets. For example:
wget -O "Test" "http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=ProcessTextOntologySearch&OutputMode=File&OntologyParamName1=carbons&OntologyParamModifier1=eq&OntologyParamValue1=20&OntologyParamName2=doublebonds&OntologyParamModifier2=eq&OntologyParamValue2=1"
Web interfaces for Text-based and Text/ontology -based searches can be found at: http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=SetupTextSearch http://www.lipidmaps.org/data/structure/LMSDSearch.php?Mode=SetupTextOntologySearch
LIPID MAPS uses cookies to keep the site working, to remember your choices, and — only if you allow it — to understand how the site is used so we can improve it. Choose what you are happy with below. You can change your mind at any time from Manage Cookies in the footer.
A free account takes a minute and lets you:
Citing LIPID MAPS in your publications shows the impact of the resource and helps keep it free for everyone. The citation page lists the papers to cite for each database and tool.