Skip to main content

TODO: add peaksq description

Project description

Note: This package is in active development and functionality might change or not work correctly (yet)!

PeakSQL

Maintainability Test Coverage docs continuous-integration continuous-deployment

Dynamic machine learning database for genomics. Supports common bed-like dataformats like .bed, and .narrowPeak. bedgraph; and the binary bigwig format.

Installation

PeakSQL can be installed through pip:

pip install peaksql

Or installed from source:

git clone https://github.com/vanheeringen-lab/peaksql
cd peaksql
pip install .

Getting started

import peaksql

# paths to our files
db_file = 'peakSQL.sqlite'  # where to store our database
assembly = "/path/to/hg19.fa"
data = "binding_sites.bed"

# load data into database
db = peaksql.database.DataBase(db_file)
db.add_assembly(assembly, assembly="hg19", species="human")
db.add_data(intervals_file, assembly="hg19")

# now load as dataset
dataset = peaksql.BedRegionDataSet(db_file, seq_length=101, stride=200)

# use the dataset in your application
for seq, label in dataset:
    ...

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

peaksql-0.0.3.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

peaksql-0.0.3-py3-none-any.whl (13.8 kB view hashes)

Uploaded Python 3

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