Skip to content

Commit e39fd3f

Browse files
authored
Merge pull request #117 from RosettaCommons/codex/msa-cli-docs-public
docs: finish MSA CLI and preprocessing documentation for 3.0
2 parents 81d58eb + bffeb79 commit e39fd3f

8 files changed

Lines changed: 86 additions & 3 deletions

File tree

‎docs/conf.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"sphinx.ext.viewcode", # Add source code links
2828
"sphinx.ext.napoleon", # Google/NumPy style docstrings
2929
"sphinx_gallery.gen_gallery", # Generates auto_examples/ from examples/
30+
"sphinxcontrib.typer",
3031
"myst_parser", # Support Markdown tutorial pages
3132
"sphinx_design", # Render collapsible tutorial code examples
3233
]
@@ -35,7 +36,7 @@
3536
html_favicon = "_static/favicon-32x32.png"
3637

3738
templates_path = ["_templates"]
38-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "examples/GALLERY_HEADER.rst", "ml/preprocessing.rst"]
39+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "examples/GALLERY_HEADER.rst"]
3940
napoleon_use_ivar = True
4041

4142
# -- Options for HTML output -------------------------------------------------

‎docs/docs_requirements.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ ghp-import>=2.0.0,<3
88
pandoc>=2.0.0,<3
99
myst-parser>=5.0.0
1010
sphinx-design>=0.6.0,<1
11+
sphinxcontrib-typer>=0.7.2,<1

‎docs/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ Welcome to **atomworks** — a toolkit for converting, parsing, and manipulating
2727
auto_examples/index
2828
contributor_guide
2929
mirrors
30+
msa

‎docs/ml.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ Data Processing Modules
2525
ml/msa_server
2626
ml/transforms/msa
2727
ml/utils
28+
ml/preprocessing

‎docs/ml/preprocessing.rst‎

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This module contains utilities for preprocessing molecular structures and data.
66
Core Preprocessing Functions
77
----------------------------
88

9-
.. automodule:: atomworks.ml.preprocessing.get_pn_unit_data_from_structure
9+
.. automodule:: atomworks.ml.preprocessing.preprocess
1010
:members:
1111
:undoc-members:
1212
:show-inheritance:
@@ -25,4 +25,43 @@ Utilities
2525
.. automodule:: atomworks.ml.preprocessing.utils
2626
:members:
2727
:undoc-members:
28-
:show-inheritance:
28+
:show-inheritance:
29+
30+
31+
MSA
32+
---
33+
34+
Note that the following functions can be called via the command line. See :doc:`../msa`
35+
for more details.
36+
37+
Finding
38+
^^^^^^^
39+
40+
.. automodule:: atomworks.ml.preprocessing.msa.finding
41+
:members:
42+
:undoc-members:
43+
:show-inheritance:
44+
45+
Filtering
46+
^^^^^^^^^
47+
48+
.. automodule:: atomworks.ml.preprocessing.msa.filtering
49+
:members:
50+
:undoc-members:
51+
:show-inheritance:
52+
53+
Generating
54+
^^^^^^^^^^
55+
56+
.. automodule:: atomworks.ml.preprocessing.msa.generating
57+
:members:
58+
:undoc-members:
59+
:show-inheritance:
60+
61+
Organizing
62+
^^^^^^^^^^
63+
64+
.. automodule:: atomworks.ml.preprocessing.msa.organizing
65+
:members:
66+
:undoc-members:
67+
:show-inheritance:

‎docs/msa.rst‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Multiple Sequence Alignment in AtomWorks
2+
========================================
3+
4+
AtomWorks provides several command-line tools for Multiple Sequence Alignment (MSA) operations.
5+
6+
Install AtomWorks with the ML extra. Filtering requires hhfilter from HH-suite
7+
on PATH. Local generation requires the selected MMseqs2 or HHblits backend and
8+
configured sequence databases, plus hhfilter for filtering the results. The
9+
ColabFold Python API supports remote generation; see :doc:`ml/msa_server`.
10+
Finding and organizing existing files do not run a sequence search.
11+
12+
Find
13+
----
14+
15+
Provide ``--existing-msa-dirs`` or set ``PROTEIN_MSA_DIRS`` to the directories
16+
containing your MSA files.
17+
18+
.. typer:: atomworks_cli.find:app
19+
:prog: atomworks msa find
20+
:show-nested:
21+
22+
Filter
23+
------
24+
.. typer:: atomworks_cli.filter:app
25+
:prog: atomworks msa filter
26+
:show-nested:
27+
28+
Generate
29+
--------
30+
.. typer:: atomworks_cli.generate:app
31+
:prog: atomworks msa generate
32+
:show-nested:
33+
34+
Organize
35+
--------
36+
.. typer:: atomworks_cli.organize:app
37+
:prog: atomworks msa organize
38+
:show-nested:

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ dev = [
111111
]
112112

113113
docs = [
114+
"sphinxcontrib-typer>=0.7.2,<1",
114115
"sphinx>=8.0.0",
115116
"sphinx-gallery>=0.19.0",
116117
"pydata-sphinx-theme>=0.16.1",

‎src/atomworks/ml/preprocessing/msa/finding.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ def find_template_alignments(
350350
Args:
351351
sequences: Protein sequences to find template alignments for.
352352
template_dirs: Directories to search. Accepts:
353+
353354
- None: No directories (all sequences reported missing).
354355
- list[PathLike]: Auto-assumes ``.m8`` / directory_depth=2 (matching
355356
`organize_template_alignments`'s defaults).

0 commit comments

Comments
 (0)