Man pages for epi-sam/SamsElves
Helper functions for the data science at IHME

aggregate_from_children_to_parentsAggregate from children to parents using a hierarchy
apply_comma_string_to_listConvert atomic list elements to comma strings
assert_git_diffStop progress if user has uncommitted changes
assert_git_hashAssert that daughter scripts share a common code state with...
assert_list_elements_and_typesAssert that a list contains all the element from a _named_...
assert_named_listAssert that an object is a list, and that all top level items...
assert_no_naAssert no NA values in select columns
assert_no_null_argumentsAssert function arguments are not null.
assert_scalarEnsure an element is atomic and length 1
assert_squareAssert a data.table is square by id_varnames
assert_x_in_yAssert all elements of x are in y
break_for_failed_jobsHelper function for wait_on_slurm_job_id - how do you want...
build_metadata_shellBuild metadata from a template
children_of_parentsGet child locations given parent IDs from IHME hierarchies
comma_string_to_vecConvert a comma-separated string to a vector
datetime_stampCurrent Date-Time Stamp
extract_command_stringSearch a cluster submitted command string for some pattern
extract_coresExtract number of interactive user cores
extract_script_pathExtract the path to the current script
extract_sessionInfoExtract key pieces of session info to avoid metadata bloat
extract_submission_commandsFind a string in a user's recent Slurm squeue
find_file_extensionFind the file extension from a full path
get_latest_output_date_indexget the latest index for given an output dir and a date
get_latest_output_dirFind the latest output directory with format YYYY_MM_DD.VV
get_new_output_dirIncrement a new output folder date-version
get_new_output_dvIncrement a new output folder date-version
increment_file_versionIf a file exists, get a new path with 'v1', 'v2', etc....
is_child_of_parentHelper function for children_of_parents.
is_cli_nullCheck if an element would be empty when passed as a CLI...
is_emptyCheck that a vector/element is not empty
is_sequential_int_vecAre all elements of a vector contiguous integers?
job_finderFind cluster jobs for a user
make_directoryConvenience 'dir.create' wrapper with desired defaults
make_new_output_dirMake a date-versioned output directory for output results.
make_versioned_dirGet output directory for results to save in
msg_multilinePrint a message with multiple lines
msg_prtControl how user-defined messages submit to std_err or...
parent_of_childparent_of_child
parents_of_childrenparents_of_children
parse_all_named_cli_argsParse command-line arguments to global environment
prep_windows_path_for_unixConvert windows file paths
prt_multilinePaste data.frame output for a message
query_git_diffRecord uncommitted git changes
read_fileRead a file of an arbitrary type
save_fileSave file I/O with overwrite and message control
submit_jobSubmit a script as a job to the Slurm cluster
validate_children_of_parents_inputsHelper function for children_of_parents.
validate_parents_of_children_inputsHelper function to validate inputs to function
vec_to_comma_stringConvert a vector to a comma-separated string
wait_on_jobsGiven string pattern matching job name, wait while jobs are...
wait_on_slurm_job_idWait for a Slurm job to finish (find 'RUNNING|PENDING' State...
epi-sam/SamsElves documentation built on June 12, 2025, 7 a.m.