From 2c878076789de8c8a0cb980b49df65a5bf65a84b Mon Sep 17 00:00:00 2001 From: howff Date: Wed, 21 Feb 2024 15:21:37 +0000 Subject: [PATCH] Update doc with new repo to hold data files --- doc/annotation_database.md | 5 +---- doc/install.md | 5 +++++ src/tools/install.sh | 14 ++++---------- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/doc/annotation_database.md b/doc/annotation_database.md index 4dd90031..89090684 100644 --- a/doc/annotation_database.md +++ b/doc/annotation_database.md @@ -20,10 +20,7 @@ jq Download: -- https://cogstack.rosalind.kcl.ac.uk/exports/customised_handlers.tar.gz -- http://netix.dl.sourceforge.net/project/gate/gate/8.1/gate-8.1-build5169-ALL.zip -- https://cogstack.rosalind.kcl.ac.uk/exports/bio-yodie-1.2.1-se.tar.gz -- https://cogstack.rosalind.kcl.ac.uk/exports/bio-yodie-resource-prep-output.2019.fixed.zip +- https://git.ecdf.ed.ac.uk/SMI/data.git ## Install the required software diff --git a/doc/install.md b/doc/install.md index 894f583a..6662c6de 100644 --- a/doc/install.md +++ b/doc/install.md @@ -75,6 +75,8 @@ git clone https://github.com/SMI/nlp2phenome git clone https://git.ecdf.ed.ac.uk/SMI/service-docs.git git clone https://git.ecdf.ed.ac.uk/SMI/metacat.git git clone https://github.com/SMI/CogStack-SemEHR +sudo yum install git-lfs +git clone https://git.ecdf.ed.ac.uk/SMI/data.git ``` ## Install SemEHR annotation database via Docker @@ -101,6 +103,9 @@ sudo chmod g+w /opt/semehr/ ln -s ~/src/CogStack-SemEHR /opt/semehr/CogStack-SemEHR ``` +If you want to use the annotation features you'll need some additional +files, see the [annotation database](annotation_database.md) document. + ## Python virtual environment ``` diff --git a/src/tools/install.sh b/src/tools/install.sh index a7826816..3dc44599 100755 --- a/src/tools/install.sh +++ b/src/tools/install.sh @@ -6,7 +6,7 @@ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs) wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update -sudo apt-get install ant curl openjdk-11-jdk subversion unzip vim git apt-transport-https +sudo apt-get install ant curl openjdk-11-jdk subversion unzip vim git git-lfs apt-transport-https sudo apt-get install python3 python3-pip python3-virtualenv python3-setuptools python3-dev python3-testresources sudo apt-get install postgresql-13 mongodb libpq-dev @@ -37,6 +37,7 @@ cd ~/SemEHR git clone https://github.com/SMI/StructuredReports git clone https://github.com/SMI/CogStack-SemEHR git clone https://github.com/SMI/nlp2phenome +git clone https://git.ecdf.ed.ac.uk/SMI/data.git git clone https://github.com/SMI/SmiServices cd SmiServices/src/common/Smi_Common_Python @@ -54,15 +55,8 @@ cd ~/SemEHR/CogStack-SemEHR/installation echo ~/SemEHR/ | bash install_semehr.sh sudo apt remove -y python2-dev -cd ~/SemEHR -wget https://cogstack.rosalind.kcl.ac.uk/exports/bio-yodie-resource-prep-output.2019.fixed.zip -unzip bio-yodie-resource-prep-output.2019.fixed.zip -rm -fr __MACOSX -mv ~/SemEHR/gcp/bio-yodie-1-2-1/bio-yodie-resources/en/databases ~/SemEHR/gcp/bio-yodie-1-2-1/bio-yodie-resources/en/databases.old -mv ~/SemEHR/gcp/bio-yodie-1-2-1/bio-yodie-resources/en/gazetteer-en-bio ~/SemEHR/gcp/bio-yodie-1-2-1/bio-yodie-resources/en/gazetteer-en-bio.old -mv output/en/{databases,gazetteer-en-bio} ~/SemEHR/gcp/bio-yodie-1-2-1/bio-yodie-resources/en/ -rm bio-yodie-resource-prep-output.2019.fixed.zip -rmdir output/databases output/en output +cd ~/SemEHR/data/CogStack-SemEHR +./install.sh cd ~/SemEHR/structuredreports/src/tools ./mtsamples_ihi_extract.py