![](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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6b94a41077e84799117d0e1342f0d180816e8fa8dfe9019bf9a0d6f2b17589c |
|
MD5 | 080fce1b553a853194a95cf823738a43 |
|
BLAKE2b-256 | 3df94973f3bef32ccac95b08c9401873286520d0c56420ea7b107e1462cfa95f |