Skip to contents

Package overview

thisutils thisutils-package
Reliable Utilities for Reusable Research Workflows
thisutils_logo()
The logo of thisutils
print(<thisutils_logo>)
Print logo

Controlled execution

parallelize_fun()
Parallelize a function
get_verbose()
Get the verbose option
log_message()
Print formatted message
parse_inline_expressions()
Parse inline expressions

Sparse matrix semantics

as_matrix()
Convert matrix into dense/sparse matrix
check_sparsity()
Check sparsity of matrix
collapse_sparse_rows()
Collapse sparse matrix rows by group
fast_row_vars()
Compute row variances
filter_nonzero_variance_features()
Keep matrix rows with nonzero variance
matrix_to_table()
Switch matrix to table
pearson_correlation()
Correlation and covariance calculation for sparse matrix
run_dense_topk()
Dense matrix top-k selection
run_sparse_topk()
Sparse matrix top-k selection
run_sparse_topk_stored()
Stored sparse entries top-k selection
sparse_cor()
Resource-controlled sparse correlation
table_to_matrix()
Switch table to matrix

Compatibility interfaces

run_sparse_topk_by_column()
Compatibility wrapper for column-wise sparse top-k selection
run_sparse_stored_topk_by_column()
Compatibility wrapper for stored column-wise sparse top-k selection

Neighborhood and evaluation metrics

classification_metrics_compute()
Compute classification metrics
compute_lisi()
Compute Local Inverse Simpson's Index (LISI)
run_biocneighbors_knn()
Find nearest neighbors with BiocNeighbors

Research-package interoperability

add_pkg_file()
Add a package file and print package information
check_pkg_status()
Check if a package is installed with the specified version
check_r()
Check and install R packages
get_namespace_fun()
Get a function from a namespace
invoke_fun()
Invoke a function with a list of arguments
remove_r()
Check and remove R packages

Additional statistical and utility helpers

`%ss%`
Value selection operator
capitalize()
Capitalize the first letter of each word
check_ci_env()
Check CI environment
download()
Download file from the Internet
is_outlier()
Detect outliers using MAD (Median Absolute Deviation)
is_apple_silicon()
Check if the system is running on Apple Silicon
is_linux()
Check if the operating system is Linux
is_osx()
Check if the operating system is macOS
is_windows()
Check if the operating system is Windows
matrix_process()
Process matrix
max_depth()
Maximum depth of a list
maximump()
Maximum P-value
meanp()
Mean P-value
minimump()
Minimum P-value
normalization()
Normalize numeric vector
r_square()
Coefficient of determination (\(R^2\))
remove_space()
Remove and normalize spaces
split_indices()
Split indices.
simulate_sparse_matrix()
Generate a simulated sparse matrix
sump()
Sum P-value
try_get()
Try to evaluate an expression a set number of times before failing
unnest_fun()
Unnest a list-column
votep()
Vote P-value
wilkinsonp()
Wilkinson's P-value

Presentation helpers

figlet()
The figlet function
figlet_font()
Get a figlet font