Last updated: 2022-05-02
Checks: 7 0
Knit directory: misc/
This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.
Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.
The command set.seed(20191122)
was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.
Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version 759118c. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish
or wflow_git_commit
). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
Ignored files:
Ignored: .DS_Store
Ignored: .Rhistory
Ignored: .Rproj.user/
Ignored: data/.DS_Store
Untracked files:
Untracked: analysis/EM_var.md
Untracked: data/ROTS_results.RData
Untracked: data/ROTS_results2.RData
Untracked: data/cate_cate_high.RData
Untracked: data/cate_cate_low.RData
Untracked: data/cate_cate_mid.RData
Untracked: data/cate_cate_null.RData
Untracked: data/mout_low.RData
Untracked: data/mout_mid.RData
Untracked: data/mout_null.RData
Untracked: data/nonUMI_simu1.RData
Untracked: data/pbmc.rds
Untracked: data/pbmc3k_filtered_gene_bc_matrices/
Untracked: data/pbmc_counts.rds
Untracked: data/prices.csv
Untracked: data/scCD14.RData
Untracked: data/scCD4.RData
Untracked: data/scCD8.RData
Untracked: data/scMB.RData
Untracked: data/sva_sva_low.RData
Untracked: data/sva_sva_mid.RData
Untracked: data/sva_sva_null.RData
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were made to the R Markdown (analysis/rfast.Rmd
) and HTML (docs/rfast.html
) files. If you’ve configured a remote Git repository (see ?wflow_git_remote
), click on the hyperlinks in the table below to view the files as they were in that past version.
File | Version | Author | Date | Message |
---|---|---|---|---|
Rmd | 759118c | Dongyue Xie | 2022-05-02 | wflow_publish("analysis/rfast.Rmd") |
See how different between Rfast and Rfast2, and base R function are.
library(microbenchmark)
# thin matrix
X = matrix(rnorm(1e6),1e4,1e2)
microbenchmark(Rfast::rowsums(X),rowSums(X))
Unit: microseconds
expr min lq mean median uq max
Rfast::rowsums(X) 492.842 568.163 1016.973 657.9595 753.9355 33422.959
rowSums(X) 1731.701 1896.515 2103.327 2019.7810 2225.8935 4852.808
neval
100
100
microbenchmark(Rfast::colsums(X),colSums(X))
Unit: microseconds
expr min lq mean median uq max neval
Rfast::colsums(X) 621.982 642.4925 693.1849 656.4995 719.297 962.837 100
colSums(X) 909.520 940.0580 1020.4313 960.8975 1062.206 1365.265 100
microbenchmark(Rfast::transpose(X),t(X))
Unit: milliseconds
expr min lq mean median uq max
Rfast::transpose(X) 3.903620 4.302876 7.354548 5.047797 7.801298 100.16862
t(X) 2.368821 2.610434 4.316083 3.046993 6.351907 11.79906
neval
100
100
X = t(X)
microbenchmark(Rfast::rowsums(X),rowSums(X))
Unit: microseconds
expr min lq mean median uq max neval
Rfast::rowsums(X) 384.253 424.6235 553.113 465.911 608.867 1494.452 100
rowSums(X) 1628.366 1920.0070 2077.909 2003.157 2170.177 3040.794 100
microbenchmark(Rfast::colsums(X),colSums(X))
Unit: microseconds
expr min lq mean median uq max neval
Rfast::colsums(X) 521.016 529.2300 575.1950 542.8420 595.1970 1172.561 100
colSums(X) 628.372 640.8775 691.0892 654.9365 708.4335 1039.336 100
# roo slow
#microbenchmark(Rfast::transpose(X),t(X))
x <- matrnorm(100, 100)
y <- matrnorm(100, 100)
microbenchmark(Rfast::Tcrossprod(x,y),tcrossprod(x,y))
sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur/Monterey 10.16
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] microbenchmark_1.4.9 workflowr_1.7.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.8.3 bslib_0.3.1 compiler_4.2.0 pillar_1.7.0
[5] later_1.3.0 git2r_0.30.1 jquerylib_0.1.4 tools_4.2.0
[9] getPass_0.2-2 digest_0.6.29 jsonlite_1.8.0 evaluate_0.15
[13] tibble_3.1.6 lifecycle_1.0.1 pkgconfig_2.0.3 rlang_1.0.2
[17] cli_3.3.0 rstudioapi_0.13 parallel_4.2.0 yaml_2.3.5
[21] xfun_0.30 fastmap_1.1.0 httr_1.4.2 stringr_1.4.0
[25] knitr_1.38 sass_0.4.1 fs_1.5.2 vctrs_0.4.1
[29] RcppZiggurat_0.1.6 Rfast_2.0.6 rprojroot_2.0.3 glue_1.6.2
[33] R6_2.5.1 processx_3.5.3 fansi_1.0.3 rmarkdown_2.13
[37] callr_3.7.0 magrittr_2.0.3 whisker_0.4 ps_1.7.0
[41] promises_1.2.0.1 htmltools_0.5.2 ellipsis_0.3.2 httpuv_1.6.5
[45] utf8_1.2.2 stringi_1.7.6 crayon_1.5.1