From 3e37a0775b6296a883cbb371da12eaff886f32ed Mon Sep 17 00:00:00 2001 From: "Matthijs S. Berends" Date: Fri, 15 Mar 2019 19:58:41 +0100 Subject: [PATCH] ci --- .gitlab-ci.yml | 7 +------ docs/reference/as.mo.html | 3 ++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f9ca9a7..d014af19 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -84,12 +84,7 @@ coverage: script: - apt-get install --yes git # codecov token is set in https://gitlab.com/msberends/AMR/settings/ci_cd - - Rscript -e 'print("${codecov_token}")' - - Rscript -e 'print("$codecov_token")' - - Rscript -e 'print("$${codecov_token}")' - - Rscript -e 'print("$$codecov_token")' - - echo $codecov_token - - Rscript -e 'cc <- covr::package_coverage(); covr::codecov(coverage = cc, token = "$$codecov_token"); cat("Code coverage:", covr::percent_coverage(cc))' + - Rscript -e "cc <- covr::package_coverage(); covr::codecov(coverage = cc, token = '$codecov'); cat('Code coverage:', covr::percent_coverage(cc))" coverage: '/Code coverage: \d+\.\d+/' pages: diff --git a/docs/reference/as.mo.html b/docs/reference/as.mo.html index a58be801..547eebbb 100644 --- a/docs/reference/as.mo.html +++ b/docs/reference/as.mo.html @@ -308,7 +308,8 @@ A microbial ID from this package (class: mo) typically looks like t

Values that cannot be coered will be considered 'unknown' and have an MO code UNKNOWN.

Use the mo_property_* functions to get properties based on the returned code, see Examples.

-

All IDs that are found with zero uncertainty are saved to a local file ("~/.Rhistory_mo") to improve speed for every next time. Use clean_mo_history() to delete this file, which resets the algorithms. Only previous results will be used from this version of the AMR package, since the taxonomic tree may change in the future for any organism.

+

Self-learning algoritm
+The as.mo() function gains experience from previously determined microbial IDs and learns from it. This drastically improves both speed and reliability. Use clean_mo_history() to reset the algorithms. Only experience from your current AMR package version is used. This is done because in the future the taxonomic tree (which is included in this package) may change for any organism and it consequently has to rebuild its knowledge. Usually, any guess after the first try runs 90-95% faster than the first try. The algorithm saves its previous findings to ~/.Rhistory_mo.

Intelligent rules
This function uses intelligent rules to help getting fast and logical results. It tries to find matches in this order: