gdata.GenomeDataBuilder.add_file#
- GenomeDataBuilder.add_file(key, w5z)#
Adds a single file to the dataset.
This method processes a file associated with a key and adds it to the genomic data. The data is read from a W5Z file, and stored in chunks. Each chunk has the shape (num_segments, num_columns), where num_columns is determined by the resolution. The values are averaged if the resolution is greater than 1.
- Parameters:
key (str) – The key associated with the file.
w5z (Path) – The path to the W5Z file containing genomic data.