-
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.
Add CLI option to set colabfold server url (#199)
* Add CLI option to set colabfold server * Update README.md Co-authored-by: Jack Dent <[email protected]> * Update chai_lab/chai1.py Co-authored-by: Jack Dent <[email protected]> * Update chai_lab/chai1.py Co-authored-by: Jack Dent <[email protected]> * Update chai_lab/data/dataset/msas/colabfold.py Co-authored-by: Jack Dent <[email protected]> * Update chai_lab/data/dataset/msas/colabfold.py Co-authored-by: Jack Dent <[email protected]> * Update README.md Co-authored-by: Jack Dent <[email protected]> --------- Co-authored-by: Jack Dent <[email protected]>
- Loading branch information
Showing
4 changed files
with
23 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -341,7 +341,11 @@ def download(ID, path): | |
return (a3m_lines, template_paths) if use_templates else a3m_lines | ||
|
||
|
||
def generate_colabfold_msas(protein_seqs: list[str], msa_dir: Path): | ||
def generate_colabfold_msas( | ||
protein_seqs: list[str], | ||
msa_dir: Path, | ||
msa_server_url: str, | ||
): | ||
""" | ||
Generate MSAs using the ColabFold (https://github.com/sokrypton/ColabFold) | ||
server. | ||
|
@@ -374,6 +378,7 @@ def generate_colabfold_msas(protein_seqs: list[str], msa_dir: Path): | |
mmseqs_dir, | ||
# N.B. we can set this to False to disable pairing | ||
use_pairing=len(protein_seqs) > 1, | ||
host_url=msa_server_url, | ||
user_agent="chai-lab/0.4.0 [email protected]", | ||
) | ||
assert isinstance(msas, list) | ||
|
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