There are 3 tables describing records - SNPs, CpGs, cohorts. There are two tables describing relationships: assoc_meta, assoc_cohort.
We can also create:
- cpg_cohort (to show the summary results for each CpG per cohort e.g. mean, sd, etc)
- snp_cohort (cohort specific allele frequencies, info scores etc)
- For each table write a script that will create the csv file that matches the schema
- Upload each table to the MySQL database, probably on the docker cluster
- Make sample queries for web developer to use
- Missing values should be called NULL
- output as CSV, meaning if there is a field with commas then it should be in speech marks. e.g. use
write.csv
in R - The gene information can be obtained from external sources e.g. UCSC mysql server. But we may need to bring this into our own
- Create local
./data/
directory and add csv files to this - Create
/scripts-import/changepass.sh
based on/scripts-import/changepass_template.sh
https://docs.docker.com/install/
docker-compose up
docker exec -it godmc_database bash
bash /scripts-import/importdata.sh
https://docs.docker.com/install/
docker pull fauria/lamp
Run
docker run -d -p 2000:80 --name godmc_database_web fauria/lamp
and then go to http://localhost:2000 in the browser - it should show the apache default page
Log into the docker container
docker exec -it godmc_database_web /bin/bash
Once you are in you need to clone the bitbucket repository in the correct location
cd /var/www/html
git clone https://bitbucket.org/paulsmith01/mqtldb.git
Now in your browser you should be able to go to http://localhost:2000/mqtldb and it will show the web page.
Every time the bitbucket repository is updated, login as in (4) and go to /var/www/html/mqtldb
and run git pull