README formatting and typo.

This commit is contained in:
David Arndt 2019-03-27 19:51:05 -06:00
parent e17c3aad33
commit 0afcbba267
1 changed files with 77 additions and 85 deletions

162
README.md
View File

@ -1,85 +1,77 @@
[**ClassyFire**](http://classyfire.wishartlab.com) 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. [**ClassyFire**](http://classyfire.wishartlab.com) is a resource that allows you to automatically classify any chemical compound based on its structure. This is the repository for the ClassyFire API, which allows you to send requests to and pull information from the ClassyFire web server.
# **Endpoints** # # **Endpoints** #
> ##1. Entity## ##1. Entity##
>
> >Chemical compounds are represented by the Entity model, through which one can access the compound's structure-based classification. Chemical compounds are represented by the Entity model, through which one can access the compound's structure-based classification.
> >
> >###GET### ###GET###
> >
> >**/entities/{entityInchikey}** **/entities/{entityInchikey}**
> >
> >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. 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.
> > >
> > >ClassyFireAPI.get_entity_classification("BDAGIHXWWSANSR-UHFFFAOYSA-N","json") ClassyFireAPI.get_entity_classification("BDAGIHXWWSANSR-UHFFFAOYSA-N","json")
> >
> > Where: Where:
> >
> > >The entity's InChIKey is "BDAGIHXWWSANSR-UHFFFAOYSA-N", * The entity's InChIKey is "BDAGIHXWWSANSR-UHFFFAOYSA-N",
> > > * The output format is "json" (JSON).
> > >The output format is "json" (JSON).
##2. Sequence##
> ##2. Sequence##
> Sequences are represented by the Sequence model, through which one can access the compound's structure-based classification.
> >Sequences are represented by the Sequence model, through which one can access the compound's structure-based classification.
> > ###GET###
> >###GET###
> > **/sequence/{fingerprint}**
> >**/sequence/{fingerprint}**
> > A (FASTA) sequence's classification can be retrieved in the JSON. In this example, the sequence has the fingerprint = "8bf70c23ac100cd2c3955081d8613325"
> >A (FASTA) sequence's classification can be retrieved in the JSON. In this example, the sequence has the fingerprint = "8bf70c23ac100cd2c3955081d8613325"
> > > ClassyFireAPI.get_sequence_classification("8bf70c23ac100cd2c3955081d8613325","json")
> > >ClassyFireAPI.get_sequence_classification("8bf70c23ac100cd2c3955081d8613325","json")
> > Where:
> > Where:
> > * The sequence's fingerprint is "8bf70c23ac100cd2c3955081d8613325",
> > >The sequence's fingerprint is "8bf70c23ac100cd2c3955081d8613325", * The fingerprint is generate by Digest::MD5 from the peptide sequence "APDVQDCPECTLQENPFFSQPGAPILQCMGCCFSRAYPTPLRSKKTMLVQKNVTSESTCCVAKSYNRVTVMGGFKVENHTACHCSTCYYHKS"
> > > > The fingerprint is generate by Digest::MD5 from the peptide sequence "APDVQDCPECTLQENPFFSQPGAPILQCMGCCFSRAYPTPLRSKKTMLVQKNVTSESTCCVAKSYNRVTVMGGFKVENHTACHCSTCYYHKS" * The output format is "json" (JSON).
> > >
> > >The output format is "json" (JSON).
##3. Query##
> ##3. Query## The Query model represents the chemical structure to be classified. Its attributes are the query label and the query input.
> The query label is an identifier
> >The Query model represents the chemical structure to be classified. Its attributes are the query label and the query input.
> > >The query label is an identifier The query input contains the compound's identifier (optional) and its structural representation, separated by a tab. The chemical structure is represented either in the [Daylight SMILES](http://www.daylight.com/dayhtml/doc/theory/theory.smiles.html) format, the [InChI](http://www.iupac.org/home/publications/e-resources/inchi.html) format. Moreover, the compound can be represented with its [IUPAC name](http://www.chem.qmul.ac.uk/iupac/).
> > > The input can also be of type [FASTA](https://en.wikipedia.org/wiki/FASTA_format), which contains peptide or nucleotide sequences.
> > >The query input contains the compound's identifier (optional) and its structural representation, separated by a tab. The chemical structure is represented either in the [Daylight SMILES](http://www.daylight.com/dayhtml/doc/theory/theory.smiles.html) format, the [InChI](http://www.iupac.org/home/publications/e-resources/inchi.html) format. Moreover, the compound can be represented with its [IUPAC name](http://www.chem.qmul.ac.uk/iupac/).
> > >The input can also be of type [FASTA](https://en.wikipedia.org/wiki/FASTA_format), which contains peptide or nucleotide sequences. ###POST###
> > A query can be submitted using the POST method as demonstrated in the following example.
> >###POST###
> >A query can be submitted using the POST method as demonstrated in the following example. ClassyFireAPI.submit_query("curl_test","MOL1\\tCCCOCC\\nMOL2\\tCOCC=CCCC","STRUCTURE")
> > >ClassyFireAPI.submit_query("curl_test","MOL1\\tCCCOCC\\nMOL2\\tCOCC=CCCC","STRUCTURE")
> >where the parameters are: where the parameters are:
> >
> > >The query label: curl_test, * The query label: curl_test,
> > > * The entity identifiers: MOL1,MOL2
> > >The entity identifiers: MOL1,MOL2 * The entity's structure represented in the SMILES format: CCCOCC and COCC=CCCC.
> > * The query is of type 'STRUCTURE'
> > >The entity's structure represented in the SMILES format: CCCOCC and COCC=CCCC.
> > ###GET###
> > >The query is of type 'STRUCTURE'
**/queries/{queryId}**
> >###GET###
> > The classification results can be retrieved via a GET method in the JSON or XML format.
> >**/queries/{queryId}**
> > ClassyFireAPI.get_query(443431,"json")
> >The classification results can be retrieved via a GET method in the JSON or XML format.
> > > where:
> > >ClassyFireAPI.get_query(443431,"json")
> > * The query id is 443431,
> >where: * The output format is "json" (JSON)
> > >The query id is 443431,
> > >The output format is "json" (JSON)
# **Help and Feedback** #
# **Directory Structure** # Feel free to send us any questions of feedback [here](http://feedback.wishartlab.com/?site=classyfire).
* lib
# **Who do I talk to?** #
* Yannick Djoumbou Feunang: djoumbou@ualberta.ca
* Other community or team contact