Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • clarissaboschi
    Member
    • Apr 2010
    • 63

    Genotypes conversion (SNP chip)

    Hi all,
    I have a big input file from 28 individuals which were genotyped by 600 K SNP chip (Affymetrix). I have about ~500,000 genotypes for each individual.
    But my file has a particular format for the genotypes, which is:

    -1= no call
    0=AA (homozygous for the reference allele)
    1=AB
    2=BB (homozygous for the alternative allele)

    My file is:
    AX-51 2 1 2 1 1 2 1 2 1 2 2 1 1 2 0 2 2 2 0 1 0 2 2 1 2 2 -1 2
    AX-58 2 2 2 2 2 1 1 2 1 2 1 2 2 2 1 2 2 2 2 2 2 2 2 1 2 2 2 2

    I have another file with the alleles information and position (map file):
    SNP_ID Chr Pos Alele_A/Alele_B
    AX-751 1 306 T/C
    AX-758 1 727 A/G

    I need to convert the file 1 with their respectives alleles. I tried to use Plink, but I was not able to convert the file.

    Any suggestion??

    thanks
    Clarissa
  • WhatsOEver
    Senior Member
    • Apr 2012
    • 215

    #2
    I have no experience with SNP chip data no can I suggest an existing program that is able to this, but from your description it seems to be a rather simple lookup problem for which some self-coding should be sufficient.

    What you need to do is reading linewise through your file:
    AX-51 2 1 2 1 1 2 1 2 1 2 2 1 1 2 0 2 2 2 0 1 0 2 2 1 2 2 -1 2
    .

    For each line you take the SNP_ID in the beginning and look for its corresponding genotype in the map file (for AX-51 you may get refGeno = A / altGeno=G)

    Afterwards you simply go through the fields of the prediction and replace the numbers with the genotypes (e.g. if "0" then refGeno, elif "2" then altGeno, ...)

    If you have no programming experience, you might even use excel/open office (vlookup) for this. Certainly not the best way to do, but still possible

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
      by SEQadmin2


      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

      The systematic characterization of the human proteome has
      ...
      07-20-2026, 11:48 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-24-2026, 12:17 PM
    0 responses
    34 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-23-2026, 11:41 AM
    0 responses
    25 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-20-2026, 11:10 AM
    0 responses
    217 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-13-2026, 10:26 AM
    0 responses
    81 views
    0 reactions
    Last Post SEQadmin2  
    Working...