rfmix_reader.Chunk

class rfmix_reader.Chunk(nsamples=1024, nloci=1024)[source]

Chunk specification for a contiguous submatrix of the haplotype matrix.

Parameters:
  • nsamples (Optional[int], default=1024) – Number of samples in a single chunk, limited by the total number of samples. Set to None to include all samples.

  • nloci (Optional[int], default=1024) – Number of loci in a single chunk, limited by the total number of loci. Set to None to include all loci.

Notes

  • Small chunks may increase computational time, while large chunks may increase memory usage.

  • For small datasets, try setting both nsamples and nloci to None.

  • For large datasets where you need to use every sample, try setting nsamples=None and choose a small value for nloci.

__init__(nsamples=1024, nloci=1024)

Methods

__init__([nsamples, nloci])

Attributes

nloci

nsamples