Skip to main content

Graph-based stripe caller using chromain interaction data.

Project description

gStripe

Graph-based architectural stripe caller.

Requirements:

  • Python >= 3.10
  • Operating system: Linux (Ubuntu 20.04 or higher, recommended) or Windows 10 (or higher).
  • All the dependencies listed in pyproject.toml, notably numpy >= 2.0.0 and igraph >= 0.11.5.

Installation

  1. Optional, but recommended: Create and activate a python envrionment using pyenv, Conda or Mamba.
  2. Install gStripe, depending on the chosen source:
    • Install from PyPI (recommended): pip3 install gstripe
    • Installing directly from github: run pip install git+https://github.com/SFGLab/gStripe.git.

To verify, that the installation proceeded correctly, you can do the following:

  1. Run python -m gstripe.gstripe --help: you should see the help message. If not, check if the correct environment has been activated.
  2. Run gStripe on an example file provided in examples/basic_test.bedpe in the github repository or in the .zip archive, using the following command: python -m gstripe.gstripe basic_test.bedpe .. The console output should end with [INFO] main(0.06s): All done. (timing may vary) and two new files should be created: ./basic_test.bedpe.gstripes_raw.tsv (results) and basic_test.bedpe.gstripe.log (log).

Usage

The gStripe architectural stripe caller uses a discrete set of interactions (such as chromatin loops) to perform calling.

Run python -m gstripe.gstripe input_interactions_file.bedpe output_directory to call the stripes using interactions from input_interactions_file.bedpe and place the results (input_loops_file.bedpe.gstripes_raw.tsv by default) and the log file in output_directory. This results in saving the candidate stripes to the output directory in a .tsv file. They should then be filtered by the user.

It is recommended to use the default values of all parameters specified in usage options (python -m gstripe.gstripe --help).

Use --fix_bin_start in case of binned data, where adjacent bins would overlap (i.e. when one anchor end is "15000" and the start of an adjacent anchor is also "15000"). Recommended for HiChIP.

In case of problems with multiprocessing, use --max_workers=1

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

gstripe-1.0.0.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

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

gstripe-1.0.0-py3-none-any.whl (46.5 kB view details)

Uploaded Python 3

File details

Details for the file gstripe-1.0.0.tar.gz.

File metadata

  • Download URL: gstripe-1.0.0.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for gstripe-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7faef48bfb0e702a5575ac4278639d6ea6e2d55409e8b6e3aa9951f35338bc59
MD5 fa25f4edbf3642a560dc0ba1b8c49379
BLAKE2b-256 e3157ba3c0b55b63d7be8a832924765466228c8a2a5c846242f9350793675db9

See more details on using hashes here.

File details

Details for the file gstripe-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gstripe-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 46.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for gstripe-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0720d215d945d3e2b30c6187d8576cd459742a927e1188a829aa010aaf92ec79
MD5 d33030dc32d13fecf7cf0d4f2df5d381
BLAKE2b-256 091aa8689a3a1df71b817f3e39acfa89321dda0084e07dc78b3e44f5a91e51e1

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