Check the newest release v13

HOCOMOCO API (experimental; not stable)

HOCOMOCO allows for JSON APIs requests. Basically it's enough to add .json extension to an URL.


Get motif details

To get information about a motif MotifID, send a request https://hocomoco12.autosome.org/motif/{MotifID}.json

If you need to get PWM / PCM use https://hocomoco12.autosome.org/motif/{MotifID}/pwm.json and https://hocomoco12.autosome.org/motif/{MotifID}/pcm.json URLs.

https://hocomoco12.autosome.org/motif/{MotifID}/thresholds.json gives you additionally a list of precalculated P-values for different PWM scores.

(deprecated) Alternatively you can add with_matrices=true and with_thresholds=true parameters to a general motif request: https://hocomoco12.autosome.org/motif/{MotifID}.json?with_matrices=true&with_thresholds=true


Get motif list

One can get a list of all motifs (only MotifIDs) in a collection by sending a request https://hocomoco12.autosome.org/{collection}.json

collection can be one of H12CORE, H12INVIVO, H12INVITRO, H12RSNP. By default only core high-quality models are shown. Add ?full=true if you want D-quality models and alternative binding motifs to be listed.

Request https://hocomoco12.autosome.org/{collection}.json?summary=true gives some additional information which can be useful to organize search through motif and gene names, TF family and subfamily names.


Motif search

Use the following request https://hocomoco12.autosome.org/search.json?collection={collection}&query={query} to search for a motif across `full_name` (MotifID), `motif_families` and `gene_names` fields. Any regexp can be given as a query. Add &summary=true or &detailed=true if you want detailed information.

https://hocomoco12.autosome.org/search?family_id={TFClass id} returns a list of motifs from a TFClass group specified by TFClass id.