首页 > 其他分享 >RISmed软件包的使用(碰到EUtilsGet()步骤报错,暂未解决)

RISmed软件包的使用(碰到EUtilsGet()步骤报错,暂未解决)

时间:2024-03-16 23:13:00浏览次数:22  
标签:www EUtilsGet 暂未 RISmed 报错 library https

教程1:https://www.jianshu.com/p/1544070a95e1
教程2:https://www.jingege.wang/2020/06/03/pubmed数据挖掘:rismed包/
问题网址:
https://githubhelp.com/skoval/RISmed
我也碰到同样问题未解决:

运行代码记录如下:

library(RISmed)
library("XML")
library("methods")

##限定下检索主题
search_topic <- c('intracranial aneurysm' ) 

search_query <- EUtilsSummary(search_topic,db="pubmed", retmax=100,datetype='pdat', mindate=2019, maxdate=2020)

##查查看下检索内容
summary(search_query)

##看下这些文献的Id
QueryId(search_query)

##获取检索结果
#Sys.sleep(0.1)
records <- EUtilsGet(search_query)
class(records)
str(records)
##提取检索结果
pubmed_data <- data.frame('Title'=ArticleTitle(records),
                          'Year'=YearAccepted(records),
                          'journal'=ISOAbbreviation(records))

head(pubmed_data,1)
pubmed_data[1:3,1]
write.csv(pubmed_data,file='DNA_methylation_in_plant.csv')
##分析文章情况
y <- YearPubmed(EUtilsGet(search_query))
##可视化一下
library(ggplot2)
date()
count <- table(y)
count <- as.data.frame(count)
names(count)<-c("Year", "Counts")
library(ggsci)
ggplot(data=count, aes(x=Year, y=Counts,fill=Year)) +
  geom_bar(stat="identity", width=0.5)+
  labs(y = "Number of articles",title="PubMed articles containing DNA methylation in plant"
  ) + theme_bw() + scale_fill_manual(values = colorRampPalette(brewer.pal(19, "Accent"))(19)) +
  theme(legend.position="bottom")

标签:www,EUtilsGet,暂未,RISmed,报错,library,https
From: https://www.cnblogs.com/corrschi/p/18077848

相关文章

  • sql注入之报错注入
    先说一个报错函数updatexml(xml_document,xpath_string,new_value):第一个参数:XML_document是String格式,为XML文档对象的名称第二个参数:XPath_string(Xpath格式的字符串),如果不了解Xpath语法,可以在网上查找教程。第三个参数:new_value,String格式,替换查找到的符合......
  • 关于安装Ubuntu/Arch wsl的error:0xffffffff报错
    运行Arch/Ubuntuwsl时报错//报错如下WslRegisterDistributionfailedwitherror:0xffffffffError:0xffffffff(null)原因:53端口被占用解决方法:win+r打开运行窗口输入resmon.exe回车。找到侦听窗口栏,查看占用53端口的PID。ctrl+shift+Esc打开任务管理器。在搜索栏......
  • Mac air node.js重新安装版本,删除node文件后报错,报错信息和解决办法
    1、在终端执行:node-v  dyld[13110]:Librarynotloaded:/usr/local/opt/icu4c/lib/libicui18n.73.dylib   Referencedfrom:/usr/local/Cellar/node@16/16.20.2/bin/node   Reason:tried:'/usr/local/opt/icu4c/lib/libicui18n.73.dylib'(nosuchfil......
  • 04ifconfig命令报错:command not found 解决方法
    在Linux系统下,当要查询当前主讲的ip地址时,输入命令ifconfig,但是却出了commandnotfound的提示ifconfig命令失败,说明没有将ipconfig命令配置到环境变量,需要进行如下配置使用管理员权限运行以下命令vi/etc/profile#在profile文件里面PATH=$PATH:/sbinexportPATH=$......
  • OpenHarmony升級4.0后,编译报错。
    1、Useexplicittypesinsteadof"any","unknown"(arkts-no-any-unknown)报错信息:ERROR:ArkTS:ERRORFile:.../WeatherRow.ets:99:12Useexplicittypesinsteadof"any","unknown"(arkts-no-any-unknown)错误代码:ForEac......
  • 连接MySQL报错,is not allowed to connect to this MySQL server
    问题描述:        本机装的MySQL数据库,本机可以正常连接,其他机器访问报错,isnotallowedtoconnecttothisMySQLserver,防火墙等其他策略均配置没问题。  解决方案:    出现该问题的原因是,MySQL数据库只允许自身所在的本机器连接,不允许远程连接。1、......
  • Linux - 报错“Address already in use”解决方案
    报"Addressalreadyinuse",如下图所示:错误原因:某程序正在使用端口。(这里我使用的是端口“8888”)可以通过命令查看所有正在使用的端口:netstat-tunllp 解决方案1.找到占用该端口的进程号使用命令:sudonetstat-anp|grep"8888"(端口号)可以看到进程号为8888的serv......
  • SSH登录失败报错Permission denied (publickey)的解决方法
    SSH(SecureShell)是一种加密的网络协议,用于在网络上安全地传输数据。它被广泛用于远程登录和执行命令。然而,有时候当我们尝试使用SSH登录时,可能会遇到错误消息Permissiondenied(publickey)导致登录失败。这种情况可能由多种原因引起。在本文中,我们将探讨导致SSH登录失败的......
  • 【已解决】报错 NVIDIA-SMI has failed because it couldn‘t communicate with the N
    在重装系统ubuntu20.4.6之后,运行程序的时候无法启动nvidia显卡,然后输入nvidia-smi报错hasfailedbecauseitcouldn‘tcommunicatewiththeNVIDIAdriver,在网上查看许多解决方案也没有解决,其中这篇文章(https://www.zhihu.com/question/474222642)写的较为详细,但是我试过依旧无......
  • 【rust】《处理报错Cannot find a libtorch install, you can either:》
    在学习rust的tch-rs框架的时候,引入依赖并运行小demo的时候报错了;错误信息如下:报错信息Cannotfindalibtorchinstall,youcaneither:-InstalllibtorchmanuallyandsettheLIBTORCHenvironmentvariabletoappropriatepath.-Useasystemwideinstallin/us......