Skip to main content
. 2023 Jul 13;26(8):107378. doi: 10.1016/j.isci.2023.107378
Algorithm 1: Shared and Specific Representation Learning
  • Input: Multi-omics dataset X={X1,X2,,XV}, number of clusters K, batch size M, temperature parameter τ

  • 1:

    Normalization

  • 2:

    Initialize the parameters of autoencoders and projection head f(·)

  • 3:

    While not reaching the maximum epoch T do

  • 4:

     randomly select M samples from Xv

  • 5:

     generate shared and specific representation from eachomic using Eq.(1)-(4)

  • 6:

     compute reconstruction loss Lrec by Eq.(5)

  • 7:

     compute contrastive loss Lcon by Eq.(6)-(10)

  • 8:

     compute orthogonality loss Lort by Eq.(11)

  • 9:

     compute overall loss L and updata entire network by Eq.(12)

  • 10:

     generate the shared information matrix Cv and specific information matrix Sv for all samples

  • 11:

    End while

  • Output: Shared information matrix Cv and specific information matrix Sv