Source code for snakemake.ioflags
from snakemake.io import flag, is_flagged
[docs]
def update(value):
"""
A flag for an output file that shall be updated instead of overwritten.
"""
return flag(value, "update")
[docs]
def before_update(value):
"""
Flag an input file to be used as is in storage/on-disk before being updated
in a later rule.
This flag leads to the input file being considered as not being created by any other
job.
"""
return flag(value, "before_update")
[docs]
def register_in_globals(_globals):
_globals.update(
{
"update": update,
"before_update": before_update,
}
)