OSCR

Semi-supervised Omics Factor Analysis (SOFA) disentangles known and latent sources of variation in multi-omic data.

Code ↔ Paper

3 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 3 matches
  1. [1] § Methods › Data processing › TCGA pan-gynecologic atlas ↔ sofa/utils/utils.py, lines 18–105 · score 0.60 · highly variable features, log transformed, variance
  2. [2] § Methods › Data processing › Pan-cancer DepMap ↔ sofa/utils/utils.py, lines 18–105 · score 0.59 · highly variable genes, log transformed
  3. [3] § Methods › Downstream analysis › Gene set overrepresentation analysis (ORA) ↔ sofa/plots/plots.py, lines 348–407 · score 0.52 · enrichr API, overrepresentation, background, gene

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 504 lines · 16 KB · MIT · 2 matches

  1. #!/usr/bin/env python3
  2. import pyro
  3. import torch
  4. import numpy as np
  5. import muon as mu
  6. from muon import MuData
  7. from sklearn.preprocessing import LabelEncoder
  8. from anndata import AnnData
  9. from ..models.SOFA import SOFA
  10. import pandas as pd
  11. import scanpy as sc
  12. from typing import Union
  13. import numpy as np
  14. from sklearn.preprocessing import LabelEncoder, StandardScaler
  15. import gseapy as gp
  16. from sklearn.metrics import log_loss, accuracy_score
  17. def get_ad(data: pd.DataFrame,
  18. llh: str="gaussian",
  19. select_hvg: bool=False,
  20. log: bool=False,
  21. scale: bool=False,
  22. scaling_factor: float=0.1
  23. ) -> AnnData:
  24. """
  25. Convert a numpy array to an AnnData object.
  26. Parameters:
  27. -----------
  28. data : pandas DataFrame
  29. The input data to be converted to AnnData object.
  30. name : str
  31. The name of the variable.
  32. llh : str, optional
  33. The likelihood of the data. It should be "gaussian", "bernoulli" or
  34. "categorical". Default is "gaussian".
  35. select_hvg: bool, optional
  36. whether to select highly variable features.
  37. log: bool, optional
  38. whether to log transform the data.
  39. scale: bool, optional
  40. whether to center and scale the data.
  41. scaling_factor: float, optional
  42. The scaling factor to scale the likelihood for this view.
  43. It is a crucial hyperparameter. Too high scaling parameters can lead to overfitting
  44. (Factors don't explain variance of Xmdata, but perfectly predict Ymdata).
  45. Too low values can lead to the model ignoring the covariate guidance. In practice
  46. a value of 0.1 is a good starting point. Default is 0.1.
  47. Returns:
  48. --------
  49. adata : AnnData
  50. The converted AnnData object.
  51. """
  52. data =data.loc[:,~data.columns.duplicated()]
  53. data_ = data.loc[~np.all(pd.isnull(data), axis=1),:]
  54. data = data.loc[:,~np.any(pd.isnull(data_), axis=0)]
  55. mask = ~np.any(pd.isnull(data), axis=1)
  56. mask.index = mask.index.astype(str)
  57. if llh == "multinomial" or llh == "bernoulli":
  58. if type(data) != int:
  59. label_encoder = LabelEncoder()
  60. # Apply LabelEncoder to each column
  61. encoded_data = data.values.flatten()
  62. encoded_data = label_encoder.fit_transform(encoded_data)
  63. encoded_data = encoded_data.reshape(data.shape)
  64. adata = AnnData(encoded_data, dtype=np.float32)
  65. label_mapping = {label: encoded_label for label, encoded_label in zip(label_encoder.classes_, label_encoder.transform(label_encoder.classes_))}
  66. else:
  67. encoded_data = data.values
  68. if data.shape[1] == 1:
  69. adata = AnnData(encoded_data.reshape(-1,1), dtype=np.float32)
  70. adata.var_names = data.columns
  71. else:
  72. adata = AnnData(encoded_data, dtype=np.float32)
  73. adata.var_names = data.columns
  74. data.index = data.index.astype(str)
  75. adata.obs_names = data.index.tolist()
  76. if log:
  77. sc.pp.log1p(adata)
  78. adata.obsm["mask"] = mask.values
  79. if select_hvg:
  80. adata_filtered = adata[~np.all(data.isna(),axis=1),:]
  81. adata = adata[:,~np.any(np.isnan(adata_filtered.X),axis=0)]
  82. adata_filtered = adata_filtered[:,~np.any(np.isnan(adata_filtered.X),axis=0)]
  83. sc.pp.highly_variable_genes(adata_filtered, n_top_genes=2000)
  84. adata = adata[:,adata_filtered.var["highly_variable"]]
  85. adata.var["highly_variable"] = adata_filtered.var["highly_variable"]
  86. if scale:
  87. scaler = StandardScaler()
  88. adata.X = scaler.fit_transform(adata.X)
  89. adata.X[adata.obsm["mask"] == False] = 0
  90. adata.uns["llh"] = llh
  91. adata.uns["scaling_factor"] = scaling_factor
  92. return adata
  93. def calc_var_explained(X_pred, X):
  94. """
  95. Calculate R2 for X and X_pred.
  96. Parameters
  97. ----------
  98. X_pred : numpy.array
  99. Predicted X.
  100. X : numpy.array
  101. Input X.
  102. Returns
  103. -------
  104. float
  105. R2 value for X and X_pred.
  106. """
  107. num = np.sum(np.square(X-X_pred))
  108. denom = np.sum(np.square(X))
  109. vexp= 1 - num/denom
  110. if vexp < 0:
  111. vexp = 0
  112. return vexp
  113. def get_var_explained_per_view_factor(model: SOFA):
  114. """
  115. Calculate the fraction of variance of each view
  116. that is explained by each factor.
  117. Parameters
  118. ----------
  119. model : SOFA
  120. The trained SOFA model.
  121. Returns
  122. -------
  123. numpy.array
  124. Array containing the fraction of variance of each view
  125. that is explained by each factor.
  126. """
  127. X = [i.cpu().numpy() for i in model.X]
  128. vexp = []
  129. if not hasattr(model, "Z"):
  130. model.Z = model.predict("Z", num_split=10000)
  131. if not hasattr(model, f"W"):
  132. model.W = [model.predict(f"W_{i}", num_split=10000) for i in range(len(X))]
  133. for i in range(len(X)):
  134. mask = model.Xmask[i].cpu().numpy()
  135. vexp_factor = []
  136. for j in range(model.num_factors):
  137. X_pred_factor = model.Z[mask,j, np.newaxis] @ model.W[i][np.newaxis,j,:]
  138. vexp_factor.append(calc_var_explained(X_pred_factor, X[i][mask,:]))
  139. vexp.append(np.stack(vexp_factor).reshape(model.num_factors,1))
  140. vexp = np.hstack(vexp)
  141. return vexp
  142. def calc_var_explained_(X_pred, X):
  143. """
  144. Calculate the fraction of variance of each view
  145. that is explained by each factor.
  146. Parameters
  147. ----------
  148. X_pred : numpy.array
  149. Predicted X.
  150. X : numpy.array
  151. Input X.
  152. Returns
  153. -------
  154. numpy.array
  155. Array containing the fraction of variance of each view
  156. that is explained by each factor.
  157. """
  158. vexp = []
  159. for i in range(len(X_pred)):
  160. num = np.sum(np.square(X-X_pred[i]))
  161. denom = np.sum(np.square(X))
  162. vexp.append(1 - num/denom)
  163. vexp = np.stack(vexp)
  164. vexp[vexp < 0] = 0
  165. return vexp
  166. def get_loadings(model: SOFA,
  167. view: str
  168. )-> pd.DataFrame:
  169. """
  170. Get the loadings of the model for a specific view.
  171. Parameters
  172. ----------
  173. model : SOFA
  174. The trained SOFA model.
  175. view : str
  176. Name of the view to get the loadings for.
  177. Returns
  178. -------
  179. pd.DataFrame
  180. DataFrame containing the loadings of the model for the specified view.
  181. """
  182. ind_labels = np.array([f"Factor_{i+1}" for i in range(model.num_factors)], dtype=object)
  183. if model.Ymdata is not None:
  184. guided_factors = list(model.Ymdata.mod.keys())
  185. for i in range(len(guided_factors)):
  186. s = " (" + guided_factors[i] + ")"
  187. ind_labels[model.design.cpu().numpy()[i,:]==1] = ind_labels[model.design.cpu().numpy()[i,:]==1] + s
  188. if hasattr(model, f"W"):
  189. W = pd.DataFrame(model.W[model.views.index(view)], index = ind_labels, columns = model.Xmdata.mod[view].var_names)
  190. else:
  191. model.W = [model.predict(f"W_{i}", num_split=10000) for i in range(len(model.X))]
  192. W = pd.DataFrame(model.W[model.views.index(view)], index = ind_labels, columns = model.Xmdata.mod[view].var_names)
  193. return W
  194. def get_factors(model: SOFA,
  195. )-> pd.DataFrame:
  196. """
  197. Get the loadings of the model for a specific view.
  198. Parameters
  199. ----------
  200. model : SOFA
  201. The trained SOFA model.
  202. Returns
  203. -------
  204. pd.DataFrame
  205. DataFrame containing the loadings of the model for the specified view.
  206. """
  207. col_labels = np.array([f"Factor_{i+1}" for i in range(model.num_factors)], dtype=object)
  208. if model.Ymdata is not None:
  209. guided_factors = list(model.Ymdata.mod.keys())
  210. for i in range(len(guided_factors)):
  211. s = " (" + guided_factors[i] + ")"
  212. col_labels[model.design.cpu().numpy()[i,:]==1] = col_labels[model.design.cpu().numpy()[i,:]==1] + s
  213. if hasattr(model, f"Z"):
  214. Z = pd.DataFrame(model.Z, index = model.Xmdata.obs.index, columns = col_labels)
  215. else:
  216. model.Z = model.predict("Z")
  217. Z = pd.DataFrame(model.Z, index = model.Xmdata.obs.index, columns = col_labels)
  218. return Z
  219. def get_top_loadings(model,view, factor, sign="+", top_n=100):
  220. """
  221. Get the top_n loadings of the model for a specific view.
  222. Parameters
  223. ----------
  224. model : SOFA
  225. The trained SOFA model.
  226. view : str
  227. Name of the view to get the loadings for.
  228. factor : int
  229. Index of the factor to get the top loadings for.
  230. Should be between 1 and the total number of factors.
  231. sign : str
  232. Sign of the loadings to get. Default is "+".
  233. top_n : int
  234. Number of top loadings to get. Default is 100.
  235. Returns
  236. -------
  237. pandas.DataFrame
  238. DataFrame containing the top_n loadings of the model for the specified view.
  239. """
  240. assert(sign=="+" or sign=="-")
  241. # correct for pythonic indexing
  242. factor = factor-1
  243. W = get_loadings(model, view)
  244. W = W.iloc[factor,:]
  245. if sign == "+":
  246. idx = np.argpartition(W, -top_n)[-top_n:]
  247. topW = W.index[idx]
  248. elif sign=="-":
  249. idx = np.argpartition(W*-1, -top_n)[-top_n:]
  250. topW = W.index[idx]
  251. return topW.tolist()
  252. def get_gsea_enrichment(gene_list, db, background):
  253. """
  254. Get gene set enrichment analysis results based on a gene_list using gseapy.
  255. Parameters
  256. ----------
  257. gene_list : list
  258. List of strings containing gene names.
  259. db : list
  260. List of strings containing database names to be used for enrichment analysis.
  261. background : list
  262. List of strings containing gene names to be used as background.
  263. Returns
  264. -------
  265. Enrichr object
  266. Enrichr object containing the results of the enrichment analysis.
  267. """
  268. enr = gp.enrichr(gene_list=gene_list, # or "./tests/data/gene_list.txt",
  269. gene_sets=[db],
  270. organism='human', # don't forget to set organism to the one you desired! e.g. Yeast
  271. outdir=None,# don't write to disk
  272. background=background
  273. )
  274. return enr
  275. def calc_rmse(X, X_pred):
  276. """
  277. Calculate the root mean squared error between X and X_pred.
  278. Parameters
  279. ----------
  280. X_pred : numpy.array
  281. Predicted X.
  282. X : numpy.array
  283. Input X.
  284. Returns
  285. -------
  286. float
  287. The root mean squared error of X of the model.
  288. """
  289. rmse = np.sqrt(np.sum(np.square(X-X_pred))/(X.shape[0]*X.shape[1]))
  290. return rmse
  291. def get_rmse(model):
  292. """
  293. Calculate the root mean squared error of the model.
  294. Parameters
  295. ----------
  296. model : SOFA
  297. THe trained SOFA model.
  298. Returns
  299. -------
  300. dict
  301. The root mean squared error of X of the model for each view.
  302. """
  303. if not hasattr(model, f"X_pred"):
  304. model.X_pred = [model.predict(f"X_{i}", num_split=10000) for i in range(len(model.X))]
  305. rmse = {}
  306. for i in range(len(model.X)):
  307. rmse[model.views[i]] = calc_rmse(model.X[i].cpu().numpy(), model.X_pred[i])
  308. return rmse
  309. def sigmoid(x):
  310. return 1 / (1 + np.exp(-x))
  311. def softmax(x):
  312. return np.exp(x) / np.sum(np.exp(x))
  313. def get_guide_error(model):
  314. """
  315. Calculate the root mean squared error for continuous, binary crossentropy for binary or
  316. categorical cross entropy for categorical Y of the model.
  317. Parameters
  318. ----------
  319. model : SOFA
  320. The trained SOFA model.
  321. Returns
  322. -------
  323. dict
  324. Containing the root mean squared error for continuous, binary crossentropy for binary or
  325. categorical cross entropy for categorical Y of the model.
  326. """
  327. if model.Ymdata is None:
  328. raise ValueError("Model does not have guide variables!")
  329. if not hasattr(model, "Y_pred"):
  330. model.Y_pred = []
  331. for i in range(len(model.Y)):
  332. model.Y_pred.append(model.predict(f"Y_{i}"))
  333. error = {}
  334. for ix, (i,j) in enumerate(zip(model.Y, model.Y_pred)):
  335. i = i.cpu().numpy()
  336. if model.guide_llh[ix] == "gaussian":
  337. error[model.guide_views[ix]]= calc_rmse(i,j)
  338. elif model.guide_llh[ix] == "bernoulli":
  339. error[model.guide_views[ix]] = log_loss(i,sigmoid(j))
  340. elif model.guide_llh[ix] == "multinomial":
  341. error[model.guide_views[ix]] = log_loss(i,softmax(j))
  342. return error
  343. def save_model(model, file_prefix):
  344. """
  345. Saves a model as h5mu and save files to disk.
  346. Model hyperparameters, input data and predictions are saved in the h5mu file
  347. and the model parameters are saved in the save file.
  348. Both files are needed to load a model and continue training.
  349. Parameters
  350. ----------
  351. model : SOFA
  352. The trained SOFA model.
  353. file_prefix : str
  354. Filename prefix to save the model as h5mu and save files.
  355. Returns
  356. -------
  357. tuple(str,str)
  358. Filenames of the saved h5mu and save files.
  359. """
  360. model_mdata = model.save_as_mudata()
  361. try:
  362. model_mdata.write(file_prefix+".h5mu")
  363. except RuntimeError:
  364. print("Metadata probably too long to save. Please save the metadata separately. \nSaving model without metadata!")
  365. # remove metadata if saving does not work
  366. model_mdata.obs = pd.DataFrame(index=model_mdata.obs.index)
  367. # save model without metadata
  368. model_mdata.write(file_prefix+".h5mu")
  369. except TypeError:
  370. print("Mixed type columns are currently not supported when saving metadata of a model. Please save the metadata separately.\nSaving model without metadata!")
  371. # remove metadata if saving does not work
  372. model_mdata.obs = pd.DataFrame(index=model_mdata.obs.index)
  373. # save model without metadata
  374. model_mdata.write(file_prefix+".h5mu")
  375. except Exception:
  376. print("Unexpected error! \nSaving model without metadata!")
  377. # remove metadata if saving does not work
  378. model_mdata.obs = pd.DataFrame(index=model_mdata.obs.index)
  379. # save model without metadata
  380. model_mdata.write(file_prefix+".h5mu")
  381. dict_ = pyro.get_param_store()
  382. dict_.save(file_prefix +".save")
  383. return file_prefix +".h5mu", file_prefix +".save"
  384. def load_model(file_prefix):
  385. """
  386. Load a saved model from disk.
  387. The function requires an h5mu and a save file to load model.
  388. Parameters
  389. ----------
  390. file_prefix : str
  391. Filename prefix to save the model as h5mu and save files.
  392. Returns
  393. -------
  394. SOFA
  395. The loaded SOFA model.
  396. """
  397. mdata = mu.read(file_prefix +".h5mu")
  398. if "guide_mod" in list(mdata.uns.keys()):
  399. Ymdata = MuData({i:mdata.mod[i] for i in mdata.uns["guide_mod"]})
  400. Xmdata = MuData({i:mdata.mod[i] for i in mdata.mod if i not in mdata.uns["guide_mod"]})
  401. design = mdata.uns["input_design"]
  402. else:
  403. Xmdata = MuData({i:mdata.mod[i] for i in mdata.mod})
  404. Ymdata = None
  405. design = np.array(0)
  406. num_factors = mdata.uns["input_num_factors"]
  407. # TODO find way to save and load mixed column metadata
  408. # check if entries in obs (metadata)
  409. if mdata.obs.shape[1] !=0:
  410. metadata = mdata.obs
  411. else:
  412. metadata = None
  413. horseshoe = mdata.uns["horseshoe"]
  414. # apparently mu.read does not read None type in uns so
  415. # need to check if seed is there, if not set to None
  416. if "seed" not in mdata.uns:
  417. seed = None
  418. else:
  419. seed = mdata.uns["seed"]
  420. pyro.set_rng_seed(seed)
  421. device = mdata.uns["device"]
  422. model = SOFA(Xmdata,
  423. num_factors=num_factors,
  424. Ymdata = Ymdata,
  425. design = torch.tensor(design),
  426. device=device,
  427. horseshoe=horseshoe,
  428. subsample=0,
  429. metadata = metadata,
  430. seed=seed)
  431. model.Z = mdata.uns["Z"]
  432. W = [mdata.uns[f"W_{i}"] for i in model.views]
  433. model.W = W
  434. model.X_pred =[mdata.uns[f"X_{i}"] for i in model.views]
  435. if Ymdata is not None:
  436. model.Y_pred = [mdata.uns[f"Y_pred_{i}"] for i in Ymdata.mod]
  437. model.history = mdata.uns["history"]
  438. # load pyro paramstore
  439. dict_ = pyro.get_param_store()
  440. dict_.load(file_prefix+".save")
  441. return model

utils.py at commit 2e56def, under MIT · at the source

Overview

  1. Collaboration for joint PhD degree between EMBL and Heidelberg University, Faculty of Biosciences,Heidelberg, Germany
  2. Genome Biology Unit, EMBL,Heidelberg, Germany
  3. Molecular Medicine Partnership Unit (MMPU), Heidelberg, Germany
  4. Department of Medicine V, Hematology, Oncology and Rheumatology, University Hospital Heidelberg,Heidelberg, Germany
  5. Department of Hematology and Oncology, University Hospital Düsseldorf,Düsseldorf, Germany
  6. Heidelberg University, Faculty of Medicine, and Heidelberg University Hospital, Institute for Computational Biomedicine,Heidelberg, Germany
  7. European Molecular Biology Laboratory, European Bioinformatics Institute (EMBL-EBI),Hinxton, UK
Journal: Nature communications, volume 17, issue 1, article 8725
Dates: received 7 March 2025; accepted 11 June 2026; published online 20 August 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-026-74694-6 · PMID 42624833 · PMCID PMC13493367 · OpenAlex W6893097162
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), human (organism), methods / tools (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Connectivity
Keywords: Data integration, Software, Statistical methods
MeSH: Multiomics*, Brain, Factor Analysis, Statistical, Heart Failure, Humans, Neoplasms, Proteomics (* major topic)
Topic: Advanced Proteomics Techniques and Applications (Spectroscopy, Chemistry), according to OpenAlex
Funding: This work was funded by the European Research Council (Synergy Grant DECODE under grant agreement no. 810296)
Citations: not cited yet (Europe PMC); 95 references in the paper

Abstract

A fundamental design pattern in biomolecular studies is to assay the same set of samples (organisms, tissue biopsies, or individual cells) by multiple different ‘omics assays. Group Factor Analysis (GFA) and its adaptation to high-dimensional settings, Multi-Omics Factor Analysis (MOFA), are widely used as a first-line approach to analyze such data and are effective in detecting patterns of correlation, organize them into so-called latent factors, and identify common and assay-specific factors. However, in many applications, a subset of the found factors just rediscovers already known covariates (e.g., disease subtypes, environmental covariates) while others may represent genuine novelty.

Here, we present Semi-supervised Omics Factor Analysis (SOFA), a method that incorporates known covariates into the model upfront and focuses the factor discovery on novel sources of variation. We show SOFA’s effectiveness for discovering novel patterns by applying it to cancer, brain development and heart failure multi-omic data sets.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repositories

Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.

Zenodo 14761127

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
At the source:

tcapraz/SOFA

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 2e56defd2ef8ced64bf642c121297712b5f8b8bc, 15 October 2025
Languages: Python (11), Jupyter (4)
Size: 30 files, 15 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, license file, environment (pyproject.toml, docs/requirements.txt), tests, continuous integration, documentation, 4 notebooks
Not found: CITATION.cff
Tools: NumPy (9 files), pandas (8 files), PyTorch (8 files), anndata (6 files), scikit-learn (5 files), Matplotlib (4 files), Scanpy (4 files), seaborn (4 files), Pyro (3 files), statsmodels (2 files), SciPy (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
17 files

Zenodo 19594991

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)

Code availability

SOFA is implemented in the Python package biosofa and is available on github (https://github.com/tcapraz/SOFA) and PyPI (https://pypi.org/project/biosofa/), along with documentation and example analysis notebooks. Code and processed data to reproduce the analysis and figures are available on Zenodo 10.5281/zenodo.14761127. The package version used to perform the presented analyses and generate the figures are available on Zenodo https://zenodo.org/records/19594991.

Reproduced under the paper's license (CC BY), from the paper cited above.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 15 scripts, each with its path and the digest of its content;
  • 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data availability

Processed data to reproduce the analysis and figures are available on Zenodo 10.5281/zenodo.14761127.Source data are provided with this paper.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 3 keywords, 7 MeSH terms, 1 funder, 82 references.

Cite

This paper

Capraz, T., Vöhringer, H., Kruger Serrano, K. S. A., Ramirez Flores, R. O., Saez-Rodriguez, J., & Huber, W. (2026). Semi-supervised Omics Factor Analysis (SOFA) disentangles known and latent sources of variation in multi-omic data. Nature communications, 17(1), 8725. https://doi.org/10.1038/s41467-026-74694-6

BibTeX

@article{capraz2026semi,
author = {Capraz, Tümay and Vöhringer, Harald and Kruger Serrano, Klaus Sebastian Augusto and Ramirez Flores, Ricardo Omar and Saez-Rodriguez, Julio and Huber, Wolfgang},
title = {{Semi-supervised Omics Factor Analysis (SOFA) disentangles known and latent sources of variation in multi-omic data}},
journal = {Nature communications},
year = {2026},
month = aug,
volume = {17},
number = {1},
pages = {8725},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-74694-6},
url = {https://doi.org/10.1038/s41467-026-74694-6},
pmid = {42624833},
pmcid = {PMC13493367}
}

RIS

TY - JOUR
AU - Capraz, Tümay
AU - Vöhringer, Harald
AU - Kruger Serrano, Klaus Sebastian Augusto
AU - Ramirez Flores, Ricardo Omar
AU - Saez-Rodriguez, Julio
AU - Huber, Wolfgang
TI - Semi-supervised Omics Factor Analysis (SOFA) disentangles known and latent sources of variation in multi-omic data
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/08/20
VL - 17
IS - 1
SP - 8725
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-74694-6
UR - https://doi.org/10.1038/s41467-026-74694-6
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-74694-6",
"type": "article-journal",
"title": "Semi-supervised Omics Factor Analysis (SOFA) disentangles known and latent sources of variation in multi-omic data",
"container-title": "Nature communications",
"author": [
{
"family": "Capraz",
"given": "Tümay"
},
{
"family": "Vöhringer",
"given": "Harald"
},
{
"family": "Kruger Serrano",
"given": "Klaus Sebastian Augusto"
},
{
"family": "Ramirez Flores",
"given": "Ricardo Omar"
},
{
"family": "Saez-Rodriguez",
"given": "Julio"
},
{
"family": "Huber",
"given": "Wolfgang"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "8725",
"DOI": "10.1038/s41467-026-74694-6",
"PMID": "42624833",
"PMCID": "PMC13493367",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-74694-6",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
20
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1093/bioinformatics/btag652 [code]
mmVelo: a deep generative model for estimating cell state-dependent dynamics across multiple modalities.
Journal: Bioinformatics (Oxford, England)
In common: Pyro, anndata, Scanpy, 8 other tools, genetics / omics, 5 references
[2] doi:10.1038/s44320-026-00208-7 [code]
Interpretable deep generative ensemble learning for single-cell omics with Hydra.
Journal: Molecular systems biology
In common: anndata, Scanpy, PyTorch, 6 other tools, 5 references
[3] doi:10.1016/j.celrep.2026.117110 [code]
Single-nucleus multiome analysis in the human prefrontal cortex identifies gene expression and cis-regulatory elements associated with aging.
Journal: Cell reports
In common: anndata, Scanpy, statsmodels, 6 other tools, genetics / omics, 3 references
[4] doi:10.1523/eneuro.0362-25.2026 [code]
Similarities between &lt;i&gt;Ciona&lt;/i&gt; Dorsal Motor Ganglion and Vertebrate Cerebellum: Did a Chordate Ancestor Already Show D/V Subdivision within a Hindbrain Precursor?
Journal: eNeuro
In common: Pyro, anndata, Scanpy, 8 other tools, 1 reference
[5] doi:10.1038/s41592-026-03057-2 [code]
CREsted: modeling genomic and synthetic cell-type-specific enhancers across tissues and species.
Journal: Nature methods
In common: anndata, Scanpy, statsmodels, 7 other tools, methods / tools, genetics / omics, 2 references
[6] doi:10.1038/s41514-026-00391-9 [code]
Region-specific transcriptional signatures of brain aging in the absence of neuropathology at the single-cell level.
Journal: npj aging
In common: anndata, Scanpy, statsmodels, 7 other tools, genetics / omics, 2 references
[7] doi:10.1016/j.xgen.2026.101217 [code]
ProtoCloud: A prototypical self-explaining model for single-cell analysis.
Journal: Cell genomics
In common: anndata, Scanpy, PyTorch, 6 other tools, genetics / omics, 3 references
[8] doi:10.64898/2026.03.30.714220 [code]
An integrated single cell and spatial omics atlas of human prenatal development
Journal: bioRxiv (preprint)
In common: anndata, Scanpy, statsmodels, 7 other tools, 2 references
[9] doi:10.1093/bib/bbag298 [code]
Empowering multifaceted analysis of spatial transcriptomics data with RGAST.
Journal: Briefings in bioinformatics
In common: anndata, Scanpy, PyTorch, 6 other tools, methods / tools, genetics / omics, 2 references
[10] doi:10.1002/advs.77003 [code]
SemanticST: A Scalable Multi-Contextual Graph Learning Framework for Uncovering Spatial Niches and Robust Multi-Sample Integration in Spatial Transcriptomics.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: anndata, Scanpy, PyTorch, 6 other tools, methods / tools, genetics / omics, 2 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.