Skip to content

A minimal working example of using Snakemake log files with R scripts

Notifications You must be signed in to change notification settings

kelly-sovacool/snakemake-Rscript-log-mwe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Snakemake log files with R scripts

A minimal working example.

See script.R for the R code. It checks whether the snakemake rule includes a log directive by checking the length of the log slot of the snakemake S4 object. If the log file path is given, it writes all messages, warnings, etc to the log file. Otherwise, this output is printed to the console like usual.

The Snakefile includes an example rule with a log and without a log file. Both run without errors.

About

A minimal working example of using Snakemake log files with R scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published