Skip to main content

Python bindings for the TFM-Pvalue program.

Project description

tfm_utils

Transcription Factor Motif Utils

Docs

This package is meant to be an improvement on the pytfmpval by Jared Andrews which is itself a wrapper for the incredibly useful TFM-Pvalue C++ program. It allows users to determine score thresholds for a given transcription factor position frequency matrix associated with a specific p-value. Naturally, it can also perform the reverse, quickly calculating an accurate p-value from a score for a given motif matrix.

The pytfmpval is archived and has several super annoying uncaught excpetions that cause the whole program to crash every time there is any error so to start this package will focus on:

1. making this package more robust at runtime
2. modernizing the interface a bit
    2.1. This primarily includes adding support for pandas and numpy arrays as opposed to purely white space delimited lists and the like

This should make everyhting better to use and make it feel like you are writing python code instead or old school R or something.

tfm_utils allows this functionality to be easily utilized within a Python script, module, or package.

See full documentation and use examples here.

Installation

tfm_utils is on PyPI, so you can install via pip easily:

pip install tfm_utils

or locally with:

git clone repo_name_here
cd tfm_utils
CC=clang CXX=clang++ python -m pip install e .

You need to use the weird install function to get the C++ code to work

Acknowledgments

Jared Andrews did most of the hard work on this project I just wanted to fix a few things that were bugging me and his version was archived. It seems like a pretty open license so I assume this is all chill.

Contribute

Any and all contributions are welcome. Bug reporting via the Issue Tracker is much appreciated. Here's how to contribute:

  1. Fork the repo on github (see forking help.)

  2. Make your changes/fixes/improvements locally.

  3. Optional, but much-appreciated: write some tests for your changes. (Don't worry about integrating your tests into the test framework - writing some in your commit comments or providing a test script is fine. I will integrate them later.)

  4. Send a pull request (see pull request help).

Reference

| Efficient and accurate P-value computation for Position Weight Matrices | H. Touzet and J.S. Varré | Algorithms for Molecular Biology 2007, 2:15

License

This project is licensed under the GPL3 license. You are free to use, modify, and distribute it as you see fit. The program is provided as is, with no guarantees.

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

tfm_utils-0.0.2.tar.gz (67.0 kB view details)

Uploaded Source

Built Distribution

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

tfm_utils-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl (67.1 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

Details for the file tfm_utils-0.0.2.tar.gz.

File metadata

  • Download URL: tfm_utils-0.0.2.tar.gz
  • Upload date:
  • Size: 67.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for tfm_utils-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cf44d08824e081d1685bace100d3f45cbc283aadedc3c37abbc3e92b4215f284
MD5 11e27654926bd190c326df89952ecf07
BLAKE2b-256 e5da1f9f892203f13f6699ab13ec52d16ad51b5ae3e851991c4c1ab64bf365f2

See more details on using hashes here.

File details

Details for the file tfm_utils-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: tfm_utils-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 67.1 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for tfm_utils-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b9216b296481dbd3fd39e12fc4010691b353406539b7e42d33ef56e300b8aa60
MD5 dca932570cfe3774ec0933ef748e1e95
BLAKE2b-256 e887b0f5ddc2512e5330da01c98ee8726e712b37279fa41a5b22ace6b821a1bc

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