This set of APIs was made to let our users reach the information they wanted in a new pragmatical way.
By browsing specific URLs the user will be able to filter and extract informations in two formats Json and CSV. Json will be the standard format while CSV can be accessed by adding
&format=csvat the end of the requests.
www.genesilico.pl/modomics/api/
www.genesilico.pl/modomics/api/ is the page you are reading now.
All the other section follow this format: api/name_modomics_section
At this time only the api for sequences is available, but soon more API will be developed
www.genesilico.pl/modomics/api/modification
www.genesilico.pl/modomics/api/modification?id=2 renders the modification data of one single selected modification by its ID.
This section can be filtered by adding the following GET parameters after the URL after the "?" symbol
parameter | description | example |
---|---|---|
&format= | Select the output format [json,csv] | www.genesilico.pl/modomics/api/modification?id=2&format=csv |
www.genesilico.pl/modomics/api/modifications
www.genesilico.pl/modomics/api/modifications renders the modification data of all the RNA modifications found in MODOMICS.
This section can be filtered by adding the following GET parameters after the URL after the "?" symbol
parameter | description | example |
---|---|---|
&reference_moiety= | filters by the original nuclebase [A,C,G,U] | www.genesilico.pl/modomics/api/modifications?reference_moiety=A |
&chemical_type= | filters by a chemical type of modification | www.genesilico.pl/modomics/api/modifications?chemical_type=heavy+atom |
&format= | Select the output format [json,csv] | www.genesilico.pl/modomics/api/modifications?format=csv |
www.genesilico.pl/modomics/api/sequence?id=
www.genesilico.pl/modomics/api/sequence?id=2 renders the sequence data of one single RNAsequence selected by its ID.
This section can be filtered by adding the following GET parameters after the URL after the "?" symbol
parameter | description | example |
---|---|---|
&format= | Select the output format [json,csv] | www.genesilico.pl/modomics/api/sequence?id=2&format=csv |
www.genesilico.pl/modomics/api/sequences/
www.genesilico.pl/modomics/api/sequences renders the sequences data of all the RNA sequences found in modomics.
This section can be filtered by adding the following GET parameters after the URL after the "?" symbol
parameter | description | example |
---|---|---|
&RNAtype= | filters by a RNA type [tRNA,rRNA,snRNA,snoRNA] | www.genesilico.pl/modomics/api/sequences?RNAtype=tRNA |
&RNA_subtype= | filters by a RNA subtype [...] | www.genesilico.pl/modomics/api/sequences?RNAsubtype=LSU |
&organism= | filter by an organism [...] | www.genesilico.pl/modomics/api/sequences?organism=Homo+sapiens |
&format= | Select the output format [json,csv] | www.genesilico.pl/modomics/api/sequences?format=csv |
The value can be combined together with the symbol "&"
I want to retrive all the "tRNA" sequences of "Homo sapiens" in "CSV" format.
www.genesilico.pl/modomics/api/sequences?RNAtype=tRNA&organism=Homo+sapiens&format=csv
I want to retrive those "rRNA" whose subtype is "LSU" and organism is "Clostridium acetobutylicum" from in "JSON" format
www.genesilico.pl/modomics/api/sequences?RNAtype=rRNA&RNAsubtype=SSU&organism=Clostridium+acetobutylicum&format=json