Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (80 sloc) 2.94 KB

DBAASP API Ruby Library

Examples

1.lookup

Parameter Description
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
lookupRequest = LookupRequest.new
lookupRequest.lookupType = LookupType::KINGDOM;
lookupRequest.format = FormatType::XML;
p lookupRequest.request()

2.peptide_card

Parameter Description
peptide_id peptide card id
format xml,json,fasta
peptideCardRequest = PeptideCardRequest.new
peptideCardRequest.peptide_id = 1
peptideCardRequest.format = FormatType::XML;
p (peptideCardRequest.request())

3.search

Parameter Description
complexity Type of Peptide. Available values : monomer (default), dimer, multi_peptide
name Name of peptide
sequence Sequence of peptide
sequence_option Available types : part, full
sequence_length Length of sequence
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
nonstandard_experimental_conditions
hemolytic_and_cytotoxic_activities
format xml,json,fasta
searchRequest = SearchRequest.new
searchRequest.name = "a"
searchRequest.format = FormatType::JSON;
p (searchRequest.request())

4.ranking_search

Parameter Description
complexity Type of Peptide. Available values : mononer(default)
sequence_length Length of sequence
n_terminus_id Identifier of N Terminus
c_terminus_id Identifier of C Terminus
bond_id Identifier of Bond
unusual_amino_acid_id Identifier of modification type
synthesis_type Identifier of Synthesys Type
kingdom_id Identifier of Kingdom
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
rankingSearchRequest = RankingSearchRequest.new
rankingSearchRequest.target_species_id = 3232
rankingSearchRequest.activity_measure_id = 72
rankingSearchRequest.activity = 100;
rankingSearchRequest.operation = MathOperationTypes::GREATER;
rankingSearchRequest.format = FormatType::FASTA;
p (rankingSearchRequest.request())