Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • GMDickson
    Junior Member
    • Feb 2014
    • 9

    Data format - Unusable to R and Plink

    Hullo! Apologies for the seemingly basic question but I am in knots over this and hope there is some help.

    I have recently 'inherited' an Illumina dataset containing about 36,000SNP genotypes for about 400 individuals. The data I have is presented as a 3 columns in a text file.

    The columns are 'Indiv_ID', 'SNP_ID' and 'Genotype' (so 36000x400 rows in total) and I need the data in some usable format so that I can extract data for specific 500 SNPs. ideally I would prefer the data in an individual x SNP matrix.

    Usually I have used R to reshape such data as such but this file seems to be too big and it just freezes whilst processing. I have also used Plink in the past to extract specific SNP data from 'column' data but in the text file I have, the genotype is given as an 'AB' format which Plink doesn't accept as a compound genotype. I have attempted to change all As and Bs for 1s and 2s so that I can input as a compound to Plink, but the software I was using to do this also adds " "s which then need to be removed. And no text editor I have seems to cope with this for so many lines of text.

    I am not able to get this data in any other format and the only other data I have in relation to this is (just) enough for me to creat a .map file for Plink. Otherwise it is just the (seeminly) infinite column. I appreciate that this is probably a very simple task all in but at the moment I cannot see the wood for trees, and am going around in circles. I would welcome any starting points or good reference sites to check out!

    Thanks!
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Just write the names of the SNP_IDs that you're interested to a file and either use grep to get them out or just write a small python/perl/whatever script to do so.

    Comment

    Latest Articles

    Collapse

    • GATTACAT
      Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
      by GATTACAT
      Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
      07-01-2026, 11:43 AM
    • SEQadmin2
      Nine Things a Sample Prep Scientist Thinks About Before Sequencing
      by SEQadmin2


      I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

      Here are nine questions we think about, in roughly the order they matter, before...
      06-18-2026, 07:11 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 07-02-2026, 11:08 AM
    0 responses
    7 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-30-2026, 05:37 AM
    0 responses
    12 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-26-2026, 11:10 AM
    0 responses
    20 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-17-2026, 06:09 AM
    0 responses
    54 views
    0 reactions
    Last Post SEQadmin2  
    Working...