Single Molecule Footprinting Analysis in Python.
Project description
smftools
A Python tool for processing raw sequencing data derived from single molecule footprinting experiments into anndata objects. Additional functionality for preprocessing, spatial analyses, and HMM based feature annotation.
Philosophy
While genomic data structures (SAM/BAM) were built to handle low-coverage data (<1000X) 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:
- Dorado -> Basecalling, alignment, demultiplexing.
- Minimap2 -> Alignment if not using dorado.
- Modkit -> Extracting read level methylation metrics from modified BAM files. Only required for direct modification detection (ie methylation).
Main Commands
smftools load: Processes raw Nanopore/Illumina data from SMF experiments into an AnnData object.
smftools preprocess: Appends QC metrics to the AnnData object and performs filtering.
smftools spatial: Appends spatial analyses to the AnnData object.
- Currently Includes: Position X Position correlation matrices, clustering, dimensionality reduction, spatial autocorrelation.
smftools hmm: Fits a basic HMM to each sample and appends HMM feature layers
- Main outputs wills be stored in adata.layers
smftools batch : Performs batch processing on a csv of config file pathes for any of the above commands.
- Nice when analyzing multiple experiments
smftools concatenate: Concatenates a list or directory of anndata objects.
- Mainly used for combining multiple experiments into a single anndata object.
Announcements
12/02/25 - Version 0.2.3 is available through PyPI
Version 0.2.3 provides the core smftools functionality through several command line commands (load, preprocess, spatial, hmm).
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smftools-0.2.4.tar.gz.
File metadata
- Download URL: smftools-0.2.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
673af61b05dd693a22b768dcdf86276656083571930604e83698ce306ec5fbb8
|
|
| MD5 |
ec27a37fe7cf21262499804bbb7cd175
|
|
| BLAKE2b-256 |
588c053f890623e6a8907715b0fea9e28364da0ab53d90cb47cee166ed54dc67
|
File details
Details for the file smftools-0.2.4-py3-none-any.whl.
File metadata
- Download URL: smftools-0.2.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e413e8ce70cd7cdda45c3c5a11bc46d3b9c651208ce09c7484d02512d7eca046
|
|
| MD5 |
791def4fcf1e0201007f410468a27dd3
|
|
| BLAKE2b-256 |
a0afc19daf4ec4c35b5ff19a4ae698d7c1e9006cc35cbe775bd0f51460a1298e
|