YEASTRACT Web Services

Resources

Table 1: Resources

Resource

URI(s)

Description

Protein

/protein/{protein}

Represents a protein.

Locus

/locus/{locus}?potential-id={potential-id}&tf={tf}

Represents a locus (ORF/gene).
Along with its name, a locus can be optionally identified by a potential id and a transcription factor.

Regulations

/regulations/{documented, potential, both}?tf={tf1}&tf={tf2}&…&gene={gene1}&gene={gene2}&…

  • Documented, potential or both types of regulations involving each of the transcription factors and all of the supplied genes.

  • If no transcription factors or genes are provided uses all the transcription factors or genes in the database.

  • This URI template corresponds to the Search TFs / Search Genes operations in the YEASTRACT web interface.

Regulations

/regulations/{documented, potential, both}/{each, every}?tf={tf1}&tf={tf2}&…&gene={gene1}&gene={gene2}&…evidence-code={ec1}&evidence-code={ec2}&…

  • Documented, potential or both types of regulations involving each/every transcription factor and all of the supplied genes using the provided evidence codes.

  • If no transcription factors or genes are provided uses all the transcription factors or genes in the database.

  • If no evidence codes are provided uses all the evidence codes: direct, indirect and undefined.

  • This URI template corresponds to the Search Regulatory Associations operation in the YEASTRACT web interface.

Group By TF

/group-by-tf?gene={gene1}&gene={gene2}…&tf={tf1}&tf={tf2}…&evidence-code={evidence-code1}&evidence-code={evidence-code2}…&regulation-type={regulation-type} &relative-to={relative-to}

Represents a grouping of genes by transcription factors that regulate them using the regulation type and evidence codes. The obtained groups are ordered by the percentage of genes regulated by the transcription factor, relative to the total number of genes in the list, or the total number of genes regulated by the same transcription factor.

References

/references?tf={tf}&[orf|tfbs]={[orf|tfbs]}

Represents a list of references for a regulation between a transcription factor and an ORF/gene.

Notes


/protein/{protein}&format={format}

Description

Retrieves the information about a protein.

Input

A protein name.

Output

Returns the following data for the given protein:

  • protein name
  • description
  • aminoacid sequence
  • transcription factor binding site(s)
  • documented regulations
  • potential regulations
Example

Sample requests using curl:

Methods

GET

resource parameters
parameter value description

protein

string

A protein (transcription factor) name.

format

string (optional)

One of:

  • json
  • n3
  • xml

The correspondence between each output format specifier and the MIME types is as follows:

  • json: application/json
  • n3: text/n3
  • xml: application/rdf+xml

The response output format.

If not provided defaults to json.

available response representations:

  • application/json
  • text/n3
  • application/rdf+xml


/locus/{gene}?potential-id={potential-id}&tf={tf}&format={format}

Description

Retrieves the information about an ORF/gene.

Input

An ORF/gene name.

Output

Returns the available information for the locus.

Example

Sample request using curl:

Methods

GET

request parameters

These parameters are optional, and if provided, and they must be inserted after the ORF/gene name, separated by a semicolon ';'.

parameter value description

potential-id

string (optional)

A number that identifies the promoter region involved in a potential regulation. The potential ID can obtained from the potential regulations returned by the regulations resource.

tf

string (optional)

The TF (transcription factor) responsible for a potential regulation. The TF name can be obtained from the potential regulations returned by the regulations resource.

format

string (optional)

One of:

  • json
  • n3
  • xml

The correspondence between each output format specifier and the MIME types is as follows:

  • json: application/json
  • n3: text/n3
  • xml: application/rdf+xml

The response output format.

If not provided defaults to json.

available response representations:

  • application/json
  • text/n3
  • application/rdf+xml


/regulations/{search-type}?tf={tf1}&tf={tf2}...&gene={gene1}&gene={gene2}...&format={format}

Description

Searches for regulations between the transcription factors (TFs) and genes.

For further documentation, please refer to YEASTRACT's web interface help on the following items:


Input

One or more TFs and/or one or more genes and the type of regulation to search for.

Output

Returns a list of regulations between the transcription factors and the given genes, according to the search type.

Example

Sample request using curl:

Methods

GET

request parameters
parameter value description

search-type

string (optional)

One of:

  • documented
  • potential
  • both

Searches documented, potential or both types of regulations.

If not provided defaults to documented.

tf

string

A transcription factor. Repeat the parameter to provide multiple transcription factors.

gene

string

A gene name. Repeat the parameter to provide multiple gene names.

format

string (optional)

One of:

  • json
  • n3
  • xml

The correspondence between each output format specifier and the MIME types is as follows:

  • json: application/json
  • n3: text/n3
  • xml: application/rdf+xml

The response output format.

If not provided defaults to json.

available response representations:

  • application/json
  • text/n3
  • application/rdf+xml


/regulations/{search-type}/{between}?tf={tf1}&tf={tf2}...&gene={gene1}&gene={gene2}...&evidence-code={evidence-code1}&evidence-code={evidence-code2}...&format={format}

Description

Search the database for documented and potential regulatory associations between input TFs and genes.

Please refer to YEASTRACT's web interface Help on Search Regulatory Associations for further documentation.

Input

Optional lists of genes and/or transcription factors, a search mode that indicates how to compare the given TFs and genes, and for documented regulations, the evidence codes to look for.

There are 3 search modes depending on the path parameters provided as transcription factors and/or genes:

  • If both TFs and genes are provided it searches for associations between the given lists.
  • If no TFs are provided it searches for associations between all the TFs in the database and the given list of genes.
  • If no genes are provided it searches for associations between the TFs provided and all the genes in the database.

Output

Returns a table of the documented and potential regulations between each or every transcription factor in the input and the genes.

Example

Sample request using curl:

Methods

GET

request parameters
parameter value description

search-type

string (optional)

One of:

  • documented
  • potential
  • both

Searches documented, potential or both types of regulations.

If not provided defaults to documented.

between

string (optional)

One of:

  • each
  • every

Searches for associations between each/every transcription factor and all the genes.

tf

string

A transcription factor. Repeat the parameter to provide multiple transcription factors.

gene

string

A gene. Repeat the parameter to provide multiple genes.

evidence-code

string (optional)

One or more of:

  • direct
  • indirect
  • undefined
  • all

Specifies the type of evidence codes to check for. The value all means all three evidence codes.

If no evidence codes are provided it defaults to all.

format

string (optional)

One of:

  • json
  • n3
  • xml

The correspondence between each output format specifier and the MIME types is as follows:

  • json: application/json
  • n3: text/n3
  • xml: application/rdf+xml

The response output format.

If not provided defaults to json.

available response representations:

  • application/json
  • text/n3
  • application/rdf+xml


/groupbytf?gene={gene1}&gene={gene2}...&tf={tf1}&tf={tf2}...&evidence-code={evidence-code1}&evidence-code={evidence-code2}...&regulation-type={regulation-type}&relative-to={relative-to}&format={format}

Description

Groups a given list of genes (e.g., a set of co-activated genes from a microarray experiment) according to the TFs which are their documented or potential regulators.

Please refer to YEASTRACT's web interface Help on Group Genes by TF for further documentation.

Input

Takes as input a list of genes and, optionally, a list of transcription factors.

Options

The TFs considered in this query can be either those in the input list, or all the TFs in the YEASTRACT database (by not providing any TFs). Either documented or potential regulations can be considered (by providing the argument regulation-type with values documented or potential, respectively). Furthermore, for each established regulon, the percentage value representing the proportion of genes regulated by each TF can be calculated relative to:

  1. The total number of genes in the input list; this may identify the TFs involved in the regulation of the given gene list.
  2. The number of genes, in the whole yeast genome, documented as being regulated by the same TF; this may identify the TF networks predominantly involved in the regulation of the referred gene list.

Output

Returns a list containing the input genes, grouped by TF and ordered by the percentage of genes regulated by the respective TF.

Example

Sample request using curl:

Methods

GET

request parameters
parameter value description

gene

string

A gene. Repeat the parameter to provide multiple genes.

tf

string

A transcription factor. Repeat the parameter to provide multiple transcription factors.

regulation-type

string (optional)

One of:

  • documented
  • potential

Check for documented or potential regulatory associations.

If not provided defaults to documented.

evidence-code

string (optional)

One or more of:

  • direct
  • indirect
  • undefined
  • all
  • direct-indirect

Specifies the type of evidence codes of the regulatory associations to check for.

documented regulations

For documented regulations, direct, indirect and undefined mean to check regulations with accordingly qualified evidence codes.

If the provided value is all, the three previously mentioned evidence codes are used.

If supplied value is direct-indirect means both direct and indirect evidence codes simultaneously.

If no evidence codes are provided, it defaults to all.

potential regulations

For potential regulations no evidence codes should be supplied.

relative-to

string (optional)

One of:

  • total
  • same-tf

Calculate % of genes regulated by TF, relative to:

total

The total number of genes in the list.

same-tf

The number of genes regulated by the same TF.

If not provided defaults to total.

format

string (optional)

One of:

  • json
  • n3
  • xml

The correspondence between each output format specifier and the MIME types is as follows:

  • json: application/json
  • n3: text/n3
  • xml: application/rdf+xml

The response output format.

If not provided defaults to json.

available response representations:

  • application/json
  • text/n3
  • application/rdf+xml


/references?tf={tf}&[orf|tfbs]={[orf|tfbs]}&format={format}

Description

Returns bibliographic references about a regulation between the transcription factor and ORF/gene or transcription factor binding site.

Input

A TF name

An ORF/Gene name or TFBS

Output

A list of references for the documented or potential regulation between the transcription factor and the given gene or TFBS.

Example

Sample request using curl:

Methods

GET

request parameters
parameter value description

tf

string

A transcription factor.

orf

string

An ORF/gene.

tfbs

string

A transcription factor binding site.

format

string (optional)

One of:

  • json
  • n3
  • xml

The correspondence between each output format specifier and the MIME types is as follows:

  • json: application/json
  • n3: text/n3
  • xml: application/rdf+xml

The response output format.

If not provided defaults to json.

available response representations:

  • application/json
  • text/n3
  • application/rdf+xml


Status Codes

All resources return the following standard HTTP status codes:

error code description

200 OK

Sucess status code

400 Bad request

The parameters passed to the service did not match as expected. The messages should tell the user what was missing or incorrect.

401 Unauthorized

The user has no authorization to acess the resource. Use for example when a service is rate limited and the user exceeded his quota.