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
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(),
)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file genome_windows_generator-1.1.0.tar.gz.
File metadata
- Download URL: genome_windows_generator-1.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19bbe1b457b7b350672d26bf7706729f6af287b0ea1b0cbd3f6b76bd761885df
|
|
| MD5 |
8a1642321b899bea3459f7d15cb85630
|
|
| BLAKE2b-256 |
84c9d9c251bb13c297e531f2b015be2ac70272808dd64b9bc781879c37b623c3
|