Skip to content

Commit

Permalink
xorg-x11-server-Xvfb-1.17.4-16.sl6.x86_64 deprecates xvfb-run -a in …
Browse files Browse the repository at this point in the history
…favour of xvfb-run -d
  • Loading branch information
sebastian-luna-valero committed May 24, 2018
1 parent 49be480 commit 499f2fe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CGATPipelines/Report.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def run_report(clean=True,
# from R plots.
xvfb_command = IOTools.which("xvfb-run")

# permit multiple servers using -a option
# permit multiple servers using -d option
if xvfb_command:
xvfb_command += " -a "
xvfb_command += " -d "
else:
xvfb_command = ""

Expand Down
2 changes: 1 addition & 1 deletion CGATPipelines/pipeline_enrichment.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def runGsea(infile, outfile):
resultsdir, output_fn = os.path.split(outfile)

statement = ("cd {resultsdir} && "
"xvfb-run "
"xvfb-run -d "
"cgat runGSEA "
"-f ../{infile} -g {geneset} -m {min_size} -x {max_size} "
"-s {seed} -n {no} -d {p_no} -l {l_no} "
Expand Down
19 changes: 12 additions & 7 deletions CGATPipelines/pipeline_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,13 @@ def run_test(infile, outfile):
#to_cluster = False

template_statement = (
"(cd %%(track)s.dir; "
"cgatflow %%(pipeline_name)s "
"cd %%(track)s.dir; "
"xvfb-run -d cgatflow %%(pipeline_name)s "
"%%(pipeline_options)s "
"%%(workflow_options)s make %s) "
"1> %%(outfile)s "
"2> %%(outfile)s.stderr")
"%%(workflow_options)s make %s "
"-L ../%%(outfile)s "
"-S ../%%(outfile)s.stdout "
"-E ../%%(outfile)s.stderr")

if len(pipeline_targets) == 1:
statement = template_statement % pipeline_targets[0]
Expand Down Expand Up @@ -302,8 +303,12 @@ def run_reports(infile, outfile):
pipeline_name = PARAMS.get("%s_pipeline" % track, track[len("test_"):])

statement = '''
(cd %(track)s.dir; cgatflow %(pipeline_name)s
%(pipeline_options)s %(workflow_options)s make build_report) 1> %(outfile)s 2> %(outfile)s.stderr
cd %(track)s.dir;
xvfb-run -d cgatflow %(pipeline_name)s
%(pipeline_options)s %(workflow_options)s make build_report
-L ../%(outfile)s
-S ../%(outfile)s.stdout
-E ../%(outfile)s.stderr
'''

P.run(statement, ignore_errors=True)
Expand Down

0 comments on commit 499f2fe

Please sign in to comment.