Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foldseek #112

Merged
merged 3 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions proteinflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ def split_data(
random_seed=42,
exclude_chains_without_ligands=False,
tanimoto_clustering=False,
foldseek=False,
):
"""Split `proteinflow` entry files into training, test and validation.

Expand Down Expand Up @@ -496,6 +497,8 @@ def split_data(
if `True`, exclude biounits that don't contain ligands
tanimoto_clustering: bool, default False
cluster chains based on the tanimoto similarity of their ligands
foldseek: bool, default False
if `True`, use FoldSeek to cluster chains based on their structure similarity

Returns
-------
Expand Down Expand Up @@ -545,6 +548,7 @@ def split_data(
out_split_dict_folder=out_split_dict_folder,
min_seq_id=min_seq_id,
tanimoto_clustering=tanimoto_clustering,
foldseek=foldseek,
)
shutil.rmtree(temp_folder)

Expand Down
5 changes: 5 additions & 0 deletions proteinflow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ def generate(**kwargs):
is_flag=True,
help="Whether to use Tanimoto Clustering instead of MMSeqs2. Only works if the dataset contains ligands",
)
@click.option(
"--foldseek",
is_flag=True,
help="Whether to use FoldSeek to cluster the dataset",
)
@click.option(
"--random_seed",
default=42,
Expand Down
Loading