A Docker image for use with qtl2api.
docker build --progress plain -t churchilllab/qtl2rest .
The Docker image needs a file and a path to be mounted in the following loctions:
/app/qtl2rest/data
- R data directory - this should have RData and Rds files
ccfoundersnps.sqlite
- founder snps database
The following command will start the Docker image.
docker run --rm \
-p 8001:8001 \
--name qtl2rest \
--network qtl2rest \
-v /data/rdata:/app/qtl2rest/rdata \
-v /data/ccfoundersnps.sqlite:/app/qtl2rest/data/ccfounders.sqlite -v \
churchilllab/qtl2rest
The following API Endpoints will be available:
- Get information about the files loaded and what elements they contain
- Get all the markers or markers for a chromosome
- Get information about the datasets loaded
- Get statistic information about the datasets loaded
- Get a ranking of gene annotations. For use with SNP association.
- See if the id exists in the viewer or dataset if dataset is supplied.
- Get LOD peaks for the specified dataset.
- Perform a LOD scan on the id in the dataset. An optional interactive covariate can be specified (covar).
- Perform a LOD scan on the id in the dataset for a specific chromosome. An interactive covariate must be specified (covar). This will group samples by the covar and return a LOD scan for each unique covar value.
- Get the expression data for the id in the dataset.
- Perform a SNP association mapping for the specified id, dataset, chromsome, location, and windowSize.
- Perform a mediation scan for the specified id, dataset, and markerID. If dataset_mediate is specified, the mediation will be against that dataset.
- Get the Founder coefficient data or the specified id, dataset, and markerID. If covar is specified, that interactive covariate will be used.
- Perform a correlation scan for the specified id in dataset. If dataset_correlate is specified, the correlation will be against that dataset. If covar is specified, that interactive covariate will be used.
/correlationplot?dataset={dataSet}&id={id}&dataset_correlate={dataset_correlate}&id_correlate={id_correlate}&intcovar={covar}
- Perform a correlation scan for the specified id in dataset against the specified id_correlate in dataset_correlate. If covar is specified, that interactive covariate will be used. This is mainly for seeing how the two ids look when plotted.