Skip to main content

![](https://github.com/zommiommy/genome_windows_generator/workflows/Python%20package/badge.svg)

Project description

Travis CI build SonarCloud Quality SonarCloud Maintainability Codacy Maintainability Maintainability Pypi project Pypi total project downloads

How do I install this package?

As usual, just download it using pip:

pip install genome_windows_generator

Tests Coverage

Since some software handling coverages sometime get slightly different results, here’s three of them:

Coveralls Coverage SonarCloud Coverage Code Climate Coverate

from genome_windows_generator import GenomeWindowsGenerator, NoisyWindowsGenerator

dg = NoisyWindowsGenerator(
    assembly="hg19",
    window_size=200,
    batch_size=3,
    buffer_size=5,
    test_chromosomes=["chr1", "chr5"]
)

The methods train, test returns two independant generator of the train data and test data respectivly.

This is package is mainly meant to be used with keras’s fit_generator.

model.fit_generator(
    epochs=100,
    generator=dg.generator(),
    steps_per_epoch=dg.steps_per_epoch(),
    validation_data=dg.validation_data(),
    validation_steps=dg.validation_steps(),
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for genome-windows-generator, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size genome_windows_generator-1.1.0.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page