log_date: From a SGE log file, find the SGE start and end times

View source: R/log_date.R

log_dateR Documentation

From a SGE log file, find the SGE start and end times

Description

This function searches a log file, such as those created with job_single(), for the start and end dates for the SGE job. This information can then be used to find the qacct file to retrieve information about the job at hand.

Usage

log_date(log_file, tz = "EST", date_lines = c("Job starts", "Job ends"))

Arguments

log_file

The path to a SGE log file.

tz

Time zone for your SGE cluster. Defaults to EST for JHPCE.

date_lines

A character(2) vector with the start and end text lines used for detecting the start and end times of the job.

Details

Only the first occurrenses of the start and end time line identifiers defined by date_lines will be retrieved.

Value

A vector of length 2 with the start and end times

Author(s)

Leonardo Collado-Torres

See Also

log_jobid()

Examples


## Example log file
bsp2_log <- system.file("extdata", "logs", "delete_bsp2.txt", package = "sgejobs")

## Find start/end dates
log_date(bsp2_log)

## Another example log file
twas_gene_HIPPO <- system.file("extdata", "logs",
    "compute_weights_full_HIPPO_gene.1.txt",
    package = "sgejobs"
)
log_date(twas_gene_HIPPO)


LieberInstitute/sgejobs documentation built on May 12, 2023, 5:20 p.m.