Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • diego diaz
    Member
    • Oct 2013
    • 62

    #1

    strange behavior in vcftools

    Hi all,

    I want to split my VCF file into two files, one with SNPs and another with INDELs. To that I am using VCF tools, with the following sentences:

    # to keep only SNPs
    vcftools --vcf myvariants.vcf --remove-indels --recode-INFO-all --out only_SNPs --recode

    # to keep only INDELs
    vcftools --vcf myvariants.vcf --keep-only-indels --recode-INFO-all --out only_INDELs --recode

    but when I check the files, I get this:

    INDELs:

    Code:
    #CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO    FORMAT
    CM003279.1      1274    C       A       999     .
    CM003279.1      3637    A       C       157     .
    CM003279.1      3788    GCCCC   GCCCCC  130     .
    CM003279.1      3879    A       C       999     .
    .
    .
    .
    SNPs:

    Code:
    #CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO    FORMAT
    CM003279.1      25370   TAAA    TAA     999     .
    CM003279.1      75537   TACAC   TAC     999     .
    CM003279.1      77780   ACATCA  ACA     999     .
    CM003279.1      3177577 CTTT    CTT     999     .
    .
    .
    .
    The splitting process doesn't make any sense, I have SNPs and INDELs in both files (I didn't add the genotype data here because it would be very difficult trying to read it)

    In attachment the firts lines of my original VCF file.

    I am pretty sure that the problem comes from my VCF file, not from vcftools, but I can't see the problem.

    is there a tool to check if a vcf file is malformed?

    Thanks in advance
    Attached Files
    Last edited by diego diaz; 07-20-2015, 05:51 PM.
  • diego diaz
    Member
    • Oct 2013
    • 62

    #2
    I forgot to mention that the variants were called in the scaffolds not in the chromosomes, then I had to code a custom script to transform scaffolds coordinates into chromosomes coordinates, maybe during the process I forgot to put something but I can't see it.

    Comment

    Latest Articles

    Collapse

    • kinpict.com
      Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by kinpict.com
      The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
      Today, 06:37 PM
    • SEQadmin2
      16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by SEQadmin2





      NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
      10-30-2026, 06:46 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 11-12-2026, 07:59 AM
    0 responses
    27 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 11-05-2026, 09:25 AM
    0 responses
    35 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 11-03-2026, 11:54 AM
    2 responses
    56 views
    0 reactions
    Last Post kinpict.com  
    Started by SEQadmin2, 10-28-2026, 09:57 AM
    0 responses
    175 views
    0 reactions
    Last Post SEQadmin2  
    Working...