Documented, stable Python API alongside the CLI

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Start by reading genopick/__init__.py, cli.py, and the docs, then review dependencies #35 and #38. Map the proposed public functions and result types to existing code before defining the stable API and workflow page. Done means __all__ is documented with runnable doctest examples, the CLI uses only public API functions, and the stability and deprecation policies are written down.

Written by the indexing model from the issue text.

Description

docs enhancement

Problem

The CLI is the only documented interface. Python users dig into genopick.crossval/genopick.io internals, with no stability promise.

Proposed approach

  • Define the public API in genopick/__init__.py: read_genotype, read_phenotype, align_data, preprocess, cross_validate / benchmark (with the CV schemes), predict, get_models, generate_report and the result types.
  • Give every public function a NumPy-style docstring with an example.
  • Mark everything else private (underscore modules or __all__), and state the stability policy in the docs (SemVer from 1.0).
  • Make the CLI a thin layer over this API.

Acceptance criteria

  • genopick.__all__ lists the public API; each item has a docstring with a runnable example (checked by doctest in CI).
  • A docs page shows a full notebook-style workflow: load, CV, compare, predict.
  • The CLI calls only public API functions (no private imports in cli.py).
  • The deprecation policy is written down (warn for one minor release before removing anything).

Effort

M

Dependencies

#35, #38


Generated by Claude Code

Dominant language
Python
Stars
3
Forks
0
Avg merge
2h 57m
Merged PRs (30d)
6

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from josh45-source/genopick

All issues in josh45-source/genopick

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.