rfmix_reader.read_fb

rfmix_reader.read_fb(filepath, nrows, ncols, row_chunk, col_chunk)[source]

Read and process data from a file in chunks, skipping the first 2 rows (comments) and 4 columns (loci annotation).

Parameters:
  • filepath (str) – Path to the binary file.

  • nrows (int) – Total number of rows in the dataset.

  • ncols (int) – Total number of columns in the dataset.

  • row_chunk (int) – Number of rows to process in each chunk.

  • col_chunk (int) – Number of columns to process in each chunk.

Returns:

dask.array

Return type:

Concatenated array of processed data.

Raises:
  • ValueError – If row_chunk or col_chunk is not a positive integer.:

  • FileNotFoundError – If the specified file does not exist.:

  • IOError – If there is an error reading the file.: