gpf_instance package

Subpackages

Submodules

gpf_instance.apps module

Provides class for configuing WDAE Django application.

class gpf_instance.apps.WDAEConfig(app_name, app_module)[source]

Bases: AppConfig

Configure WDAE django application.

name = 'gpf_instance'
ready() None[source]

Override this method in subclasses to run code when Django starts.

gpf_instance.extension module

class gpf_instance.extension.GPFExtensionBase(instance: Any)[source]

Bases: object

Base class for GPF extensions.

GPF extensions can handle adding new studies and support for various GPF tools to an instance.

abstract get_studies() list[WDAEAbstractStudy][source]
abstract get_studies_ids() list[str][source]
get_tool(study: WDAEAbstractStudy, tool_id: str) GPFTool | None[source]
setup() None[source]
class gpf_instance.extension.GPFTool(tool_id: str)[source]

Bases: object

Base class for implementing GPF tools.

GPF tools are classes which interact with studies to provide data.

abstract static make_tool(study: WDAEAbstractStudy) GPFTool | None[source]
property tool_id: str

gpf_instance.gpf_instance module

Provides wdae GPFInstance class.

gpf_instance.gpf_instance.get_wgpf_instance(config_filename: str | Path | None = None, **kwargs: Any) WGPFInstance[source]

Load and return a WGPFInstance.

gpf_instance.urls module

gpf_instance.views module

class gpf_instance.views.AboutDescriptionView[source]

Bases: MarkdownFileView

Provide fetching and editing the main application description.

CONTENT_ID = 'instance_about'
get(_request: Request) Response[source]

Collect the application description.

class gpf_instance.views.DescriptionView[source]

Bases: MarkdownFileView

Provide fetching and editing the main application description.

CONTENT_ID = 'instance_description'
get(_request: Request) Response[source]

Collect the application description.

class gpf_instance.views.GenomeView[source]

Bases: QueryBaseView

Provide genome build

get(_: Request) Response[source]
class gpf_instance.views.MarkdownFileView[source]

Bases: QueryBaseView

Provide fetching and editing markdown files.

CONTENT_ID = 'placeholder_id'
get(_request: Request) Response[source]

Collect the application description.

post(request: Request) Response[source]

Overwrite the application description.

gpf_instance.views.get_about_etag(_request: Request, **_kwargs: dict[str, Any]) str | None[source]
gpf_instance.views.get_description_etag(_request: Request, **_kwargs: dict[str, Any]) str | None[source]
gpf_instance.views.version(request, *args, **kwargs)[source]

Get GPF version.

Module contents