scSemiProfiler.representative_selection.activeselection

scSemiProfiler.representative_selection.activeselection(name, representatives, cluster, batch, lambdasc, lambdapb)[source]

Use active learning to select the next batch of representatives

Parameters
  • name (str) – Project name.

  • representatives (str) – Path to a .txt file specifying the representatives.

  • cluster (str) – Path to a .txt file specifying the cluster labels.

  • batch (int) – Representative selection batch size.

  • lambdasc (float) – Scaling factor for the single-cell transformation difficulty from the representative to the target.

  • lambdapb (float) – Scaling factor for the pseudobulk data.difference.

Return type

None

Returns

None

Example

>>> name = 'project_name'
>>> representatives = name + '/status/init_representatives.txt'
>>> cluster = name + '/status/init_cluster_labels.txt'
>>> semidev.activeselection(name, representatives,cluster,batch=2,lambdasc=1,lambdapb=1)