Skip to content

Commit

Permalink
include functionality to call compare method from main script by usin…
Browse files Browse the repository at this point in the history
…g compare subcommand
  • Loading branch information
ashuaibi7 committed Jan 6, 2025
1 parent 108af34 commit de48bcf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dialect/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
generate_bmr_and_counts,
identify_pairwise_interactions,
read_cbase_results_file,
run_comparison_methods,
)


Expand Down Expand Up @@ -34,6 +35,15 @@ def main():
cbase_stats=cbase_stats,
)

elif args.command == "compare":
os.makedirs(args.out, exist_ok=True)
run_comparison_methods(
cnt_mtx=args.cnt,
bmr_pmfs=args.bmr,
out=args.out,
k=args.top_k,
)


if __name__ == "__main__":
main()

0 comments on commit de48bcf

Please sign in to comment.