无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

R檢索Pubmed

2023-03-21 08:38 作者:Q日拱一卒  | 我要投稿

install.packages("easyPubMed")

library(easyPubMed)

library(dplyr)

library(parallel)

library(foreach)

library(doParallel)

get_pubmed <- function(query = my_query){

? # ncbi_key = '6c656032d3e950f2b15656d687fd4eeb8008'

? my_query <- get_pubmed_ids(my_query)

? my_query$Count

? # Fetch data

? my_abstracts_xml <- fetch_pubmed_data(my_query)??

? # Store Pubmed Records as elements of a list

? all_xml <- articles_to_list(my_abstracts_xml)

? # Windows systems may not support the following code.

??

? # Start a cluster with 3 cores

? cl <- makeCluster(4)

? registerDoParallel(cl)

??

? # Perform operation (use foreach)

? # The .combine argument guides result aggregation

? fullDF <- tryCatch(

? ? {foreach(x=1:length(all_xml),?

? ? ? ? ? ? ?.packages = 'easyPubMed',

? ? ? ? ? ? ?.combine = rbind) %dopar% article_to_df(pubmedArticle = all_xml[[x]],?

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?autofill = T,?

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?max_chars = -1,?

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?getKeywords = T,?

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?getAuthors = T)},?

? ? error = function(e) {NULL},

? ? finally = {stopCluster(cl)})

? fullDF <- fullDF %>%?

? ? as_tibble()

? return(fullDF)

}



##根據(jù)期刊/關(guān)鍵詞查找:

my_query<-"(Idiopathic pulmonary fibrosis[TIAB]) AND ((2022[Date - Publication] : 2022[Date - Publication]))"

qr1<-get_pubmed_ids(my_query)

##my_query<-"(Journal of Hepatology[Journal]) AND ((2022[Date - Publication] : 2022[Date - Publication]))"

##qr1<-get_pubmed_ids(my_query)

result<-fetch_pubmed_data(qr1,encoding = "ASCII")

result<-table_articles_byAuth(result,included_authors = "last",max_chars = 500)

write.csv(result,file="D:\\MDR database\\result.csv",row.names = F)


R檢索Pubmed的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
鄢陵县| 龙泉市| 信丰县| 通化县| 手游| 呼伦贝尔市| 怀仁县| 牡丹江市| 宜城市| 大余县| 遂平县| 金川县| 抚松县| 腾冲县| 甘洛县| 白河县| 黄平县| 潞西市| 桂林市| 宣恩县| 谷城县| 科尔| 襄垣县| 铜鼓县| 繁昌县| 辉南县| 米易县| 商城县| 铁岭县| 威宁| 双流县| 同心县| 象州县| 太和县| 通州区| 重庆市| 丹江口市| 麻江县| 姜堰市| 永胜县| 北宁市|