Help for access resources programmatically

This document describes how this web site can be accessed with programs. All resources (individual entries as well as sets of entries retrieved by queries) are accessible using simple URLs

Download helper libraries from link https://drive.google.com/open?id=0B7YGwJl4F2_Eb2hBNWhnYS1UZlU

There are 4 types query :

1.lookup

description

returns lookup records (identifier,name)  by type

parameters

lookup_type

available types: target_object, target_group, n_terminus, c_terminus, synthesis_type, complexity, kingdom, intra_chain_bond, unusual_amino_acid, unit, activity_measure, author, journal, target_species, mammalian_cell, medium

format

xml,json,tab

examples

get

https://dbaasp.org/api/v1?query=lookup&lookup_type=target_group&format=xml

curl

curl -v -L -d "query=lookup&lookup_type=target_group&format=json" https://dbaasp.org/api/v1

Java

LookupRequest lookupRequest = new LookupRequest(); lookupRequest.setLookupType(LookupType.C_TERMINUS); lookupRequest.setFormatType(FormatType.XML);

String response = lookupRequest.request() ;

2.peptide_card

description

returns  peptide info by identifier.

parameters

peptide_id

peptide card id

format

xml,json,fasta

examples

get

 https://dbaasp.org/api/v1?query=peptide_card&peptide_id=107&format=json

curl

 curl -v -L -d "query=peptide_card&peptide_id=107&format=json" https://dbaasp.org/api/v1

Java

PeptideCardRequest peptideCardRequest = new PeptideCardRequest();

peptideCardRequest.setPeptideId(8);

peptideCardRequest.setFormatType(FormatType.XML);

String response = peptideCardRequest.request() ;

3.search

description

returns search result by parameters

parameters

complexity

Type of Peptide. Available values : monomer (default), dimer, multi_peptide

name

Name of peptide

sequence_option

Available types : part, full

sequence_length

Length of sequence

sequence

Sequence of peptide

target_group_id

Identifier of target group

target_object_id

Identifier of target object

n_terminus_id

Identifier of N Terminus

c_terminus_id

Identifier of C Terminus

synthesis_type

Identifier of Synthesys Type

kingdom_id

Identifier of Kingdom

bond_id

Identifier of Bond

unusual_amino_acid_id

Identifier of modification type

author_id

Identifier of Author

journal_id

Identifier of Journal

article_year

Year of publication of Article

article_title

Title of Article

target_species_id

Identifier of target species

format

xml, json, fasta

examples

get

https://dbaasp.org/api/v1?query=search&target_group_id=790&synthesis_type=36&format=xml

curl

curl -v -L -d "query=search&target_group_id=790&synthesis_type=36&format=xml" https://dbaasp.org/api/v1

Java

SearchRequest searchRequest = new SearchRequest();

searchRequest.setSynthesisType(36);

searchRequest.setTargetGroupId(790);

searchRequest.setFormatType(FormatType.XML);

String response = searchRequest.request();

4. ranking_search

description

returns records via activity against particular specie

parameters

complexity

Type of Peptide. Available values : mononer(default)

target_species_id

Identifier of target species

activity_measure_id

Identifier of activity measure

medium_id

Identifier of Medium

cfu

CFU

operation

compare operation, available operation : >, < , >= , <= , =

format

xml,json,fasta

examples

get

https://dbaasp.org/api/v1?query=ranking_search&target_species_id=3232&activity_measure_id=72&operation=<=&activity=0.5&format=json

curl

curl -v -L -d "query=ranking_search&target_species_id=3232&activity_measure_id=72&operation=<=&activity=0.5&format=json" https://dbaasp.org/api/v1

Java

RankingSearchRequest rankingSearchRequest = new RankingSearchRequest(); rankingSearchRequest.setTargetSpeciesId(3232); rankingSearchRequest.setActivityMeasureId(72); rankingSearchRequest.setActivity(100f); rankingSearchRequest.setFormatType(FormatType.XML);

String response = rankingSearchRequest.request();