<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>PCA on PopGen Blog</title>
    <link>https://popgenblog.com/tags/pca/</link>
    <description>Recent content in PCA on PopGen Blog</description>
    <generator>Hugo -- 0.148.2</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 30 Jul 2025 20:47:41 +0200</lastBuildDate>
    <atom:link href="https://popgenblog.com/tags/pca/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SmartPCA Tutorial: How to Run PCA on Genetic Data</title>
      <link>https://popgenblog.com/posts/smartpca-tutorial/</link>
      <pubDate>Wed, 30 Jul 2025 20:47:41 +0200</pubDate>
      <guid>https://popgenblog.com/posts/smartpca-tutorial/</guid>
      <description>&lt;p&gt;This post is a continuation of the previous one, where I demonstrated how to perform PCA with PLINK. While PLINK’s PCA is great for quick, exploratory analysis, smartpca (part of the EIGENSOFT toolset) is particularly common in population-genetic and ancient-DNA studies.&lt;/p&gt;
&lt;p&gt;Smartpca can be compiled from the EIGENSOFT source or installed through conda. I covered the installation process in this earlier post: &lt;a href=&#34;https://popgenblog.com/posts/convert-eigenstrat-to-packedped/&#34;&gt;From EIGENSTRAT to PACKEDPED&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As before, I’ll use a small subset. The focus here is on the technical process. One key difference in this post is that I’ll perform Linkage Disequilibrium (LD) pruning, which reduces redundancy between correlated SNPs before PCA.&lt;/p&gt;</description>
    </item>
    <item>
      <title>PLINK PCA Tutorial: Running PCA in PLINK (Commands &#43; Output)</title>
      <link>https://popgenblog.com/posts/plink-pca-tutorial/</link>
      <pubDate>Tue, 29 Jul 2025 16:00:00 +0000</pubDate>
      <guid>https://popgenblog.com/posts/plink-pca-tutorial/</guid>
      <description>&lt;p&gt;In this post, I’ll demonstrate how to perform a PCA on a PLINK dataset.
Before we begin, we need to prepare a subset of samples we&amp;rsquo;re interested in analyzing.&lt;/p&gt;
&lt;p&gt;To do this, we’ll extract sample information from the &lt;code&gt;.fam&lt;/code&gt; file.
But first, we need to identify the samples of interest. For example, those from a specific population such as Sardinians.&lt;/p&gt;
&lt;p&gt;The easiest way is to open the corresponding &lt;code&gt;.ind&lt;/code&gt; file and look at the population column, which is the third column in each row. Open the file in a text editor, and search for the population name, in this case, Sardinian.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
