Skip to main content

Peak-set Enrichment of Gene-Sets (PEGS)

Project description

PEGS (Peak-set Enrichment of Gene-Sets) is a Python bioinformatics utility for calculating enrichments of gene clusters at different genomic distances from peaks.

https://readthedocs.org/projects/pegs/badge/?version=latest https://badge.fury.io/py/pegs.svg https://github.com/fls-bioinformatics-core/pegs/workflows/Python%20package/badge.svg

Quick Start

It is recommended to install PEGS via pip in a virtualenv, for example:

% virtualenv venv.pegs
% source venv.pegs/bin/activate
% pip install pegs

This will provide the pegs and mk_pegs_intervals programs.

Alternatively you can install PEGS into a Conda environment, for example:

% conda create -c bioconda -c conda-forge -n pegs pegs

The simplest use of PEGS is:

pegs GENE_INTERVALS --peaks PEAKS1 [PEAKS2 ...] --genes CLUSTERS1 [CLUSTERS2 ...]

where GENE_INTERVALS is a set of reference transcription start sites (TSSs) for all genes, PEAKS1...N are one or more BED files with peak-sets, and CLUSTERS1...N are one or more files defining gene clusters.

This will output a PNG heatmap and an XLXS file with the p-values and gene counts from the enrichment calculations.

Full documentation can be found at:

Licensing

PEGS is licensed under the 3-Clause BSD License.

Example: Mouse glucocorticoidal dataset

Thanks to Louise Hunter for providing this example.

An example application of PEGS is the analysis of up- and down-regulated glucocorticoidal targets from an RNA-seq study of liver samples from mice treated acutely with dexamethasone or vehicle (Caratti et al. 2018), combined with corresponding GR ChIP-seq and chromatin accessibility data (DNase I hypersensitive (DHS) regions) (Grontved et al. 2013 and Sobel et al. 2017 respectively), and mouse liver TAD boundary data (Kim et al. 2018).

The files for these datasets are available here:

The PEGS analysis was performed on these data using the command:

pegs mm10 \
  --peaks data/peaks/*.bed --genes data/clusters/*.txt \
  -t data/mESC-TADs_mm10.txt \
  -d 1000 5000 10000 50000 100000 200000 500000 1000000 5000000

The resulting output files (XLSX and heatmap) can be found here:

https://raw.githubusercontent.com/fls-bioinformatics-core/pegs/master/examples/glucocorticoid_example/results/glucocorticoid_heatmap.png

The analyses indicate a strong association of dexamethasone up-regulated genes with dexamethasone-induced GR peaks at distances up to 500kbp from these peaks, but no evidence of down-regulated genes - indicating distinct mechanisms of gene activation and repression by glucocorticoids. At the same time, there is promoter proximal enrichment for both up-and

References

  • Caratti, G. et al. (2018) REVERBa couples the clock to hepatic glucocorticoid action. J Clin Invest 128(10):4454-4471

  • Grontved, L. et al. (2013) C/EBP maintains chromatin accessibility in liver and facilitates glucocorticoid receptor recruitment to steroid response elements. EMBO J 32(11), 1568-83

  • Kim, Y.H. et al. (2018) Rev-erbα dynamically modulates chromatin looping to control circadian gene transcription. Science 359(6381):1274-1277

  • Sobel, J.A. et al. (2017) Transcriptional regulatory logic of the diurnal cycle in the mouse liver. PLoS Biol 15(4): e2001069

Acknowledgements

Thanks to Louise Hunter for providing the mouse glucocorticoidal example, and to Kyle Pollina for allowing us to use the pegs name on the Python Package Index.

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

pegs-0.6.6.tar.gz (599.6 kB view details)

Uploaded Source

Built Distribution

pegs-0.6.6-py3-none-any.whl (604.1 kB view details)

Uploaded Python 3

File details

Details for the file pegs-0.6.6.tar.gz.

File metadata

  • Download URL: pegs-0.6.6.tar.gz
  • Upload date:
  • Size: 599.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for pegs-0.6.6.tar.gz
Algorithm Hash digest
SHA256 b19059cb2de25ec3c9cbeafb333ffbac417fcd28ccf64680e7bb42ecacb4d467
MD5 b5623051818a72e1355b3f3ceabcac07
BLAKE2b-256 6592bc6f9a19ccb65917d10a24235072b5f016b3cbd42e96799e73d8adf7d8f9

See more details on using hashes here.

File details

Details for the file pegs-0.6.6-py3-none-any.whl.

File metadata

  • Download URL: pegs-0.6.6-py3-none-any.whl
  • Upload date:
  • Size: 604.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for pegs-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 322ff94ab7cf6ea2add3ce60e5f13545a06fa9b0d4a379c94e6a418bba842dcd
MD5 8da3a4520875fb977e07ff4a5c6a2179
BLAKE2b-256 0b76c212b151b82810fb5571743f95a09473724bfa94916d2cf411cca2e34e74

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page