Skip to main content

Find hypomethylated regions in centromeres

Project description

centrodip

Installation

Conda Install:

conda install jmmenend::centrodip

Docker Run:

docker run -it jmmenend/centrodip:latest

Pip Install (requires having bedtools already installed):

pip install centrodip

How to Run

Preprocessing:

(1) Align BAM with MM/ML tags to matched reference genome.
(2) Modkit pileup aligned bam and matched reference. 
(3) Region annotation file.

Running centrodip:

centrodip ${bedmethyl} ${regions} ${output}

Inputs:

  1. bedmethyl - modkit pileup file (Refer to modkit github).
  2. regions - bed file of regions you want to search for CDRs.
  3. output - name of output file.

Output:

Output file is a BED file with 9 columns. Some columns can be adjusted with flags (--label, --color, etc.)

Help Documentation

usage: centrodip [-h] [--mod-code MOD_CODE] [--bedgraph] [--region-merge-distance REGION_MERGE_DISTANCE] [--region-edge-filter REGION_EDGE_FILTER] [--window-size WINDOW_SIZE]
                 [--threshold THRESHOLD] [--prominence PROMINENCE] [--min-size MIN_SIZE] [--enrichment] [--threads THREADS] [--color COLOR] [--output-all] [--label LABEL]
                 bedmethyl regions output

Process bedMethyl and CenSat BED file to produce CDR predictions.

positional arguments:
  bedmethyl             Path to the bedmethyl file
  regions               Path to BED file of regions
  output                Path to the output BED file

options:
  -h, --help            show this help message and exit
  --mod-code MOD_CODE   Modification code to filter bedMethyl file (default: "m")
  --bedgraph            Flag indicating the input is a bedgraph. If passed --mod-code and --min-cov are ignored. (default: False)
  --region-merge-distance REGION_MERGE_DISTANCE
                        Merge gaps in nearby centrodip regions up to this many base pairs. (default: 100000)
  --region-edge-filter REGION_EDGE_FILTER
                        Remove edges of merged regions in base pairs. (default: 0)
  --window-size WINDOW_SIZE
                        Number of CpGs to include in Savitzky-Golay filtering of Fraction Modified. (default: 101)
  --threshold THRESHOLD
                        Number of standard deviations from the smoothed mean to be the minimum dip. Lower values increase leniency of dip calls. (default: 1)
  --prominence PROMINENCE
                        Scalar factor to decide the prominence required for an dip. Scalar is multiplied by smoothed data's difference in the minimum and maxiumum values. Lower values increase
                        leniency of MDR calls. (default: 0.66)
  --min-size MIN_SIZE   Minimum dip size in base pairs. Small dips are removed. (default: 5000)
  --enrichment          Use centrodip to find areas enriched in aggregated methylation calls. (default: False)
  --threads THREADS     Number of workers. (default: 4)
  --color COLOR         Color of predicted dips. (default: 50,50,255)
  --output-all          Output all intermediate files. (default: False)
  --label LABEL         Label to use for regions in BED output. (default: "CDR")

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

centrodip-0.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

centrodip-0.0.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file centrodip-0.0.1.tar.gz.

File metadata

  • Download URL: centrodip-0.0.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for centrodip-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f8cdc06e0d1098dc013697981e642c8313fd622bdc4096b045d7fceae6d293e1
MD5 c491dad8e50607eaa8cfd9c6cf42180f
BLAKE2b-256 b63cb5e2aeafab5b925a6ea1a85b852d44ba915238f65003e1eacf87330f8cbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for centrodip-0.0.1.tar.gz:

Publisher: publish-pypi.yml on jmenendez98/centrodip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file centrodip-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: centrodip-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for centrodip-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b24b2102045563d7a6ca73aa22210aaf8a590fc54358b7c6de0ab4a297c552ce
MD5 3a6a1fc12611b6296740ec44f9e735cb
BLAKE2b-256 8d472f6486202b989e5995858d2f1960ce00741b9c93f1fa411ae16b6ec61737

See more details on using hashes here.

Provenance

The following attestation bundles were made for centrodip-0.0.1-py3-none-any.whl:

Publisher: publish-pypi.yml on jmenendez98/centrodip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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