uniport.metrics.label_transfer

uniport.metrics.label_transfer(ref, query, rep='latent', label='cell_type')[source]

Label transfer

Parameters:
  • ref – reference containing the projected representations and labels

  • query – query data to transfer label

  • rep – representations to train the classifier. Default is latent

  • label – label name. Defautl is celltype stored in ref.obs

Return type:

transfered label