Skip to main content

Single Molecule Footprinting Analysis in Python.

Project description

PyPI Docs

smftools

A Python tool for processing raw sequencing data derived from single molecule footprinting experiments into anndata objects. Additional functionality for preprocessing, analysis, and visualization.

Philosophy

While most genomic data structures handle low-coverage data (<100X) along large references, smftools prioritizes high-coverage data (scalable to >1,000,000X coverage) of a few genomic loci at a time. This enables efficient data storage, rapid data operations, hierarchical metadata handling, seamless integration with various machine-learning packages, and ease of visualization. Furthermore, functionality is modularized, enabling analysis sessions to be saved, reloaded, and easily shared with collaborators. Analyses are centered around the anndata object, and are heavily inspired by the work conducted within the single-cell genomics community.

Dependencies

The following CLI tools need to be installed and configured before using the informatics (smftools.inform) module of smftools:

  1. Dorado -> Basecalling, alignment, demultiplexing.
  2. Minimap2 -> Alignment if not using dorado.
  3. Modkit -> Extracting read level methylation metrics from modified BAM files.

Modules

Informatics: Processes raw Nanopore/Illumina data from SMF experiments into an AnnData object.

Preprocessing: Appends QC metrics to the AnnData object and performs filtering.

Tools: Appends analyses to the AnnData object.

  • Currently Includes: Position X Position correlation matrices, Hidden Markov Model feature detection, clustering, dimensionality reduction, peak calling, train/test workflows for various ML classifiers.
  • To do: Additional ML methods for learning predictive single molecule features on condition labels: Autoencoders, Variational Autoencoders, Transformers.

Plotting: Visualization of analyses stored within the AnnData object.

  • Most analyses appended to the adata object by a tools method have, or will have, an accompanying plotting method.

Announcements

11/05/25 - Version 0.2.1 is available through PyPI

Version 0.2.1 makes the core workflow (smftools load) a command line tool that takes in an experiment_config.csv file for input/output and parameter management.

05/29/25 - Version 0.1.6 is available through PyPI.

Informatics, preprocessing, tools, plotting modules have core functionality that is approaching stability on MacOS(Intel/Silicon) and Linux(Ubuntu). I will work on improving documentation/tutorials shortly. The base PyTorch/Scikit-Learn ML-infrastructure is going through some organizational changes to work with PyTorch Lightning, Hydra, and WanDB to facilitate organizational scaling, multi-device usage, and logging.

10/01/24 - More recent versions are being updated frequently. Installation from source over PyPI is recommended!

09/09/24 - The version 0.1.1 package (smftools-0.1.1) is installable through pypi!

The informatics module has been bumped to alpha-phase status. This module can deal with POD5s and unaligned BAMS from nanopore conversion and direct SMF experiments, as well as FASTQs from Illumina conversion SMF experiments. Primary output from this module is an AnnData object containing all relevant SMF data, which is compatible with all downstream smftools modules. The other modules are still in pre-alpha phase. Preprocessing, Tools, and Plotting modules should be promoted to alpha-phase within the next month or so.

08/30/24 - The version 0.1.0 package (smftools-0.1.0) is installable through pypi!

Currently, this package (smftools-0.1.0) is going through rapid improvement (dependency handling accross Linux and Mac OS, testing, documentation, debugging) and is still too early in development for widespread use. The underlying functionality was originally developed as a collection of scripts for single molecule footprinting (SMF) experiments in our lab, but is being packaged/developed to facilitate the expansion of SMF to any lab that is interested in performing these styles of experiments/analyses. The alpha-phase package is expected to be available within a couple months, so stay tuned!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smftools-0.2.3.tar.gz (9.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smftools-0.2.3-py3-none-any.whl (8.1 MB view details)

Uploaded Python 3

File details

Details for the file smftools-0.2.3.tar.gz.

File metadata

  • Download URL: smftools-0.2.3.tar.gz
  • Upload date:
  • Size: 9.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for smftools-0.2.3.tar.gz
Algorithm Hash digest
SHA256 0add62699c2ebcb887ba6966b4fcf4d5c93d36c292b3c5e073678722edfaa3fc
MD5 bf031ad7e8b701fed58e26d9f0b7ccb2
BLAKE2b-256 be8ae76f6205a7788a4bdce910cc4879f9188c87dcf3a40680d43f54f6a8be25

See more details on using hashes here.

File details

Details for the file smftools-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: smftools-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for smftools-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f94f066c4b017146c3320c3093c291b9638093ee6c0ccdfd70f732866d53be3f
MD5 5d0c307f108cae845c04afbea1cbd69c
BLAKE2b-256 bd9c002a828672873d468405bb3ce5b2c057ec2ceddf64362ad51cc3f21fe14b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page