Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: pre-commit/action@v3.0.1
- uses: pre-commit/action@v3.0.1
26 changes: 13 additions & 13 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install .
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install .
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
rev: "v6.0.0"
hooks:
#- id: check-added-large-files
#- id: check-case-conflict
Expand All @@ -16,7 +16,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.9"
rev: "v0.16.0"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand All @@ -38,18 +38,18 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.3.3"
rev: "v3.9.6"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]

- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.20.2"
rev: "v0.25"
hooks:
- id: validate-pyproject
additional_dependencies: ["validate-pyproject-schema-store[all]"]

- repo: https://github.com/kynan/nbstripout
rev: "0.7.1"
rev: "0.9.1"
hooks:
- id: nbstripout
2 changes: 1 addition & 1 deletion .pypirc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[testpypi]
username = __token__
password = pypi-AgENdGVzdC5weXBpLm9yZwIkYTQ4MjJlN2MtNmQ0Zi00NzZjLTlhY2UtNWI0MWNiZTYzMzkzAAIqWzMsIjI5ZTJlMDdjLTcwZjMtNDU1OS04OTQxLWUwOTkyODU0YjM3NyJdAAAGIKklg7VuhVvw_CiRTFlCr8lDphNlu1epHvXAW6kwFM-r
password = pypi-AgENdGVzdC5weXBpLm9yZwIkYTQ4MjJlN2MtNmQ0Zi00NzZjLTlhY2UtNWI0MWNiZTYzMzkzAAIqWzMsIjI5ZTJlMDdjLTcwZjMtNDU1OS04OTQxLWUwOTkyODU0YjM3NyJdAAAGIKklg7VuhVvw_CiRTFlCr8lDphNlu1epHvXAW6kwFM-r
6 changes: 3 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ build:

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/source/conf.py
fail_on_warning: false
builder: html
configuration: docs/source/conf.py
fail_on_warning: false
builder: html

# Optionally build PDF and ePub formats
formats:
Expand Down
16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
# cc_mapping# Cell Cycle Mapping Package



[![PyPI version](https://badge.fury.io/py/cc-mapping.svg)](https://badge.fury.io/py/cc-mapping)## Step 1: Install Environment

[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)From the root directory of this repository:



**Gaussian Mixture Model-based thresholding for single-cell gene expression analysis**```

conda env create -f .\environments\cc_mapping.yml

`cc_mapping` provides robust statistical methods for categorizing cells based on gene expression levels using Gaussian Mixture Models (GMMs). Originally developed for cell cycle analysis, it's applicable to any single-cell RNA-seq thresholding task.```



## Features## Step 2: Update Global Variables



- 🎯 **Automatic thresholding** using GMM-based statistical inferenceDue to the fact this is not an actual package, whenever you want to use it, you will have to tell your computer where to look. You will need to update these two files:

- 📊 **Single & sequential thresholding** for simple or complex categorization schemes
Expand All @@ -34,17 +26,13 @@ conda env create -f .\environments\cc_mapping.yml

- ⚙️ **Flexible configuration** with manual threshold overrides when neededReplace the variable 'cc_mapping_package_dir' with the path to the root directory for the cc_mapping repository.



## InstallationThis means that if you want to use the cc_mapping package in another folder, you should copy this GLOBAL VARIABLES folder into that directory and add this to the imports of your python scripts



Install from PyPI using pip:```

import sys

```bashsys.path.append(os.getcwd())
````bashsys.path.append(os.getcwd())

pip install cc-mapping

Expand Down Expand Up @@ -90,7 +78,7 @@ adata = gmm.return_adata()
# Visualize results
fig = gmm.plot_density()
fig.savefig('pcna_thresholding.png')
```
````

## Sequential Thresholding

Expand Down
Loading
Loading