从R中的数据库查询内容

问题描述 投票:0回答:1

我在R的Bioconductor包中使用hmdbquery包来过滤HMDB数据库中记录的一些代谢物的浓度。

我指的是可用here的hmdbquery手册。我正面临挑战,寻找必须用来解析物种的正常浓度的适当命令(请参考图像),HMDB0000001,给定here

library(hmdbQuery)
lk1 = HmdbEntry(prefix = "http://www.hmdb.ca/metabolites/", id = "HMDB0000001")

从,lk1我如何访问与HMDB ID相关的内容:HMDB0000001 lk1的类是S4。 COncentration有人可以帮忙吗?

r bioconductor
1个回答
1
投票

当我显示我看到的对象时

> lk1
HMDB metabolite metadata for 1-Methylhistidine:
There are 10 diseases annotated.
Direct association reported for 5 biospecimens and 2 tissues.
Use diseases(), biospecimens(), tissues() for more information.

所以我尝试了一个建议,例如,

> diseases(lk1)
DataFrame with 10 rows and 4 columns
          metabolite                   disease                          pmids
         <character>               <character>                         <List>
1  1-Methylhistidine       Alzheimer's disease  9693263,10494443,15465626,...
2  1-Methylhistidine                 Pregnancy    2994907,663967,12698507,...
3  1-Methylhistidine  Diabetes mellitus type 2  15899597,15982426,6321058,...
4  1-Methylhistidine            Kidney disease 11573638,12032193,11380830,...
5  1-Methylhistidine Maple syrup urine disease  6422161,12101068,10508118,...
6  1-Methylhistidine                   Obesity 15899597,17264178,16253646,...
7  1-Methylhistidine        Propionic acidemia  19809936,19551947,2226555,...
8  1-Methylhistidine  Eosinophilic esophagitis                               
9  1-Methylhistidine        Early preeclampsia                       22494326
10 1-Methylhistidine   Late-onset preeclampsia                       23159745
     accession
   <character>
1  HMDB0000001
2  HMDB0000001
3  HMDB0000001
4  HMDB0000001
5  HMDB0000001
6  HMDB0000001
7  HMDB0000001
8  HMDB0000001
9  HMDB0000001
10 HMDB0000001

这是你想要的吗?

© www.soinside.com 2019 - 2024. All rights reserved.