An open API service indexing awesome lists of open source software.

https://github.com/keller-mark/miqc-py

Python implementation of miQC: probablistic quality control of scRNA-seq data
https://github.com/keller-mark/miqc-py

Last synced: 4 months ago
JSON representation

Python implementation of miQC: probablistic quality control of scRNA-seq data

Awesome Lists containing this project

README

        

# miqc-py

[![PyPI](https://img.shields.io/pypi/v/miqc_py)](https://pypi.org/project/miqc_py)

Python implementation of [miQC](https://github.com/greenelab/miQC) ([paper](https://doi.org/10.1371/journal.pcbi.1009290)).

## Installation

```sh
pip install miqc_py
```

## Usage

Usage follows the scverse API conventions.
Parameter names follow the R implementation of `miQC`.

```python
import miqc_py

# ...

miqc_py.calculate_miqc(adata)
miqc_py.filter_miqc(adata)
```

### Plotting

Optionally, we can plot the results with `altair` (not a dependency of `miqc_py` - may need to install first).

```python
import altair as alt

alt.Chart(adata.obs).mark_circle().encode(
x="total_genes_by_counts:Q",
y="pct_counts_mito:Q",
color="prob_compromised:Q"
)
```

## Development

```sh
conda env create -f environment.yml
conda activate miqc-py
```

```sh
jupyter lab
```