Skip to main content
. 2022 Oct 21;12(10):1539. doi: 10.3390/biom12101539
Algorithm 1 ACAM: Automatic Cell type Annotation Method.
  • Input: 

    The pre-processed data matrix X, marker gene set G

  • 1:

    Initialize thresh=10, k=1

  • 2:

    C1←SC3(X); C2←CIDR(X); C3←Seurat(X);

    C4←t-SNE+k-means(X); C5←SIMLR(X)

  • 3:

    Ri,j←ARI(Ci,Cj),i=1,…,5

  • 4:

    Remove the method of argminivar(Ri,·)

  • 5:

    Ai: Ai(u,v)←1,u,vfromthesamecluster,0,otherwise.

  • 6:

    A˜←∑i=14Ai

  • 7:

    Acon: Acon(u,v)←{1,A˜(u,v)=4,0,else.

  • 8:

    P={P1,P2,…,PC}←Louvain(Acon,thresh)

  • 9:

    for c = 1,…,C do

  • 11:

       P˜c←Oversample(Pc)

  • 11:

       Select m with mean(X[m,P˜c])>mean(X[m,U−Pc])

  • 12:

       wm←XGBoost(P˜c,U−Pc),m∈Gt,t=1,…T

  • 13:

       Scoret=∑m∈Gtwm,t=1,…,T

  • 14:

       yu←celltypet0: t0=argmaxt(Scoret),u∈Pc

  • 15:

    end for

  • 16:

    yu←kNN(X[,P],k),u∈U−P

  • Output: 

    Cell labels y