Currently there are two ways of downloading our data. You can either download the full database in JSON format using the button below, or access individual entries with our REST API, using the format below.
The REST API is available through the url: https://memmorf.hegelab.org/rest/<accession>.json where <accession> has to be a valid UniProt accession referencing a protein in MemMoRF DB, e.g.: https://memmorf.hegelab.org/rest/Q9NR61.json The JSON format is a DJANGO serialized object, for more information on DJANGO serialization click here.
import urllib.request, json
with urllib.request.urlopen("https://memmorf.hegelab.org/download_full.json") as url:
# Variable 'data' will contain the full database as a nested dictionary
data = json.loads(url.read().decode())
# Access the data of human Delta-like protein 4
print(data['Q9NR61'])