> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bioptimus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# bioptimus.preprocess.omics.factory

Factory for constructing omics transforms by name.

***

#### create\_transform

```python theme={null}
def create_transform(name: str, **kwargs: Any) -> OmicsPreprocessor
```

Creates a single omics transform by name.

**name**

Transform identifier (case-insensitive). One of `"log1p"`, `"expm1"`, `"tpm"`, `"total_count"`, `"zscore"`, `"subset_columns"`.

\*\***kwargs**

Arguments forwarded to the transform constructor. For example `zscore` requires `mean` and `std`; `tpm` requires per-gene `lengths`; `total_count` accepts an optional `factor` (`1e6` CPM by default, `None` for the median row total).

**Returns**:

An instantiated [`OmicsPreprocessor`](https://docs.bioptimus.com/sdk-reference/preprocess/omics/base#omicspreprocessor).

**Raises**:

* `BioptimusValueError` - With code [`ErrorCode.INVALID_CONFIG`](https://docs.bioptimus.com/sdk-reference/observability/errors) if *name* is not in the registry, or if *kwargs* do not match the transform's constructor signature (e.g. required arguments are missing or unexpected ones are given). It subclasses `ValueError`, so `except ValueError` still catches it.

***

#### create\_pipeline

```python theme={null}
def create_pipeline(configs: list[dict[str, Any]]) -> OmicsPipeline
```

Builds an [`OmicsPipeline`](https://docs.bioptimus.com/sdk-reference/preprocess/omics/base#omicspipeline) from a list of step configs.

Each config dict must contain a `"name"` key; remaining entries are passed as keyword arguments to the constructor.

**configs**

Ordered list of transform specifications, e.g.:

```python theme={null}
[
    {"name": "total_count"},
    {"name": "log1p"},
    {"name": "zscore", "mean": [...], "std": [...]},
]
```

**Returns**:

A pipeline that chains the transforms in order. An empty
*configs* list yields an empty (identity) pipeline.

**Raises**:

* `BioptimusValueError` - With code [`ErrorCode.INVALID_CONFIG`](https://docs.bioptimus.com/sdk-reference/observability/errors) if a step config is missing the `"name"` key, or if a step's name is unknown or its arguments are invalid (see [`create_transform`](https://docs.bioptimus.com/sdk-reference/preprocess/omics/factory#create_transform)). It subclasses `ValueError`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.