Hello. Your task is to use NCBI Web APIs to answer genomic questions. Here are some…
- User
Hello. Your task is to use NCBI Web APIs to answer genomic questions. Here are some examples:
Question: What is the official gene symbol of LMP10? [https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=gene&retmax=5&retmode=json&sort=relevance&term=LMP10]->[b'{"header":{"type":"esearch","version":"0.3"},"esearchresult":{"count":"3","retmax":"3","retstart":"0","idlist":["5699","8138","19171"],"translationset":[],"translationstack":[{"term":"LMP10[All Fields]","field":"All Fields","count":"3","explode":"N"},"GROUP"],"querytranslation":"LMP10[All Fields]"}}\n'] [https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=gene&retmax=5&retmode=json&id=19171,5699,8138]->[b'\n1. Psmb10\nOfficial Symbol: Psmb10 and Name: proteasome (prosome, macropain) subunit, beta type 10 [Mus musculus (house mouse)]\nOther Aliases: Mecl-1, Mecl1\nOther Designations: proteasome subunit beta type-10; low molecular mass protein 10; macropain subunit MECl-1; multicatalytic endopeptidase complex subunit MECl-1; prosome Mecl1; proteasome (prosomome, macropain) subunit, beta type 10; proteasome MECl-1; proteasome subunit MECL1; proteasome subunit beta-2i\nChromosome: 8; Location: 8 53.06 cM\nAnnotation: Chromosome 8 NC_000074.7 (106662360..106665024, complement)\nID: 19171\n\n2. PSMB10\nOfficial Symbol: PSMB10 and Name: proteasome 20S subunit beta 10 [Homo sapiens (human)]\nOther Aliases: IMD121, LMP10, MECL1, PRAAS5, beta2i\nOther Designations: proteasome subunit beta type-10; low molecular mass protein 10; macropain subunit MECl-1; multicatalytic endopeptidase complex subunit MECl-1; proteasome (prosome, macropain) subunit, beta type, 10; proteasome MECl-1; proteasome catalytic subunit 2i; proteasome subunit MECL1; proteasome subunit beta 10; proteasome subunit beta 7i; proteasome subunit beta-2i; proteasome subunit beta2i\nChromosome: 16; Location: 16q22.1\nAnnotation: Chromosome 16 NC_000016.10 (67934506..67936850, complement)\nMIM: 176847\nID: 5699\n\n3. MECL1\nProteosome subunit MECL1 [Homo sapiens (human)]\nOther Aliases: LMP10, PSMB10\nThis record was replaced with GeneID: 5699\nID: 8138\n\n'] Answer: PSMB10
Question: Align the DNA sequence to the human genome:ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACCCTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGAAAAAAAAAAAAGTATTTCTCT [https://blast.ncbi.nlm.nih.gov/blast/Blast.cgi?CMD=Put&PROGRAM=blastn&MEGABLAST=on&DATABASE=nt&FORMAT_TYPE=XML&QUERY=ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACCCTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGAAAAAAAAAAAAGTATTTCTCT&HITLIST_SIZE=5]->[JSJJ94V1013] [https://blast.ncbi.nlm.nih.gov/blast/Blast.cgi?CMD=Get&FORMAT_TYPE=Text&RID=JSJJ94V1013]->[b'\n\n\nBLASTN 2.16.0+\nReference: Zheng Zhang, Scott Schwartz, Lukas Wagner, and\nWebb Miller (2000), "A greedy algorithm for aligning DNA\nsequences", J Comput Biol 2000; 7(1-2):203-14.\n\n\nReference for database indexing: Aleksandr Morgulis, George\nCoulouris, Yan Raytselis, Thomas L. Madden, Richa Agarwala,\nAlejandro A. Schaffer (2008), "Database Indexing for\nProduction MegaBLAST Searches", Bioinformatics 24:1757-1764.\n\n\nRID: JSJJ94V1013\n\n\nDatabase: Core nucleotide BLAST database\n 109,874,994 sequences; 780,310,604,711 total letters\nQuery= \nLength=128\n\n\n Score E Max\nSequences producing significant alignments: (Bits) Value Ident\n\nNG_132175.1 Homo sapiens H3K27ac-H3K4me1 hESC enhancer GRCh37_... 237 2e-58 100% \nAC104236.2 Homo sapiens chromosome 15, clone RP11-24J19, compl... 237 2e-58 100% \nCP034493.1 Eukaryotic synthetic construct chromosome 15 237 2e-58 100% \nFJ515841.1 Homo sapiens isolate SLC3A1-VI-T solute carrier org... 237 2e-58 100% \nXR_007727471.1 PREDICTED: Macaca thibetana thibetana uncharact... 187 2e-43 96% \n\nALIGNMENTS\n>NG_132175.1 Homo sapiens H3K27ac-H3K4me1 hESC enhancer GRCh37_chr15:92493309-92494181 \n(LOC127830695) on chromosome 15\nLength=1073\n\n Score = 237 bits (128), Expect = 2e-58\n Identities = 128/128 (100%), Gaps = 0/128 (0%)\n Strand=Plus/Plus\n\nQuery 1 ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACC 60\n ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\nSbjct 827 ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACC 886\n\nQuery 61 CTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGaaaaaaaaaaaaGT 120\n ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\nSbjct 887 CTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGAAAAAAAAAAAAGT 946\n\nQuery 121 ATTTCTCT 128\n ||||||||\nSbjct 947 ATTTCTCT 954\n\n\n>AC104236.2 Homo sapiens chromosome 15, clone RP11-24J19, complete sequence\nLength=160392\n\n Score = 237 bits (128), Expect = 2e-58\n Identities = 128/128 (100%), Gaps = 0/128 (0%)\n Strand=Plus/Plus\n\nQuery 1 ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACC 60\n ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\nSbjct 94509 ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACC 94568\n\nQuery 61 CTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGaaaaaaaaaaaaGT 120\n ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\nSbjct 94569 CTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGAAAAAAAAAAAAGT 94628\n\nQuery 121 ATTTCTCT 128\n ||||||||\nSbjct 94629 ATTTCTCT 94636\n\n\n>CP034493.1 Eukaryotic synthetic construct chromosome 15\n CP034518.1 Eukaryotic synthetic construct chromosome 15\nLength=82521392\n\n Score = 237 bits (128), Expect = 2e-58\n Identities = 128/128 (100%), Gaps = 0/128 (0%)\n Strand=Plus/Plus\n\nQuery 1 ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACC 60\n ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\nSbjct 72494035 ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACC 72494094\n\nQuery 61 CTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGaaaaaaaaaaaaGT 120\n ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\nSbjct 72494095 CTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGAAAAAAAAAAAAGT 72494154\n\nQuery 121 ATTTCTCT 128\n ||||||||\nSbjct 72494155 ATTTCTCT 72494162\n\n\n>FJ515841.1 Homo sapiens isolate SLC3A1-VI-T solute carrier organic anion \ntransporter family member 3A1 (SLCO3A1) gene, complete cds\nLength=315834\n\n Score = 237 bits (128), Expect = 2e-58\n Identities = 128/128 (100%), Gaps = 0/128 (0%)\n Strand=Plus/Plus\n\nQuery 1 ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACC 60\n ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\nSbjct 100090 ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACC 100149\n\nQuery 61 CTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGaaaaaaaaaaaaGT 120\n ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\nSbjct 100150 CTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGAAAAAAAAAAAAGT 100209\n\nQuery 121 ATTTCTCT 128\n ||||||||\nSbjct 100210 ATTTCTCT 100217\n\n\n>XR_007727471.1 PREDICTED: Macaca thibetana thibetana uncharacterized LOC126959095 \n(LOC126959095), ncRNA\nLength=52241\n\n Score = 187 bits (101), Expect = 2e-43\n Identities = 112/117 (96%), Gaps = 1/117 (1%)\n Strand=Plus/Plus\n\nQuery 1 ATTCTGCCTTTAGTAATTTGATGACAGAGACTTCTTGGGAACCACAGCCAGGGAGCCACC 60\n ||||||||||||||||||||||| ||||||||||||||||| ||||||||||||||||||\nSbjct 14272 ATTCTGCCTTTAGTAATTTGATGTCAGAGACTTCTTGGGAAACACAGCCAGGGAGCCACC 14331\n\nQuery 61 CTTTACTCCACCAACAGGTGGCTTATATCCAATCTGAGAAAGAAAGaaaaaaaaaaa 117\n |||||||||||| |||||| ||||||||||||||||||||||||| |||||||||||\nSbjct 14332 CTTTACTCCACCTACAGGTAGCTTATATCCAATCTGAGAAAGAAA-AAAAAAAAAAA 14387\n\n\n Database: Core nucleotide BLAST database\n Posted date: Oct 15, 2024 1:06 PM\n Number of letters in database: 780,292,114,730\n Number of sequences in database: 109,871,685\n\nLambda K H\n 1.33 0.621 1.12 \nGapped\nLambda K H\n 1.28 0.460 0.850 \nMatrix: blastn matrix:1 -2\nGap Penalties: Existence: 0, Extension: 0\nNumber of Sequences: 109871685\nNumber of Hits to DB: 0\nNumber of extensions: 0\nNumber of successful extensions: 0\nNumber of sequences better than 10: 0\nNumber of HSP's better than 10 without gapping: 0\nNumber of HSP's gapped: 0\nNumber of HSP's successfully gapped: 0\nLength of query: 128\nLength of database: 780292114730\nLength adjustment: 34\nEffective length of query: 94\nEffective length of database: 776556477440\nEffective search space: 72996308879360\nEffective search space used: 72996308879360\nA: 0\nX1: 13 (25.0 bits)\nX2: 32 (59.1 bits)\nX3: 54 (99.7 bits)\nS1: 13 (25.1 bits)\nS2: 23 (43.6 bits)\n\n\n'] Answer: chr15:91950805-91950932
Question: Convert ENSMUSG00000041147 to official gene symbol.
- Assistant
To convert an Ensembl gene ID to an official gene symbol using NCBI Web APIs, we will first need to query the NCBI Gene database to find the relevant NCBI Gene ID associated with the Ensembl gene ID. Once we have the NCBI Gene ID, we can retrieve the official gene symbol.
Step 1: Search for the Ensembl Gene ID
We'll use the
esearchutility to search the NCBI Gene database with the Ensembl gene IDENSMUSG00000041147:https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=gene&retmax=5&retmode=json&term=ENSMUSG00000041147Step 2: Extract the NCBI Gene ID
Once we receive the response, we can extract the NCBI Gene ID from the
idlistfield in the JSON response.Step 3: Fetch Gene Information
We'll use the
efetchutility to fetch detailed information about the gene using the NCBI Gene ID obtained in step 2:https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=gene&retmode=json&id=<NCBI_Gene_ID>Step 4: Extract the Official Gene Symbol
From the response, locate the
Official Symbolfield to get the official gene symbol.This API-based approach will help you identify the official gene symbol associated with the specified Ensembl gene ID. Please try these steps if you are able to access the NCBI Web APIs. If you encounter any issues or have additional questions, please let me know!