import requestsimport urllib3urllib3.disable_warnings()def fetch_uniprot_data(uniprot_id): url =f"https://rest.uniprot.org/uniprotkb/{uniprot_id}.json" response = requests.get(url, verify=False) # Disable SSL verification response.raise_for_status() # Raise an error for bad status codesreturn response.json()def display_uniprot_data(data): primary_accession = data.get('primaryAccession', 'N/A') protein_name = data.get('proteinDescription', {}).get('recommendedName', {}).get('fullName', {}).get('value', 'N/A') gene_name = data.get('gene', [{'geneName': {'value': 'N/A'}}])[0]['geneName']['value'] organism = data.get('organism', {}).get('scientificName', 'N/A') function_comment =next((comment for comment in data.get('comments', []) if comment['commentType'] =="FUNCTION"), None) function = function_comment['texts'][0]['value'] if function_comment else'N/A'# Printing the dataprint(f"UniProt ID: {primary_accession}")print(f"Protein Name: {protein_name}")print(f"Organism: {organism}")print(f"Function: {function}")# Replace this with the UniProt ID you want to fetchuniprot_id ="O94778"data = fetch_uniprot_data(uniprot_id)display_uniprot_data(data)
UniProt ID: O94778
Protein Name: Aquaporin-8
Organism: Homo sapiens
Function: Channel that allows the facilitated permeation of water and uncharged molecules, such as hydrogen peroxide and the neutral form of ammonia (NH3), through cellular membranes such as plasma membrane, inner mitochondrial membrane and endoplasmic reticulum membrane of several tissues (PubMed:15948717, PubMed:18948439, PubMed:23541115, PubMed:26972385, PubMed:29732408, PubMed:30579780). The transport of the ammonia neutral form induces a parallel transport of proton, at alkaline pH when the concentration of ammonia is high (By similarity). However, it is unclear whether the transport of proton takes place via the aquaporin or via an endogenous pathway (By similarity). Also, may transport ammonia analogs such as formamide and methylamine, a transport favourited at basic pH due to the increase of unprotonated (neutral) form, which is expected to favor diffusion (PubMed:15948717). Does not transport urea or glycerol (PubMed:15948717). The water transport mechanism is mercury- and copper-sensitive and passive in response to osmotic driving forces (PubMed:15948717). At the canicular plasma membrane, mediates the osmotic transport of water toward the bile canaliculus and facilitates the cAMP-induced bile canalicular water secretion, a process involved in bile formation (PubMed:18948439). In addition, mediates the hydrogen peroxide release from hepatocyte mitochondria that modulates the SREBF2-mediated cholesterol synthesis and facilitates the mitochondrial ammonia uptake which is metabolized into urea, mainly under glucagon stimulation (PubMed:30579780, PubMed:34292591). In B cells, transports the CYBB-generated hydrogen peroxide from the external leaflet of the plasma membrane to the cytosol to promote B cell activation and differentiation for signal amplification (By similarity). In the small intestine and colon system, mediates water transport through mitochondria and apical membrane of epithelial cells (By similarity). May play an important role in the adaptive response of proximal tubule cells to acidosis possibly by facilitating the mitochondrial ammonia transport (PubMed:22622463)
More information:
AlphaFold model
Surface representation - binding sites
The computed point cloud for pLDDT > 0.6. Each atom is sampled on average by 10 points.
To see the predicted binding interfaces, you can choose color theme “uncertainty”.
Go to the “Controls Panel”
Below “Components”, to the right, click on “…”
“Set Coloring” by “Atom Property”, and “Uncertainty/Disorder”