Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • vcfTools depth filter problem

    Hey guys,

    I am new to vcf and having difficulty filtering my SNPs in vcfTools.

    I have a vcf file (fileformat=VCFv4.1) of SNPs found in a group of individuals of a species (pooled as one individual for the time being).


    sample:
    Spp1_cDNA-30 211 . G A 122 . DP=15;VDB=0.0017;AF1=1;AC1=2;DP4=0,0,0,12;MQ=60;FQ=-63 PL 155,36,0

    I want to apply some simple filters e.g. depth.

    However the output file generated gives me depths of 0 at all SNPs despite the vcf giving sensible DP values.

    Similarly, mean depth stat calculation returns 0 for the entire vcf.

    What am I doing wrong here guys?

    Any help will be much appreciated.

    Thanks,

    J

  • #2
    Can you post the command you ran? Based on the one line of VCF you've posted, there seem to be 12 reverse reads with non-ref allele. You can filter your input using the DP4 field.

    Description of DP4 from http://samtools.sourceforge.net/mpileup.shtml
    "DP4: Number of 1) forward ref alleles; 2) reverse ref; 3) forward non-ref; 4) reverse non-ref alleles, used in variant calling. Sum can be smaller than DP because low-quality bases are not counted."

    Comment


    • #3
      OK thanks for pointing that out.
      However, Im not sure the significance of what that actually means?
      "12 reverse reads" is fine as far as I figure.
      And overall depth is 15 (including low quality bases I presume?)

      Here is my command:

      vcftools --vcf file1.vcf --minDP

      Testing some other functions, vcftools wont actually calulate any for me.

      Eg.

      vcftools --vcf SkateGenotypes.vcf --counts

      I have attached a sample of my vcf file.

      Thanks alot!
      J

      CHROM POS N_ALLELES N_CHR {ALLELE:COUNT}
      Skate_cDNA-0 48 2 0 G:0 A:0
      Skate_cDNA-0 49 2 0 G:0 A:0
      Skate_cDNA-0 176 2 0 A:0 G:0


      Addtional:

      When I run vcf-stats on the compressed file I get the following error:

      Use of qw(...) as parentheses is deprecated at /usr/share/perl5/VcfStats.pm line 428.
      Use of qw(...) as parentheses is deprecated at /usr/share/perl5/VcfStats.pm line 433.
      Could not parse the fileformat version string [VCFIDX], assuming VCFv4.1
      Broken VCF header, no column names?
      at /usr/share/perl5/Vcf.pm line 171, <$__ANONIO__> line 1.
      Vcf::throw('VcfStats=HASH(0x1549010)', 'Broken VCF header, no column names?') called at /usr/share/perl5/Vcf.pm line 845
      VcfReader::_read_column_names('VcfStats=HASH(0x1549010)') called at /usr/share/perl5/Vcf.pm line 589
      VcfReader:arse_header('VcfStats=HASH(0x1549010)') called at /usr/share/perl5/VcfStats.pm line 53
      VcfStats:arse_header('VcfStats=HASH(0x1549010)') called at /usr/bin/vcf-stats line 137
      main::vcf_stats('HASH(0x11ac480)') called at /usr/bin/vcf-stats line 12
      Attached Files
      Last edited by JackieBadger; 08-13-2013, 09:50 AM.

      Comment


      • #4
        No one has any insight here?

        Could it be that the chromosome names (which are actually reference coltigs) are stings that do not include < > ?

        Should I just remove the wording, to have just numbered chromosome IDs?

        If so whats the best way to do this?

        I did it in excel and with the following perl script but it then leave the output.vcf unreadable by vcftools:

        perl -pe 's/^Little_Skate_cDNA-//' SkateGenotypes.vcf > SkateGenotypesError.vcf

        Any help would be greatly appreciated.

        Cheers,

        J

        Comment

        Latest Articles

        Collapse

        • 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
        • seqadmin
          Strategies for Sequencing Challenging Samples
          by seqadmin


          Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
          03-22-2024, 06:39 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        18 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        22 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 09:21 AM
        0 responses
        17 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-04-2024, 09:00 AM
        0 responses
        49 views
        0 likes
        Last Post seqadmin  
        Working...
        X