Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

  • #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


    • #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

      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM
      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 11:49 AM
      0 responses
      13 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, Yesterday, 08:47 AM
      0 responses
      16 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      61 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      60 views
      0 likes
      Last Post seqadmin  
      Working...
      X