Skip to main content

cellmaps_vnn

https://img.shields.io/pypi/v/cellmaps_vnn.svg https://app.travis-ci.com/idekerlab/cellmaps_vnn.svg Documentation Status

Cell Maps Visual Neural Network Toolkit

Dependencies

Compatibility

  • Python 3.8+

Installation

git clone https://github.com/idekerlab/cellmaps_vnn
cd cellmaps_vnn
pip install -r requirements_dev.txt
make dist
pip install dist/cellmaps_vnn*whl

Run make command with no arguments to see other build/deploy options including creation of Docker image

make

Output:

clean                remove all build, test, coverage and Python artifacts
clean-build          remove build artifacts
clean-pyc            remove Python file artifacts
clean-test           remove test and coverage artifacts
lint                 check style with flake8
test                 run tests quickly with the default Python
test-all             run tests on every Python version with tox
coverage             check code coverage quickly with the default Python
docs                 generate Sphinx HTML documentation, including API docs
servedocs            compile the docs watching for changes
testrelease          package and upload a TEST release
release              package and upload a release
dist                 builds source and wheel package
install              install the package to the active Python's site-packages
dockerbuild          build docker image and store in local repository
dockerpush           push image to dockerhub

Before running tests and builds, please install pip install -r requirements_dev.txt

For developers

To deploy development versions of this package

Below are steps to make changes to this code base, deploy, and then run against those changes.

  1. Make changes

    Modify code in this repo as desired

  2. Build and deploy

# From base directory of this repo cellmaps_vnn
pip uninstall cellmaps_vnn -y ; make clean dist; pip install dist/cellmaps_vnn*wh

Needed files

See the format of the files and examples in examples directory of this repository

  • gene2ind.txt: A tab-delimited file where the 1st column is index of genes and the 2nd column is the name of genes.

  • cell2ind.txt: A tab-delimited file where the 1st column is index of cells and the 2nd column is the name of cells (genotypes).

  • cell2mutation.txt: A comma-delimited file where each row has 718 binary values indicating each gene is mutated (1) or not (0). The column index of each gene should match with those in gene2ind.txt file. The line number should match with the indices of cells in cell2ind.txt file.

  • cell2cndeletion.txt: A comma-delimited file where each row has 718 binary values indicating copy number deletion (1) (0 for no copy number deletion).

  • cell2amplification.txt: A comma-delimited file where each row has 718 binary values indicating copy number amplification (1) (0 for no copy number amplification).

  • training_data.txt: A tab-delimited file containing all data points that you want to use to train the model. The 1st column is identification of cells (genotypes), the 2nd column is a SMILES string of the drug and the 3rd column is an observed drug response in a floating point number, and the 4th column is source where the data was obtained from.

  • hierarchy.cx2: Hierarchy in HCX format used to create a visible neural network.

  • test_data.txt: A tab-delimited file containing all data points that you want to estimate drug response for. The 1st column is identification of cells (genotypes), the 2nd column is a SMILES string of the drug and the 3rd column is an observed drug response in a floating point number, and the 4th column is source where the data was obtained from.

Usage

For information invoke cellmaps_vnncmd.py -h

The tool can be used in 3 modes: train, predict and annotate.

Example usage

cellmaps_vnncmd.py train ./outdir_training --inputdir examples --config_file examples/config.yaml
cellmaps_vnncmd.py predict ./outdir_prediction --inputdir ./outdir_training --config_file examples/config.yaml
cellmaps_vnncmd.py annotate ./outdir_annotation --model_predictions ./outdir_prediction --ndexuser USERNAME --ndexpassword - --parent_network 0b7b8aee-332f-11ef-9621-005056ae23aa --visibility

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.3.0 (2026-07-27)

  • Add size attribute to hierarchy nodes indicating the number of genes with data in each node.

  • Add functionality to accept input feature files as ro-crate in training and prediction flows.

  • Rename model file from model_final.pt to model.pt for consistency.

  • Added mode-aware CLI translation with –mode support, RO-Crate validation, and automatic config/model resolution.

  • Added config.yaml generation for every training run with used hyperparameters.

0.2.2 (2025-07-25)

  • Bug fixes: fixed hyperparameter optimization and generation of config file with optimal parameters

0.2.1 (2025-07-01)

  • Bug fixes: fixed _annotate_interactomes_of_systems method’s return value and fix hierarchy annotations

0.2.0 (2025-06-26)

  • Add annotation in hierarchy nodes of which gene have data for VNN (train)

  • Add fake generator of gene importance scores in interactomes of hierarchy system (the real generator will be implemented in the future)

0.1.0 (2024-12-26)

  • First release on PyPI.

Metadata

Release files for cellmaps-vnn 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cellmaps-vnn 0.3.0
File Size Uploaded
cellmaps_vnn-0.3.0.tar.gz 863.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cellmaps-vnn 0.3.0
File Interpreter ABI Platform
cellmaps_vnn-0.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 952.0 kB

Release files / cellmaps_vnn-0.3.0.tar.gz

Download URL cellmaps_vnn-0.3.0.tar.gz
Size 863.5 kB
Tags Source
SHA-256 checksum
How to use checksums
874efbd2a116f1ca2a3fb1d1cd1091185a17a6391fe31fb6b98b5666d5c295ae
BLAKE2b-256 checksum
How to use checksums
c4e2a2b0cd60ed9ae0e5f70c00fac5fbb4faf8c150867759f24cacd1e0aa057d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cellmaps_vnn-0.3.0-py2.py3-none-any.whl

Download URL cellmaps_vnn-0.3.0-py2.py3-none-any.whl
Size 88.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
498f88f0a83fdf679d7a1a193f01ecaa3b5d84a9fb056d3cef39009764efa8a4
BLAKE2b-256 checksum
How to use checksums
48783f5abedf5e0f3e81820428890d6671d40a17e06ebc6a5e9462d5a0ad6161
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page