scphylo.datasets.add_readcount#

scphylo.datasets.add_readcount(df_in, mean_coverage=50, seed=None)[source]#

Add readcount to the input genotype matrix.

Parameters
  • df_in (pandas.DataFrame) – Input genotype matrix.

  • mean_coverage (int, optional) – The average coverage, by default 50

  • seed (int, optional) – The seed for numpy random function, by default None

Returns

adata – The genotype data with readcount info contains layers of mutant and total.

Return type

anndata.AnnData