Skip to content

Commit

Permalink
Allow bias qc to take auxiliary & 'evaluation' dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
bytewife committed Dec 9, 2023
1 parent c4b6688 commit 8af7e6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chrombpnet/CHROMBPNET.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def main():
pipelines.train_bias_pipeline(args)

elif args.cmd_bias == "qc":
os.makedirs(os.path.join(args.output_dir,"auxiliary"), exist_ok=False)
os.makedirs(os.path.join(args.output_dir,"evaluation"), exist_ok=False)
os.makedirs(os.path.join(args.output_dir,"auxiliary"), exist_ok=True)
os.makedirs(os.path.join(args.output_dir,"evaluation"), exist_ok=True)

pipelines.bias_model_qc(args)

Expand Down
2 changes: 1 addition & 1 deletion chrombpnet/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def load_model_wrapper(model_hdf5):
else:
sub_peaks = peaks
sub_peaks.to_csv(os.path.join(args_copy.output_dir,"auxiliary/{}30K_subsample_peaks.bed".format(fpx)),sep="\t", header=False, index=False)
os.makedirs(os.path.join(args.output_dir,"auxiliary/interpret_subsample/"), exist_ok=False)
os.makedirs(os.path.join(args.output_dir,"auxiliary/interpret_subsample/"), exist_ok=True)

args_copy = copy.deepcopy(args)
args_copy.profile_or_counts = ["counts", "profile"]
Expand Down

0 comments on commit 8af7e6c

Please sign in to comment.