Tests and vignettes need an empty ElasticSearch (ES) instance to really test the core KibioR methods (e.g. push, pull, search). They can be conducted throught an ES instance run via Docker to easily select multiple versions. Unfortunately, interactive build has been removed since each build should test them on the spot (with the current machine they are tested on).
When linked to ES, you can run the full test suite and compile the interactive vignettes. Follow the rest of the file to make it happen.
After downloading the project sources, you can find all that is needed inside the "doc_env" folder:
An empty and accessible ES running instance. You can download the project from ES website or run a single instance via Docker. See the fixed vignette, section Deploying an Elasticsearch instance to set one with Docker.
The Github version of the project. The packaged version has not some scripts that automatically load environment variables and prepare for tests. The scripts required are: inst/doc_env/kibior_build.R
and inst/doc_env/tests_suite/helper.R
.
KibioR
source from Github.curl -XGET "<ES_ADDRESS>:<ES_PORT>"
"You Know, For Search"
KIBIOR_BUILD_ES_ENDPOINT="elasticsearch"
for ES address (no default)KIBIOR_BUILD_ES_PORT=9200
for ES port (default, 9200)KIBIOR_BUILD_ES_USERNAME
for ES username (default, unused if not set)KIBIOR_BUILD_ES_PASSWORD
for ES password (default, unused if not set).Renviron
in the project root (one line for each).curl -XGET "KIBIOR_BUILD_ES_ENDPOINT:KIBIOR_BUILD_ES_PORT"
curl -u KIBIOR_BUILD_ES_USERNAME:KIBIOR_BUILD_ES_PASSWORD -XGET "KIBIOR_BUILD_ES_ENDPOINT:KIBIOR_BUILD_ES_PORT"
R CMD build kibior
.kibior_<VERSION>.tar.gz
) to find the "introduction.nb.html"Be warned that there are lots of tests (> 1500), a 1/3 are pushing/pulling data which takes time. My laptop is running all tests on a Dell inspiron core i5-8250U CPU @ 1.60GHz, 4c/8t. It takes about 45min to run all tests, but can easily take more than an hour to run on older CPUs. You can regulate the number of tests by modifying the calls inside the "tests/testthat.R" file.
R CMD build kibior
, then R CMD check kibior_<VERSION>.tar.gz
.devtools
to run tests: devtools::test()
.test.bam.bai
file generated withsamtools view -h ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase1/data/HG00154/alignment/HG00154.mapped.ILLUMINA.bwa.GBR.low_coverage.20101123.bam 17:7512445-7513455 -O bam > test.bam.bai
cpg.bed
file downloaded fromhttps://s3.amazonaws.com/bedtools-tutorials/web/cpg.bed
chr_y.gff3.gz
file downloaded fromftp://ftp.ensembl.org/pub/release-99/gff3/homo_sapiens/Homo_sapiens.GRCh38.99.chromosome.Y.gff3.gz
dna_human_y.fa.gz
dna file downloaded and subsetted from ftp://ftp.ensembl.org/pub/release-99/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna_rm.chromosome.Y.fa.gz
ncrna_mus_musculus.fa.gz
rna file downloaded and subsetted from ftp://ftp.ensembl.org/pub/release-99/fasta/mus_musculus/ncrna/Mus_musculus.GRCm38.ncrna.fa.gz
pep_mus_spretus.fa.gz
aa file downloaded and subsetted from ftp://ftp.ensembl.org/pub/release-99/fasta/mus_spretus/pep/Mus_spretus.SPRET_EiJ_v1.pep.all.fa.gz
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.