![](https://github.com/zommiommy/genome_windows_generator/workflows/Python%20package/badge.svg)
Project description
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:
from genome_windows_generator import GenomeWindowsGenerator, NoisyWindowsGenerator
data_generator = 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,
steps_per_epoch=len(data_generator),
generator=data_generator.train(),
validation_steps=data_generator.test(),
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for genome_windows_generator-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12ce741e025a4bff9bf48c8d1f654b565851db4340fab7c68ae6bfe95723a820 |
|
MD5 | eb239c168b3c84a2002e2689283dd6ea |
|
BLAKE2b-256 | b2d521265f3f8afac4c87376aeda8ef0ff22251417a58abd22461e3dd7da6fa2 |