Logo: to the web site of Uppsala University

uu.sePublications from Uppsala University
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Dimensionality reduction of genetic data using contrastive learning
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology, Division of Scientific Computing. Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology, Computational Science. Uppsala University, Science for Life Laboratory, SciLifeLab.
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology, Division of Scientific Computing. Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology, Computational Science. Uppsala University, Science for Life Laboratory, SciLifeLab.ORCID iD: 0000-0003-0458-6902
2026 (English)In: Genetics, ISSN 0016-6731, E-ISSN 1943-2631, Vol. 232, no 1, article id iyaf068Article in journal (Refereed) Published
Abstract [en]

We introduce a framework for using contrastive learning for dimensionality reduction on genetic datasets to create principal component analysis (PCA)-like population visualizations. Contrastive learning is a self-supervised deep learning method that uses similarities between samples to train the neural network to discriminate between samples. Many of the advances in these types of models have been made for computer vision, but some common methodology does not translate well from image to genetic data. We define a loss function that outperforms loss functions commonly used in contrastive learning, and a data augmentation scheme tailored specifically towards SNP genotype datasets. We compare the performance of our method to PCA and contemporary nonlinear methods with respect to how well they preserve local and global structure, and how well they generalize to new data. Our method displays good preservation of global structure and has improved generalization properties over t-distributed stochastic neighbor embedding, Uniform Manifold Approximation and Projection, and popvae, while preserving relative distances between individuals to a high extent. A strength of the deep learning framework is the possibility of projecting new samples and fine-tuning to new datasets using a pretrained model without access to the original training data, and the ability to incorporate more domain-specific information in the model. We show examples of population classification on two datasets of dog and human genotypes.

Place, publisher, year, edition, pages
Oxford University Press, 2026. Vol. 232, no 1, article id iyaf068
Keywords [en]
deep learning, machine learning, PCA, dimensionality reduction, population genetics
National Category
Bioinformatics (Computational Biology)
Research subject
Scientific Computing; Biology with Specialisation in Human Evolution and Genetics
Identifiers
URN: urn:nbn:se:uu:diva-572330DOI: 10.1093/genetics/iyaf068ISI: 001479773500001PubMedID: 40194517Scopus ID: 2-s2.0-105026868741OAI: oai:DiVA.org:uu-572330DiVA, id: diva2:2019338
Projects
eSSENCE - An eScience CollaborationAvailable from: 2025-12-05 Created: 2025-12-05 Last updated: 2026-03-25Bibliographically approved

Open Access in DiVA

fulltext(1423 kB)86 downloads
File information
File name FULLTEXT01.pdfFile size 1423 kBChecksum SHA-512
017c2e5be26942fb0fc8bc7185b146fe59406fe5692099fa09d06b9771131f949e0fc506cb284fd5fb23fd55a6d9ffa31b5e9e053cabf7d4503f1456990b6afe
Type fulltextMimetype application/pdf

Other links

Publisher's full textPubMedScopus

Authority records

Thor, FilipNettelblad, Carl

Search in DiVA

By author/editor
Thor, FilipNettelblad, Carl
By organisation
Division of Scientific ComputingComputational ScienceScience for Life Laboratory, SciLifeLab
In the same journal
Genetics
Bioinformatics (Computational Biology)

Search outside of DiVA

GoogleGoogle Scholar
Total: 86 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

doi
pubmed
urn-nbn

Altmetric score

doi
pubmed
urn-nbn
Total: 53 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf