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, 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:
- Dorado -> For standard/modified basecalling and alignment. Can be attained by downloading and configuring nanopore MinKnow software.
- Samtools -> For working with SAM/BAM files
- Minimap2 -> The aligner used by Dorado
- Modkit -> Extracting summary statistics and read level methylation calls from modified BAM files
- Bedtools -> For generating Bedgraphs from BAM alignment files.
- BedGraphToBigWig -> For converting BedGraphs to BigWig files for IGV sessions.
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
10/01/24 - More recent versions are being updated through github and are not currently on pypi, please install from source. Thank you!
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.1.6.tar.gz.
File metadata
- Download URL: smftools-0.1.6.tar.gz
- Upload date:
- Size: 8.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b43d4636e74e4900679026a2ea2693b8b94b2c267dab8cc812438faef639721
|
|
| MD5 |
aa5f7e8437ebc1577df92be9b4d699c4
|
|
| BLAKE2b-256 |
81631c8f99ac398d259478daf03181baa14b162d3f445741ab80e9c1fc1b9ee9
|
File details
Details for the file smftools-0.1.6-py3-none-any.whl.
File metadata
- Download URL: smftools-0.1.6-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd253d743ac38c95218ddf4a6ba3b1306a7e4001890e9607a9b43cf1a8df0eef
|
|
| MD5 |
375c46fa4f77c0dab6437561f19ee217
|
|
| BLAKE2b-256 |
1d40bb796500e2874c5581949716389f33ec718a0be5c69102c440623e857abc
|