File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 10
10
'tag' ,
11
11
help = "Variant tag parameter used to run RegTools." ,
12
12
)
13
- input_parser .add_argument (
14
- 'cohort_directory' ,
15
- help = "Path to directory containing cohort files." ,
16
- )
17
13
18
14
args = input_parser .parse_args ()
19
15
20
16
tag = args .tag
21
- cohort_dir = args .cohort_directory
22
17
23
18
lines_per_file = 50000
24
19
smallfile = None
35
30
#get chunks
36
31
files = glob .glob ('small_file_*' )
37
32
for file in files :
38
- subprocess .run (f'Rscript --vanilla /home/ec2-user/workspace/regtools/scripts/compare_junctions_hist_v2.R { tag } { cohort_dir } / { file } ' )
33
+ subprocess .run (f'Rscript --vanilla /home/ec2-user/workspace/regtools/scripts/compare_junctions_hist_v2.R { tag } { file } ' )
39
34
output_files = glob .glob ("*_out.tsv" )
40
35
output_files .sort () # glob lacks reliable ordering, so impose your own if output order matters
41
36
with open (f'junction_pvalues_{ tag } .tsv' , 'wb' ) as outfile :
You can’t perform that action at this time.
0 commit comments