Skip to content

Commit

Permalink
ensuring we dont strip annotated strings in tibanna
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsochat@stanford.edu>
  • Loading branch information
vsoch committed Dec 22, 2020
1 parent f25eaa5 commit e46e223
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions snakemake/executors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from snakemake.logging import logger
from snakemake.stats import Stats
from snakemake.utils import format, Unformattable, makedirs
from snakemake.io import get_wildcard_names, Wildcards
from snakemake.io import get_wildcard_names, Wildcards, AnnotatedString
from snakemake.exceptions import print_exception, get_exception_origin
from snakemake.exceptions import format_error, RuleException, log_verbose_traceback
from snakemake.exceptions import (
Expand Down Expand Up @@ -2019,14 +2019,15 @@ def add_workflow_files(self, job, tibanna_args):
tibanna_args.snakemake_child_filenames = list(set(snakemake_child_fnames))

def adjust_filepath(self, f):
if not hasattr(f, "remote_object"):
rel = self.remove_prefix(f) # log/benchmark
elif (
rel = f
if not hasattr(f, "remote_object") or (
hasattr(f.remote_object, "provider") and f.remote_object.provider.is_default
):
rel = self.remove_prefix(f)
else:
rel = f
rel = AnnotatedString(self.remove_prefix(f)) # log/benchmark

# Update with previous flags in case of AnnotatedString #596, #815
if hasattr(f, "flags"):
rel.flags.update(f.flags)
return rel

def make_tibanna_input(self, job):
Expand Down

0 comments on commit e46e223

Please sign in to comment.