adelie.matrix.snp_phased_ancestry#

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

Creates a SNP phased, ancestry matrix.

The SNP phased, ancestry matrix is a wrapper around the corresponding IO handler adelie.io.snp_phased_ancestry exposing some matrix operations.

Note

This matrix only works for naive method!

Parameters:
iosnp_phased_ancestry

IO handler for SNP phased, ancestry 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.