Skip to content

Commit

Permalink
updated on 2018-07-02 16:51:44
Browse files Browse the repository at this point in the history
  • Loading branch information
sbalci committed Jul 2, 2018
1 parent aec3e2f commit 0875c71
Show file tree
Hide file tree
Showing 6 changed files with 314 additions and 2,766 deletions.
158 changes: 158 additions & 0 deletions SchedulePubMedAnalysis-old.log

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions SchedulePubMedAnalysis.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
library(rmarkdown)
library(pander)
library(rstudioapi)
require(rmarkdown)
# require(pander)
require(rstudioapi)
#
# rmarkdown::render(input = "SchedulePubMedAnalysis.Rmd", output_format = "html_notebook", output_file = "docs/SchedulePubMedAnalysis.html"
# , quiet = TRUE
Expand Down
Empty file removed SchedulePubMedAnalysis.log
Empty file.
52 changes: 26 additions & 26 deletions SchedulePubMedAnalysis2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -111,37 +111,37 @@ Articles are downloaded as `xml`.
MeSH terms are extracted from xml. [Common terms](https://www.nlm.nih.gov/bsd/indexing/training/CHK_010.html) are excluded and [major topics](https://www.nlm.nih.gov/bsd/disted/meshtutorial/principlesofmedlinesubjectindexing/majortopics/) are selected.

```{r extract major MeSH topics -excluding common tags- from xml, message=FALSE, warning=FALSE}
myTerm <- rstudioapi::terminalCreate(show = FALSE)
rstudioapi::terminalSend(
myTerm,
"xtract -input /Users/serdarbalciold/RepTemplates/pubmed/data/PathologyTurkey.xml -pattern MeshHeading -if DescriptorName@MajorTopicYN -equals Y -or QualifierName@MajorTopicYN -equals Y -element DescriptorName| grep -vxf /Users/serdarbalciold/RepTemplates/pubmed/data/checktags.txt | sort-uniq-count-rank > /Users/serdarbalciold/RepTemplates/pubmed/data/PathologyTurkeyMeSH.csv \n"
)
Sys.sleep(1)
repeat {
Sys.sleep(0.1)
if (rstudioapi::terminalBusy(myTerm) == FALSE) {
print("Code Executed")
break
}
}
# myTerm <- rstudioapi::terminalCreate(show = FALSE)
# rstudioapi::terminalSend(
# myTerm,
# "xtract -input /Users/serdarbalciold/RepTemplates/pubmed/data/PathologyTurkey.xml -pattern MeshHeading -if DescriptorName@MajorTopicYN -equals Y -or QualifierName@MajorTopicYN -equals Y -element DescriptorName| grep -vxf /Users/serdarbalciold/RepTemplates/pubmed/data/checktags.txt | sort-uniq-count-rank > /Users/serdarbalciold/RepTemplates/pubmed/data/PathologyTurkeyMeSH.csv \n"
# )
# Sys.sleep(1)
# repeat {
# Sys.sleep(0.1)
# if (rstudioapi::terminalBusy(myTerm) == FALSE) {
# print("Code Executed")
# break
# }
# }
```

Keywords are extracted from `xml`.

```{r extract author keywords from xml, message=FALSE, warning=FALSE, results='asis'}
myTerm <- rstudioapi::terminalCreate(show = FALSE)
rstudioapi::terminalSend(
myTerm,
"xtract -input /Users/serdarbalciold/RepTemplates/pubmed/data/PathologyTurkey.xml -pattern Keyword -element Keyword | sort-uniq-count-rank > /Users/serdarbalciold/RepTemplates/pubmed/data/authorkeywords.csv \n"
)
Sys.sleep(1)
repeat {
Sys.sleep(0.1)
if (rstudioapi::terminalBusy(myTerm) == FALSE) {
print("Code Executed")
break
}
}
# myTerm <- rstudioapi::terminalCreate(show = FALSE)
# rstudioapi::terminalSend(
# myTerm,
# "xtract -input /Users/serdarbalciold/RepTemplates/pubmed/data/PathologyTurkey.xml -pattern Keyword -element Keyword | sort-uniq-count-rank > /Users/serdarbalciold/RepTemplates/pubmed/data/authorkeywords.csv \n"
# )
# Sys.sleep(1)
# repeat {
# Sys.sleep(0.1)
# if (rstudioapi::terminalBusy(myTerm) == FALSE) {
# print("Code Executed")
# break
# }
# }
```


Expand Down
6 changes: 3 additions & 3 deletions SchedulePubMedAnalysis2.nb.html

Large diffs are not rendered by default.

2,858 changes: 124 additions & 2,734 deletions docs/SchedulePubMedAnalysis.nb.html

Large diffs are not rendered by default.

0 comments on commit 0875c71

Please sign in to comment.