Skip to content

Commit dcb8465

Browse files
committed
tiny fix
1 parent 6a629a2 commit dcb8465

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/stats_wrapper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
args = input_parser.parse_args()
1515

1616
tag = args.tag
17+
cwd = os.getcwd()
1718

1819
lines_per_file = 50000
1920
smallfile = None
@@ -30,7 +31,7 @@
3031
#get chunks
3132
files = glob.glob('small_file_*')
3233
for file in files:
33-
subprocess.run(f'Rscript --vanilla /home/ec2-user/workspace/regtools/scripts/compare_junctions_hist_v2.R {tag} {file}')
34+
subprocess.run(f'Rscript --vanilla /home/ec2-user/workspace/regtools/scripts/compare_junctions_hist_v2.R {tag} {cwd}/{file}')
3435
output_files = glob.glob("*_out.tsv")
3536
output_files.sort() # glob lacks reliable ordering, so impose your own if output order matters
3637
with open(f'junction_pvalues_{tag}.tsv', 'wb') as outfile:

0 commit comments

Comments
 (0)