This commit is contained in:
dr. M.S. (Matthijs) Berends 2019-03-15 19:58:41 +01:00
parent e18a1f1f17
commit 3e37a0775b
2 changed files with 3 additions and 7 deletions

View File

@ -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:

View File

@ -308,7 +308,8 @@ A microbial ID from this package (class: <code>mo</code>) typically looks like t
</pre>
<p>Values that cannot be coered will be considered 'unknown' and have an MO code <code>UNKNOWN</code>.</p>
<p>Use the <code><a href='mo_property.html'>mo_property</a>_*</code> functions to get properties based on the returned code, see Examples.</p>
<p>All IDs that are found with zero uncertainty are saved to a local file (<code>"~/.Rhistory_mo"</code>) to improve speed for every next time. Use <code>clean_mo_history()</code> to delete this file, which resets the algorithms. Only previous results will be used from this version of the <code>AMR</code> package, since the taxonomic tree may change in the future for any organism.</p>
<p><strong>Self-learning algoritm</strong> <br />
The <code>as.mo()</code> function gains experience from previously determined microbial IDs and learns from it. This drastically improves both speed and reliability. Use <code>clean_mo_history()</code> to reset the algorithms. Only experience from your current <code>AMR</code> 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 <code>~/.Rhistory_mo</code>.</p>
<p><strong>Intelligent rules</strong> <br />
This function uses intelligent rules to help getting fast and logical results. It tries to find matches in this order:</p><ul>
<li><p>Valid MO codes and full names: it first searches in already valid MO code and known genus/species combinations</p></li>