Skip to content

Commit ac4ade3

Browse files
committed
tiny fix
1 parent 7719f55 commit ac4ade3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/stats_wrapper.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@
1010
'tag',
1111
help="Variant tag parameter used to run RegTools.",
1212
)
13+
input_parser.add_argument(
14+
'cohort_directory',
15+
help="Path to directory containing cohort files.",
16+
)
1317

1418
args = input_parser.parse_args()
1519

1620
tag = args.tag
21+
cohort_dir = args.cohort_directory
1722

1823
lines_per_file = 50000
1924
smallfile = None
@@ -30,7 +35,7 @@
3035
#get chunks
3136
files = glob.glob('small_file_*')
3237
for file in files:
33-
subprocess.run(f'Rscript --vanilla /home/ec2-user/workspace/regtools/scripts/compare_junctions_hist_v2.R {tag} {file}')
38+
subprocess.run(f'Rscript --vanilla /home/ec2-user/workspace/regtools/scripts/compare_junctions_hist_v2.R {tag} {cohort_dir}/{file}')
3439
output_files = glob.glob("*_out.tsv")
3540
output_files.sort() # glob lacks reliable ordering, so impose your own if output order matters
3641
with open(f'junction_pvalues_{tag}.tsv', 'wb') as outfile:

0 commit comments

Comments
 (0)