Closed dariushghasemi closed 1 year ago
If one wants to ensure that they have successfully created recomb_rate table and added it to the LZ SQLite database by running the abovementioned step 4, it's wise to check the output log file. The content of the log file would be exactly like this:
Loading recombination rates table from file ~/recomb-hg38/genetic_map_GRCh38_merged.tab.headered.. Dropping table recomb_rate from database /usr/local/stow/locuszoom-1.4/data/database/locuszoom_hg38.db.. Creating table recomb_rate.. Loading ~/recomb-hg38/genetic_map_GRCh38_merged.tab.headered into table recomb_rate.. Creating index for table recomb_rate on columns chr,pos..
The created LocusZoom plots for the replicated loci were converted to .png
file in shell. For instance, this command is converting the LZ plot for the top SNP at PDILT locus from pdf to png:
pdftoppm -r 300 -f 1 -png ~/projects/gwas/LZ_plots/07-Feb-23_PDILT_230207_16_20381010.pdf 09-Mar-23_PDILT
To draw regional association plot for the lead variant of each replicated loci, we need to update the LocusZoom SQLite database to show the recombination rate and it hotspots in the plot for SNP with position in build 38 (GRCh38). If the SNPs positions are in build 37 or before, can skip this additional step.
Download the lifted map files (from build 37 to build 38) containing recombination rate. http://csg.sph.umich.edu/locuszoom/download/recomb-hg38.tar.gz
Prepare the merged recombination rate file to be added to LZ SQLite database for build 38.
Then need to run the python script to create the table and add it to SQLite database:
LocusZoom directory on Eurac server
app=/usr/local/stow/locuszoom-1.4
Downloaded lifted over merged map file
map=~/projects/gwas/pairways_LD/recomb-hg38
python2 ${app}/bin/dbmeister.py \ --db ${app}/data/database/locuszoom_hg38.db \ --recomb_rate ${map}/genetic_map_GRCh38_merged.tab