Skip to main content

TieDIE: Tied Diffusion for Subnetwork Discovery

Tests Documentation GitHub release

A network analysis algorithm that finds subnetworks connecting genomic perturbations to transcriptional changes in large gene interaction networks.

Documentation | GitHub

Authors

Evan O. Paull, Daniel Carlin and Joshua M. Stuart (UC Santa Cruz)

Additional Contributors

  • Srikanth Bezawada (TieDIE Cytoscape Plugin)
  • Josh L. Espinoza (Quick kernel loading feature)
  • Dana Silverbush (MATLAB kernel generation code updates)
  • Denes Turei (modern tooling and packaging)

Requirements

  • Python >= 3.9
  • numpy >= 1.20
  • scipy >= 1.0
  • networkx >= 2.0

Installation

Using pip (from GitHub)

pip install git+https://github.com/saezlab/tiedie.git

Using uv (recommended)

uv is a fast Python package manager. To install TieDIE with uv:

# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create a new project with TieDIE
uv init my-project
cd my-project
uv add git+https://github.com/saezlab/tiedie.git

# Or add to an existing project
uv add git+https://github.com/saezlab/tiedie.git

Development installation

git clone https://github.com/saezlab/tiedie.git
cd tiedie

# Using uv (recommended)
uv venv
source .venv/bin/activate
uv pip install -e ".[tests]"

# Or using pip
python -m venv .venv
source .venv/bin/activate
pip install -e ".[tests]"

Usage

Command Line Interface

tiedie -n pathway.sif -u upstream.input -d downstream.input

For full options:

tiedie --help

Python API

from tiedie import ScipyKernel
from tiedie.util import parse_heats, parse_net, normalize_heats

# Parse input files
network = parse_net('pathway.sif')
upstream_heats, upstream_signs = parse_heats('upstream.input')
downstream_heats, downstream_signs = parse_heats('downstream.input')

# Normalize heats
upstream_norm = normalize_heats(upstream_heats)
downstream_norm = normalize_heats(downstream_heats)

# Create diffusion kernel and run diffusion
diffuser = ScipyKernel('pathway.sif')
up_diffused = diffuser.diffuse(upstream_norm, reverse=False)
down_diffused = diffuser.diffuse(downstream_norm, reverse=True)

Input File Formats

Network file (.sif)

Tab-separated: source \t interaction \t target

GeneA	-a>	GeneB
GeneB	-t|	GeneC

Interaction types:

  • -a> : activation
  • -t| : inhibition
  • -component> : component relationship

Heat file (.input)

Tab-separated: gene \t heat \t sign

GeneA	10.5	+
GeneB	8.2	-

Project Structure

tiedie/
├── __init__.py      # Public API
├── cli.py           # Command-line interface
├── kernel.py        # Pre-computed kernel diffusion
├── kernel_scipy.py  # On-the-fly kernel generation (scipy)
├── ppr.py           # Personalized PageRank diffusion
├── permute.py       # Permutation testing
├── util.py          # Utility functions
└── ...
tests/               # Test suite
docs/                # Documentation (Tutorial.pdf, FAQ.txt)

Publications

TieDIE was first featured in the 2013 Nature paper "Comprehensive molecular characterization of clear cell renal cell carcinoma" (TCGA Network). In this publication, TieDIE analysis connected frequently mutated genes involving the SWI/SNF chromatin remodelling complex to gene expression changes characteristic of tumor development and progression. The TieDIE network solution is shown in Figure 4: http://www.nature.com/nature/journal/v499/n7456/full/nature12222.html

License

GPL-3.0-or-later

Contact

Feature requests, comments and requests for clarification should be sent to epaull@soe.ucsc.edu.

Development

Running tests

# Install test dependencies
uv pip install -e ".[tests]"

# Run tests
pytest

# Run tests with coverage
pytest --cov=tiedie

Linting and formatting

The project uses ruff for linting and formatting:

# Check for issues
ruff check .

# Auto-fix issues
ruff check --fix .

# Format code
ruff format .

Pre-commit hooks

Pre-commit hooks are configured for automated checks:

# Install pre-commit hooks
uv pip install -e ".[dev]"
pre-commit install

# Run hooks manually on all files
pre-commit run --all-files

Building documentation

Documentation is built with MkDocs:

# Install docs dependencies
uv pip install -e ".[docs]"

# Serve docs locally
mkdocs serve

# Build static docs
mkdocs build

Version 2.0 Notes

This version represents a major modernization of the TieDIE codebase:

  • Python 3 compatibility: Ported from Python 2.7 to Python 3.9+
  • Modern packaging: Converted to a proper Python package with pyproject.toml and hatchling build backend
  • Test suite: Added pytest-based test suite with integration tests
  • uv support: Compatible with modern Python tooling including uv
  • CLI improvements: Migrated from optparse to argparse

This modernization was done at Saez Lab by Dénes Türei (turei.denes@gmail.com).

Metadata

Release files for tiedie 2.1.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 tiedie 2.1.0
File Size Uploaded
tiedie-2.1.0.tar.gz 233.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tiedie 2.1.0
File Interpreter ABI Platform
tiedie-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 264.7 kB

Release files / tiedie-2.1.0.tar.gz

Download URL tiedie-2.1.0.tar.gz
Size 233.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fbdbdd591ab3955f2ed1d6ef24a559f1699ac35a6a70cc9b48d7de4d2bfe3977
BLAKE2b-256 checksum
How to use checksums
9ce9d8ca834a339bc40d01db3b38be5d487e4cadb1bae7de2964c2e2f42b3f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / tiedie-2.1.0-py3-none-any.whl

Download URL tiedie-2.1.0-py3-none-any.whl
Size 31.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35509f5119bd044bb1bc0d9b9ac75fa596e636255f5e6b8c2f2e443cc2003654
BLAKE2b-256 checksum
How to use checksums
91f0d2caf9a83b9f02515a7de3e3c145eab0790711366ed10c90785b046f6549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.2

2 release files

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