log_jobid: From a SGE log file, find the SGE job ID

View source: R/log_jobid.R

log_jobidR Documentation

From a SGE log file, find the SGE job ID

Description

This function searches a log file, such as those created with job_single(), for SGE job identifier.

Usage

log_jobid(log_file, jobid_header = "Job id:")

Arguments

log_file

The path to a SGE log file.

jobid_header

A character(1) vector with the line header that specifies the SGE ID.

Value

A character(1) vector with the job id (first one found in the log file).

Author(s)

Leonardo Collado-Torres

See Also

log_date()

Examples


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

## Find the job id
log_jobid(bsp2_log)

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

## Id for the second example
log_jobid(twas_gene_HIPPO)


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