Skip to content

Commit

Permalink
replace hardcoded python with sys.executable
Browse files Browse the repository at this point in the history
  • Loading branch information
phbradley committed May 25, 2020
1 parent 840458e commit 1f5509a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions make_10x_clones_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import parse_tsv
from collections import Counter
from itertools import chain

import sys

def show(tcr):
"For debugging"
Expand Down Expand Up @@ -259,9 +259,10 @@ def make_clones_file( organism, outfile, clonotype2tcrs, clonotype2barcodes ):
out.close()
outmap.close()

python_exe = sys.executable

cmd = 'python {}/file_converter.py --input_format clones --output_format clones --input_file {} --output_file {} --organism {} --clobber --epitope UNK_E --extra_fields {} '\
.format( paths.path_to_scripts, tmpfile, outfile, organism, ' '.join(extra_fields) )
cmd = '{} {}/file_converter.py --input_format clones --output_format clones --input_file {} --output_file {} --organism {} --clobber --epitope UNK_E --extra_fields {} '\
.format( python_exe, paths.path_to_scripts, tmpfile, outfile, organism, ' '.join(extra_fields) )
print cmd
system(cmd)

Expand Down

0 comments on commit 1f5509a

Please sign in to comment.