sokrypton / sokrypton/ColabFold

batch.get_queries signature and bug in sorting

Open
#302 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
2.9k
Forks
747
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

  1. Sorting queries by sequence length in batch.get_queries should work for multimers (i.e. should sort by total sequence length, not by number of monomer chains).

  2. The problem arises from multiple types allowed for query_sequence (list for multimers and str for monomers). That is also not correctly specified in the return type of the batch.get_queries function (only str is listed, here).

Current Behavior

Multimers are sorted by number of chains and not by total sequence length, here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in colabfold/batch.py at the get_queries definition around line 596 and the sorting logic around line 669. Inspect how query_sequence represents monomers and multimers, then verify that the return type documents both forms and that sorting uses total sequence length for multimers. Confirm the behavior with the relevant existing query-sorting checks, if present.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.