Skip to content

Commit

Permalink
Bug fix for qvalue 'lambda' input
Browse files Browse the repository at this point in the history
  • Loading branch information
francois-a committed Aug 18, 2017
1 parent a643c07 commit fd21f3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/merge_chunks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def cd(cd_path):
parser.add_argument('prefix', help='Prefix for output file name')
parser.add_argument('--permute', action='store_true')
parser.add_argument('--fdr', default=0.05, type=np.double)
parser.add_argument('--lambda', default=None, help='lambda parameter for pi0est in qvalue.')
parser.add_argument('--lambda_qvalue', default=None, help='lambda parameter for pi0est in qvalue.')
parser.add_argument('-o', '--output_dir', default='.', help='Output directory')
args = parser.parse_args()
fastqtl_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
Expand All @@ -43,8 +43,8 @@ def cd(cd_path):
print('Calculating q-values', flush=True)
cmd = 'Rscript '+os.path.join(fastqtl_dir, 'R', 'calculateSignificanceFastQTL.R')\
+' '+args.prefix+'.txt.gz '+str(args.fdr)+' '+args.prefix+'.egenes.txt.gz'
if args.lambda is not None:
cmd += ' --lambda '+args.lambda
if args.lambda_qvalue is not None:
cmd += ' --lambda '+args.lambda_qvalue
subprocess.check_call(cmd, shell=True, executable='/bin/bash')
os.remove(args.prefix+'.txt.gz')
else:
Expand Down

0 comments on commit fd21f3c

Please sign in to comment.