Skip to main content

Analysis of allele-specific methylation in bisulfite DNA sequencing.

Project description

pyllelic

Language grade: Python CodeFactor Codacy Badge Codacy Badge Code style: black PyPI GitHub

⭐   the project to show your appreciation. :arrow_upper_right:

pyllelic: a tool for detection of allelic-specific methylation variation in bisulfite DNA sequencing files.

Pyllelic documention is available at https://paradoxdruid.github.io/pyllelic/ and see pyllelic_notebook.ipynb for an interactive demonstration.

Example exploratory use in jupyter notebook

    from pyllelic import pyllelic

    config = pyllelic.configure(  # Specify file and directory locations
        base_path="/Users/abonham/documents/test_allelic/",
        prom_file="TERT-promoter-genomic-sequence.txt",
        prom_start="1293200",
        prom_end="1296000",
        chrom="5",
        offset=1298163,
    )

    files_set = pyllelic.make_list_of_bam_files(config)  # finds bam files

    # Run pyllelic; make take some time depending on number of bam files
    data = pyllelic.GenomicPositionData(config=config, files_set=files_set)

    positions = data.positions

    cell_types = data.cell_types

    means_df = data.means

    modes_df = data.modes
    
    diff_df = data.diffs

    individual_data = data.individual_data

    data.save("output.xlsx")  # save methylation results

    data.save_pickle("my_run.pickle")  # save data object for later analysis
    
    data.write_means_modes_diffs(filename="Run1_")  # write output data files

    data.histogram("CELL_LINE", "POSITION")  # visualize data for a point

    data.heatmap(min_values=1)  # methylation level heatmap

    data.quma_results["CELL_LINE"]  # see summary data for a cell line

Dependencies and Installation

Conda environment

Create a new conda environment using python 3.7:

conda create --name PYLLELIC python=3.7
conda activate PYLLELIC

Install pyllelic

pip install pyllelic

or

git clone https://github.com/Paradoxdruid/pyllelic.git

Authors

This software is developed as academic software by Dr. Andrew J. Bonham at the Metropolitan State University of Denver. It is licensed under the GPL v3.0.

This software incorporates implementation from QUMA, licensed under the GPL v3.0.

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

pyllelic-0.2.4.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

pyllelic-0.2.4-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file pyllelic-0.2.4.tar.gz.

File metadata

  • Download URL: pyllelic-0.2.4.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.6

File hashes

Hashes for pyllelic-0.2.4.tar.gz
Algorithm Hash digest
SHA256 97690e8810446f9e06210679e6cb3ec8430b159438fb3e508b3db3c3a06f314d
MD5 956ed920d6219a8d12c3fb699c22e55e
BLAKE2b-256 9250ef2e9b557d9978a2f277837768a0694b37dc382f33ca45a2a532a22dcba5

See more details on using hashes here.

File details

Details for the file pyllelic-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: pyllelic-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.6

File hashes

Hashes for pyllelic-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dc0585f67123a7f2adc5302f37c92330b426fff98acfefe36c1ec2d830d886ba
MD5 b9fe06ead2f68b9e1a5155571ffb1cd5
BLAKE2b-256 7ef71e6a5e7d05bc7352a3eab0f9bc7579ae0bbe4fdc7f7151a3f2c2bfda9647

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