Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Vcftools output in "012" format is empty

    Hi everyone,
    I've been trying to get vcftools to alter my vcf files (97 samples, around 1,000,000 variants) into matrix format, however the ".012" file is always empty .
    The other files (FILENAME.012.indv, FILENAME.012.pos) are fine (i.e. the IDs of the 97 are listed in FILENAME.012.indv and the variant positions are listed in FILENAME.012.pos). There is no error message, and the log file looks good.

    Here's my command line:
    vcftools --gzvcf TEST.vcf.gz --012 --out TEST

    I did notice that there are 97 emtpy lines in the FILENAME.012 file, coinciding with the number of samples I've got in my original .vcf file.

    When I try this with the --plink option, I don't get any output either, but the --plink-tped seems to work fine.

    Any ideas whats going on here and how I can get my .vcf file into 0 1 2 format?

    Help very much appreciated,
    Chris

  • #2
    If a slightly different format is ok (main body is 012, but marker/sample IDs are saved differently), try

    plink --vcf TEST.vcf.gz --recode A --out TEST

    (this requires plink 1.9)

    Comment


    • #3
      Hi Chrchang,

      super, thanks for the tip!

      Works like a charm, but I had to include "--cow" to adjust the number of chromosomes PLINK should read.

      It would still be good to know whats happening with the vcftools results - anyone have an idea whats going on there? And why there's no error message?

      Thanks,
      Chris
      Last edited by CowGirl; 07-10-2014, 12:27 AM.

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Best Practices for Single-Cell Sequencing Analysis
        by seqadmin



        While isolating and preparing single cells for sequencing was historically the bottleneck, recent technological advancements have shifted the challenge to data analysis. This highlights the rapidly evolving nature of single-cell sequencing. The inherent complexity of single-cell analysis has intensified with the surge in data volume and the incorporation of diverse and more complex datasets. This article explores the challenges in analysis, examines common pitfalls, offers...
        Yesterday, 07:15 AM
      • seqadmin
        Latest Developments in Precision Medicine
        by seqadmin



        Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

        Somatic Genomics
        “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
        05-24-2024, 01:16 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 06:58 AM
      0 responses
      8 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, Yesterday, 08:18 AM
      0 responses
      15 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, Yesterday, 08:04 AM
      0 responses
      15 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 06-03-2024, 06:55 AM
      0 responses
      13 views
      0 likes
      Last Post seqadmin  
      Working...
      X