adelie.matrix.snp_unphased#

adelie.matrix.snp_unphased(io: ~adelie.io.snp_unphased, *, n_threads: int = 1, dtype: ~numpy.float32 | ~numpy.float64 = <class 'numpy.float64'>)[source]#

Creates a SNP unphased matrix.

The SNP unphased matrix is a wrapper around the corresponding IO handler adelie.io.snp_unphased exposing some matrix operations.

Note

This matrix only works for naive method!

Parameters:
iosnp_unphased

IO handler for SNP unphased data.

n_threadsint, optional

Number of threads. Default is 1.

dtypeUnion[float32, float64], optional

Underlying value type. Default is np.float64.

Returns:
wrap

Wrapper matrix object.