SCMG
1.0.2
  • Installation
  • Trained model parameters
  • Reference and tutorial datasets
  • Tutorials
  • API
    • scmg
      • scmg package
        • Subpackages
        • Module contents
SCMG
  • API
  • scmg
  • scmg package
  • scmg.model package
  • scmg.model.cell_type_search module
  • View page source

scmg.model.cell_type_search module

class scmg.model.cell_type_search.CellTypeSearcher(ref_cell_emb_adata, emb_key='X_scmg')

Bases: object

search_ref_cell(query_emb, project_umap=True, n_jobs=32)

Search for the reference cells that are most similar to each query cell. :param query_emb: query embedding of shape (n_cells, n_features) :type query_emb: np.array

search_ref_cell_types(query_emb, radius=2, n_jobs=32)

Search for reference cell types that are most similar to the query cells :param query_emb: query embedding of shape (n_cells, n_features) :type query_emb: np.array :param radius: soft search radius :type radius: float

Previous Next

© Copyright .

Built with Sphinx using a theme provided by Read the Docs.