sokrypton / sokrypton/ColabFold

IndentationError in colabfold.plot (plot_msa_v2)

Open Beginner friendly
#822 2 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

Hi ColabFold team,

I encountered an IndentationError when running ColabFold locally. The traceback is as follows:

Traceback (most recent call last):

File ".../IPython/core/interactiveshell.py", line 3579, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

File ".../colab_fold_runner.py", line 187, in colab_fold_runner
results = run(

File ".../colabfold/batch.py", line 1490, in run
from colabfold.plot import plot_msa_v2

File ".../colabfold/plot.py", line 10
plt.figure(figsize=(3 * num_models, 2), dpi=100)
^
IndentationError: unexpected indent

It seems that there is an unexpected indentation in colabfold/plot.py at the line where plt.figure() is called.
Thanks for looking into this!

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 with colabfold/plot.py at line 10, reached through the import in colabfold/batch.py line 1490. Run the reported local import or a minimal reproduction to confirm the syntax error. Done means plot_msa_v2 imports without an IndentationError and the existing plotting path can proceed.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, python
Domain
bioinformatics, data-visualization
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.