Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mnievesc
    Junior Member
    • Oct 2013
    • 3

    Help with smartpca?

    Hi everyone,

    This is my first post so I apologize if its not great, any advice on posting etiquette is valued highly!

    I am attempting to use smartpca from Eigensoft to perform a PCA with a subset of genotyped individuals and then project another individual onto the plot. I followed the instructions in the README file and made a list of population names and added the poplistname parameter to my par file:

    genotypename: PI.merged.ped
    snpname: PI4.merged.map
    indivname: PI.merged.ped
    evecoutname: PI.merged.evec
    evaloutname: PI4.merged.eval
    numoutlieriter: 0
    poplistname: PI.poplist.txt


    However, I keep getting this error message everytime I try to run the program:

    "fatalx:
    XTX has zero trace (perhaps no data)
    Aborted (Core dumped)"


    I tried using different formats in the par file but nothing fixed the issue.
    Does anyone have any advice regarding what I may be doing wrong?

    Many thanks!
  • Skiaphrene
    Member
    • Aug 2013
    • 18

    #2
    Hi mnievesc,



    I'm not familiar with Eigensoft's smartpca so I can't help you with this issue specifically. The error is telling you that somehow, with the input data you're giving it, the empirical covariance matrix (X transposed X) has a zero trace, i.e. the sum of it's diagonal elements is 0. I might be wrong but my intuition is that this means that all of your input variables are constants...



    If I'm wrong about this I could propose something else. If you're not afraid of using R to perform your PCA then you could use the package FactoMineR (available on CRAN: http://cran.r-project.org/web/packag...neR/index.html) - their PCA function supports the inclusion of "illustrative" variables and individuals that do not participate in the PC construction but that are projected onto the plots afterwards. You can read about this on this page on their website: http://factominer.free.fr/classical-...-analysis.html.



    Alternatively if Eigensoft's smartpca returns the "raw' loadings (eigen vector) matrix W, then you can calculate the coordinates of new individuals in the PC space T by multiplying their original (centred, scaled - as with the input) coordinates X by the loadings: T=XW. Check out the Wikipedia page for PCA for the math: http://en.wikipedia.org/wiki/Princip...onent_analysis.



    Hope this helps,

    -- Alex

    Comment

    • mnievesc
      Junior Member
      • Oct 2013
      • 3

      #3
      This is great advice thank you very much. I do use R regularly so I wll give this idea a try!

      Comment

      Latest Articles

      Collapse

      • mylaser
        Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by mylaser
        Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
        If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
        This guide explains everything you need to know about...
        Yesterday, 01:13 AM
      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      17 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      10 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      24 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-02-2026, 11:08 AM
      0 responses
      31 views
      0 reactions
      Last Post SEQadmin2  
      Working...