Skip to content

Application wrapper API documentation is lacking #2220

Closed

Description

@peterjc

Related to #906, moving from epydoc to sphinx, I note neither does a good job showing the API documentation of our command line application wrapper objects - e.g. for blastn:

The way the object properties are generated dynamically is likely the reason why, compare the docstrings shown for the class and an instance of the class:

>>> from Bio.Blast.Applications import NcbiblastnCommandline
>>> help(NcbiblastnCommandline)  # very minimal, like the HTML versions above
>>> help(NcbiblastnCommandline())  # detailed with all the attributes

(Noted in passing on #2219)

Can we tweak Sphinx to do this for us? Can we tweak the current underlying object and self.parameters list to solve this (use a class method maybe)? Or do we need a more dramatic restructuring of the objects - defining the properties explicitly rather than dynamically via __init__?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions