Skip to main content

Python IO functions for GeneAbacus

Project description

GeneAbacus Python

This repository provides Python code for GeneAbacus. Using the profileio module, you can import profiles exported from GeneAbacus using the binary format. Profiles are loaded into Numpy arrays, usable for analysis.

From high-throughput sequencing mapped reads (SAM/BAM), GeneAbacus:

  • Creates profiles representing coverage depth per nucleotide,
  • Counts reads mapped within user selected features such as chromosomes or genes.

Download

See tags page.

Install

pip3 install geneabacus

Reading profiles from Python

import geneabacus.profileio
profiles = geneabacus.profileio.pfopen('profiles.bin.lz4', 'danrer_cdna_protein_coding_ensembl104.fon1.json')

To get a transcript profile:

profiles['ENSDART00000000486']
# will return
array([0., 0., 21., ..., 0., 3., 0.], dtype=float32)

License

GeneAbacus is distributed under the Mozilla Public License Version 2.0 (see /LICENSE).

Copyright © 2015-2023 Charles E. Vejnar

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

geneabacus-0.3.2.tar.gz (9.2 kB view details)

Uploaded Source

File details

Details for the file geneabacus-0.3.2.tar.gz.

File metadata

  • Download URL: geneabacus-0.3.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for geneabacus-0.3.2.tar.gz
Algorithm Hash digest
SHA256 1bde089f9f8c243cfa0b68ba366fc05e3d6d43fd537d5eef7e0a93d584426a74
MD5 7f3640af7b5db72433033fc46f154c91
BLAKE2b-256 f88e53725fe55da3aa9eb4492d240b57275028bc5952a82c6471e95a978e5c5e

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