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 ="Q10589"data = fetch_uniprot_data(uniprot_id)display_uniprot_data(data)
UniProt ID: Q10589
Protein Name: Bone marrow stromal antigen 2
Organism: Homo sapiens
Function: IFN-induced antiviral host restriction factor which efficiently blocks the release of diverse mammalian enveloped viruses by directly tethering nascent virions to the membranes of infected cells. Acts as a direct physical tether, holding virions to the cell membrane and linking virions to each other. The tethered virions can be internalized by endocytosis and subsequently degraded or they can remain on the cell surface. In either case, their spread as cell-free virions is restricted (PubMed:18200009, PubMed:18342597, PubMed:19036818, PubMed:19879838, PubMed:20019814, PubMed:20399176, PubMed:20419159, PubMed:20940320, PubMed:21529378, PubMed:22520941). Its target viruses belong to diverse families, including retroviridae: human immunodeficiency virus type 1 (HIV-1), human immunodeficiency virus type 2 (HIV-2), simian immunodeficiency viruses (SIVs), equine infectious anemia virus (EIAV), feline immunodeficiency virus (FIV), prototype foamy virus (PFV), Mason-Pfizer monkey virus (MPMV), human T-cell leukemia virus type 1 (HTLV-1), Rous sarcoma virus (RSV) and murine leukemia virus (MLV), flavivirideae: hepatitis C virus (HCV), filoviridae: ebola virus (EBOV) and marburg virus (MARV), arenaviridae: lassa virus (LASV) and machupo virus (MACV), herpesviridae: kaposis sarcoma-associated herpesvirus (KSHV), rhabdoviridae: vesicular stomatitis virus (VSV), orthomyxoviridae: influenza A virus, paramyxoviridae: nipah virus, and coronaviridae: SARS-CoV (PubMed:18200009, PubMed:18342597, PubMed:19179289, PubMed:19879838, PubMed:20399176, PubMed:20419159, PubMed:20686043, PubMed:20943977, PubMed:21529378, PubMed:21621240, PubMed:22520941, PubMed:26378163, PubMed:31199522). Can inhibit cell surface proteolytic activity of MMP14 causing decreased activation of MMP15 which results in inhibition of cell growth and migration (PubMed:22065321). Can stimulate signaling by LILRA4/ILT7 and consequently provide negative feedback to the production of IFN by plasmacytoid dendritic cells in response to viral infection (PubMed:19564354, PubMed:26172439). Plays a role in the organization of the subapical actin cytoskeleton in polarized epithelial cells. Isoform 1 and isoform 2 are both effective viral restriction factors but have differing antiviral and signaling activities (PubMed:23028328, PubMed:26172439). Isoform 2 is resistant to HIV-1 Vpu-mediated degradation and restricts HIV-1 viral budding in the presence of Vpu (PubMed:23028328, PubMed:26172439). Isoform 1 acts as an activator of NF-kappa-B and this activity is inhibited by isoform 2 (PubMed:23028328)
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”