File: set_path.patch

package info (click to toggle)
fastqtl 2.184%2Bv7%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,420 kB
  • sloc: cpp: 3,102; python: 323; makefile: 82; sh: 19; javascript: 3
file content (26 lines) | stat: -rw-r--r-- 1,307 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 05 Oct 2022 10:30:56 +0200
Description: Fix path to R script

--- a/python/run_FastQTL_threaded.py
+++ b/python/run_FastQTL_threaded.py
@@ -91,7 +91,7 @@ with cd(args.output_dir):
 
         # calculate q-values (R script also adds header)
         print('Calculating q-values', flush=True)
-        cmd = 'Rscript '+os.path.join(fastqtl_dir, 'R', 'calculateSignificanceFastQTL.R')\
+        cmd = 'Rscript '+os.path.join('/usr/share/fastqtl', 'calculateSignificanceFastQTL.R')\
             +' '+args.prefix+'.txt.gz '+str(args.fdr)+' '+args.prefix+'.egenes.txt.gz'
         if args.qvalue_lambda is not None:
             cmd += ' --lambda '+args.qvalue_lambda
--- a/python/merge_chunks.py
+++ b/python/merge_chunks.py
@@ -41,7 +41,7 @@ with cd(args.output_dir):
 
         # calculate q-values (R script also adds header)
         print('Calculating q-values', flush=True)
-        cmd = 'Rscript '+os.path.join(fastqtl_dir, 'R', 'calculateSignificanceFastQTL.R')\
+        cmd = 'Rscript '+os.path.join('/usr/share/fastqtl', 'calculateSignificanceFastQTL.R')\
             +' '+args.prefix+'.txt.gz '+str(args.fdr)+' '+args.prefix+'.egenes.txt.gz'
         if args.lambda_qvalue is not None:
             cmd += ' --lambda '+args.lambda_qvalue