Browse Source

documentation syntax clarified

master
junikimm717 2 years ago
parent
commit
d657fd3686
  1. 18
      templates/admin.html

18
templates/admin.html

@ -39,22 +39,22 @@
import requests import requests
session = requests.session() session = requests.session()
baseurl = "chemicaldb.teidkim.me" baseurl = "chemicaldb.teidkim.me"
session.post(baseurl + "/admin/login", {"username": <username>, "password": <password>})
session.post(baseurl + "/admin/login", {"username": (username), "password": (password)})
fields = { fields = {
"chemical_db_id": <db id from another database>, "chemical_db_id": <db id from another database>,
"library": (library),
"library": (library, is a string),
# name, formula, and mass are required fields! # name, formula, and mass are required fields!
"name": (name of the chemical),
"formula": (molecular formula),
"mass": (monoisotopic mass, float),
"name": (name of the chemical, is a string),
"formula": (molecular formula, is a string),
"mass": (monoisotopic mass, is a float),
"pubchem_cid": <string>, "pubchem_cid": <string>,
"pubmed_refcount": <integer> "pubmed_refcount": <integer>
"standard_class": <string> "standard_class": <string>
"inchikey": <inchikey>,
"inchikey14": <inchikey14>,
"inchikey": <string>,
"inchikey14": <string>,
# final_mz and final_rt are required fields! # final_mz and final_rt are required fields!
"final_mz": (m/z ratio after experiment, float),
"final_rt": (retention time after experiment, float),
"final_mz": (m/z ratio after experiment, is a float),
"final_rt": (retention time after experiment, is a float),
"final_adduct": <string>, "final_adduct": <string>,
"final_adduct": <string>, "final_adduct": <string>,
"detected_adducts": <string>, "detected_adducts": <string>,

Loading…
Cancel
Save