Skip to content

Commit

Permalink
updated on 2019-01-13 19:28:45
Browse files Browse the repository at this point in the history
  • Loading branch information
sbalci committed Jan 13, 2019
1 parent 9d5a504 commit 6b79089
Show file tree
Hide file tree
Showing 15 changed files with 2,099 additions and 13 deletions.
Binary file modified .DS_Store
Binary file not shown.
32 changes: 32 additions & 0 deletions BalciS.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "Data For Balci Serdar"
output: html_notebook
---


```{r extract journal names from all data xml, message=FALSE, warning=FALSE}
myTerm <- rstudioapi::terminalCreate(show = FALSE)
rstudioapi::terminalSend(
myTerm,
"xtract -input data/BalciS.xml -pattern PubmedArticle -sep '\t' -def 'na' -element MedlineCitation/PMID -block ArticleId -if ArticleId@IdType -equals doi -element ArticleId > data/BalciS.csv \n"
)
Sys.sleep(1)
repeat {
Sys.sleep(0.1)
if (rstudioapi::terminalBusy(myTerm) == FALSE) {
print("Code Executed")
break
}
}
```


```{r}
BalciS <- rio::import("data/BalciS.csv")
BalciSdoi <- BalciS$V2
```

```{r}
write(BalciSdoi, "data/BalciSdoi.txt")
```

1,848 changes: 1,848 additions & 0 deletions BalciS.nb.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions BibliographicStudies.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ In this analysis we aimed to identify the common research topics Turkish patholo
[MeSH Terms Pathology Articles From Turkey](https://sbalci.github.io/pubmed/MeSH_Terms_Pathology_Articles_From_Turkey.html)


---

<!-- BalciS -->


---

<!-- ## Journals Published Articles From Turkey -->
Expand Down
16 changes: 9 additions & 7 deletions BibliographicStudies.nb.html

Large diffs are not rendered by default.

78 changes: 78 additions & 0 deletions PathologyArticlesFromTurkeyComparedtoAllPublishedArticles.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,82 @@ ggplot(articlesPerTotalArticles, aes(year, query_hits / all_hits)) +
```


---

# PubMed

## Data retriveal from PubMed using EDirect

Article PMID downloaded as `txt`.

```{r Search PubMed download PMID, eval=FALSE, include=FALSE}
myTerm <- rstudioapi::terminalCreate(show = FALSE)
rstudioapi::terminalSend(
myTerm,
"esearch -db pubmed -query \"(pathology[Affiliation] OR patoloji[Affiliation]) AND (Turkey[Affiliation] OR Türkiye[Affiliation])\" -datetype PDAT -mindate 1800 -maxdate 3000 | \ efetch -format uid > data/pubmed_result_TurkPath_uid.txt \n"
)
Sys.sleep(1)
repeat {
Sys.sleep(0.1)
if (rstudioapi::terminalBusy(myTerm) == FALSE) {
print("Code Executed")
break
}
}
```


---


```{r Search local PubMed with downloaded PMID extract data as xml, eval=FALSE, include=FALSE}
myTerm <- rstudioapi::terminalCreate(show = FALSE)
rstudioapi::terminalSend(
myTerm,
"cat data/pubmed_result_TurkPath_uid.txt | \ fetch-pubmed -path /Volumes/Agu2018/PubMed > data/pubmed_result_TurkPath.xml \n"
)
Sys.sleep(1)
repeat {
Sys.sleep(0.1)
if (rstudioapi::terminalBusy(myTerm) == FALSE) {
print("Code Executed")
break
}
}
```




---



```{r extract doi from xml, message=FALSE, warning=FALSE}
myTerm <- rstudioapi::terminalCreate(show = FALSE)
rstudioapi::terminalSend(
myTerm,
"xtract -input data/pubmed_result_TurkPath.xml -pattern PubmedArticle -element MedlineCitation/PMID -block ArticleId -if ArticleId@IdType -equals doi -element ArticleId > data/pubmed_result_TurkPath.txt \n"
)
Sys.sleep(1)
repeat {
Sys.sleep(0.1)
if (rstudioapi::terminalBusy(myTerm) == FALSE) {
print("Code Executed")
break
}
}
```


```{r}
library(tidyverse)
pubmed_result_TurkPath <- read_csv(file = "data/pubmed_result_TurkPath.csv")
pubmed_result_TurkPath_doi <- pubmed_result_TurkPath_doi$V2
```


```{r}
write(pubmed_result_TurkPath_doi, "data/pubmed_result_TurkPath_doi.txt")
```

125 changes: 121 additions & 4 deletions PathologyArticlesFromTurkeyComparedtoAllPublishedArticles.nb.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions endometriosis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ knitcitations::citep("10.1186/s12905-016-0336-0")



vosviewer


5 changes: 3 additions & 2 deletions endometriosis.nb.html

Large diffs are not rendered by default.

Binary file added figure/BalciSVOSviewerdensity1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/BalciSVOSviewerdensity2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/BalciSVOSviewermap1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/BalciSVOSviewernetwork2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/BalciSVOSvieweroverlay1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figure/BalciSVOSvieweroverlay2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6b79089

Please sign in to comment.