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 ="P16150"data = fetch_uniprot_data(uniprot_id)display_uniprot_data(data)
UniProt ID: P16150
Protein Name: Leukosialin
Organism: Homo sapiens
Function: Predominant cell surface sialoprotein of leukocytes which regulates multiple T-cell functions, including T-cell activation, proliferation, differentiation, trafficking and migration. Positively regulates T-cell trafficking to lymph-nodes via its association with ERM proteins (EZR, RDX and MSN) (By similarity). Negatively regulates Th2 cell differentiation and predisposes the differentiation of T-cells towards a Th1 lineage commitment. Promotes the expression of IFN-gamma by T-cells during T-cell receptor (TCR) activation of naive cells and induces the expression of IFN-gamma by CD4(+) T-cells and to a lesser extent by CD8(+) T-cells (PubMed:18036228). Plays a role in preparing T-cells for cytokine sensing and differentiation into effector cells by inducing the expression of cytokine receptors IFNGR and IL4R, promoting IFNGR and IL4R signaling and by mediating the clustering of IFNGR with TCR (PubMed:24328034). Acts as a major E-selectin ligand responsible for Th17 cell rolling on activated vasculature and recruitment during inflammation. Mediates Th17 cells, but not Th1 cells, adhesion to E-selectin. Acts as a T-cell counter-receptor for SIGLEC1 (By similarity)
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”