sokrypton / sokrypton/ColabFold
Batch input_dir result_dir
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
I have successfully mounted my google drive and the batch ColaFold states using the Alphafold2 batch notebook at https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/batch/AlphaFold2_batch.ipynb
#@title Mount google drive
from google.colab import drive
drive.mount('/content/drive')
Mounted at /content/drive
Subsequently I tried to specify the input_dir and results_dir through
input_dir:
/content/drive/MyDrive/input_fasta
result_dir:
/content/drive/MyDrive/result
Followed by successful "Install dependencies"
and "Run Prediction"
Current Behavior
For "Run Prediction" I get an error message
OSError Traceback (most recent call last)
in ()
13
14 setup_logging(Path(result_dir).joinpath("log.txt"))
---> 15 queries, is_complex = get_queries(input_dir)
16 run(
17 queries=queries,
/usr/local/lib/python3.7/dist-packages/colabfold/batch.py in get_queries(input_path, sort_queries_by)
389 input_path = Path(input_path)
390 if not input_path.exists():
--> 391 raise OSError(f"{input_path} could not be found")
392
393 if input_path.is_file():
OSError: /content/drive/MyDrive/input_fasta could not be found
I am using a Mac book and my Google drive is mounted at /Users/name/Google Drive/My Drive
This directory contains the two directories "input_fasta" and "result".
Steps to Reproduce (for bugs)
I am using https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/batch/AlphaFold2_batch.ipynb
ColabFold Output (for bugs)
See above
Context
So I guess I have to specify the input_dir and result_dir in a different manner. Any help would be appreciated.
Your Environment
macOS High Sierra
Version 10.13.6
MacBook Pro
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with batch/AlphaFold2_batch.ipynb and the get_queries entry point in colabfold/batch.py. Reproduce the Run Prediction step after mounting Google Drive and inspect how input_dir and result_dir are passed. Done means the notebook can locate the input_fasta directory and complete prediction output in the requested result directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python
- Domain
- bioinformatics, cloud, machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100