47bb44caa5 | ||
---|---|---|
lib | ||
README.md | ||
contributors.txt |
README.md
ClassyFire is a resource that allows you to automatically classify any chemical compound based on its structure. This is the repository for the ClassyFire API allows you to send requests to and pull information from the ClassyFire web server.
What is this repository for?
- Quick summary
- Version
- Learn Markdown
How do I get set up?
- Summary of set up
- Configuration
- Dependencies
- Database configuration
- How to run tests
- Deployment instructions
Contribution guidelines
- Writing tests
- Code review
- Other guidelines
Endpoints
##1. Entity##
Chemical compounds are represented by the Entity model, through which one can access the compound's structure-based classification.
###GET###
/entities/{entity_inchikey}
A chemical compound's classification can be retrieved in the JSON or XML format. The compound's information is accessed via the InChIkey as show in the following examples. In this example, the entity has the InChIKey=LABTWGUMFABVFG-ONEGZZNKSA-N.
curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://classyfire.wishartlab.com/entities/LABTWGUMFABVFG-ONEGZZNKSA-N.json
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET http://classyfire.wishartlab.com/entities/LABTWGUMFABVFG-ONEGZZNKSA-N.xml
##2. Query##
The Query model represents a list of chemical structures to be classified. Its attributes are the query label and the query input. *The query label is an identifier
- The query input contains a list of structures represented in the Daylight SMILES or the InChI format. Each line contains a structure representation preceded by a compound identifier(optionally), if available.
###POST### A query can be submitted using the POST method as demonstrated in the following example.
###GET### The classification results can be retrieved via a GET method.
Directory Structure
- lib
Who do I talk to?
- Repo owner or admin
- Other community or team contact