scphylo.io.read#

scphylo.io.read(filepath)[source]#

Read genotype matrix and read-count matrix.

The genotype matrix must be in the in format of pandas.DataFrame The read-count matrix must be in the format of anndata.AnnData.

Parameters

filepath (str) – The path to the file. The extension must be one of [.tsv, .SC, .CFMatrix, .h5ad, .h5ad.gz, .nwk]

Returns

Depends on the format of the input file the output type is different.

Return type

pandas.DataFrame or anndata.AnnData

Examples#

Comparing two trees by Ancestor-Descendent

Comparing two trees by Ancestor-Descendent

Comparing two trees by CASet

Comparing two trees by CASet

Comparing two trees by DISC

Comparing two trees by DISC

Comparing two trees by Different-Lineage

Comparing two trees by Different-Lineage

Comparing two trees by Genotype-Similarity

Comparing two trees by Genotype-Similarity

Comparing two trees by MLTD

Comparing two trees by MLTD

Comparing two trees by MP3

Comparing two trees by MP3

Comparing two trees by Robinson-Foulds

Comparing two trees by Robinson-Foulds

Comparing two trees by TPTED

Comparing two trees by TPTED

Visualizing a tree in clonal format

Visualizing a tree in clonal format