-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Easy command line interface with MSA server flag (#190)
Co-authored-by: Jack Dent <[email protected]>
- Loading branch information
Showing
11 changed files
with
143 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright (c) 2024 Chai Discovery, Inc. | ||
# Licensed under the Apache License, Version 2.0. | ||
# See the LICENSE file for details. | ||
|
||
"""Command line interface.""" | ||
|
||
import logging | ||
|
||
import typer | ||
|
||
from chai_lab.chai1 import run_inference | ||
|
||
CITATION = """ | ||
@article{Chai-1-Technical-Report, | ||
title = {Chai-1: Decoding the molecular interactions of life}, | ||
author = {{Chai Discovery}}, | ||
year = 2024, | ||
journal = {bioRxiv}, | ||
publisher = {Cold Spring Harbor Laboratory}, | ||
doi = {10.1101/2024.10.10.615955}, | ||
url = {https://www.biorxiv.org/content/early/2024/10/11/2024.10.10.615955}, | ||
elocation-id = {2024.10.10.615955}, | ||
eprint = {https://www.biorxiv.org/content/early/2024/10/11/2024.10.10.615955.full.pdf} | ||
} | ||
""".strip() | ||
|
||
|
||
def citation(): | ||
"""Print citation information""" | ||
typer.echo(CITATION) | ||
|
||
|
||
def cli(): | ||
app = typer.Typer() | ||
app.command("fold", help="Run Chai-1 to fold a complex.")(run_inference) | ||
app.command("citation", help="Print citation information")(citation) | ||
app() | ||
|
||
|
||
if __name__ == "__main__": | ||
logging.basicConfig(level=logging.INFO) | ||
cli() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters