Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • MurielGB
    Member
    • Oct 2013
    • 51

    Vcftools option --non-ref-ac

    Hello !

    Can someone explain the --non-ref-ac option ?

    I don't manage to get it

    What happened if I do:
    Code:
    vcftools --vcf input.vcf --non-ref-ac 1 --out outout --recode
    Thanks !!!

    Muriel
  • mastal
    Senior Member
    • Mar 2009
    • 666

    #2
    the following quote is from the manual page:


    --non-ref-ac <integer>


    'Include only sites with all Non-Reference (ALT) Allele Frequencies (af) or Counts (ac) within the range specified, and including the specified value. The default options require all alleles to meet the specified criteria, whereas the options appended with "any" require only one allele to meet the criteria. The Allele frequency is defined as the number of times an allele appears over all individuals at that site, divided by the total number of non-missing alleles at that site.'

    Comment

    • MurielGB
      Member
      • Oct 2013
      • 51

      #3
      Thanks Mastral, I checked the manual before asking the quetsion
      But I don't understand what this means...
      Sorry.

      Comment

      • mastal
        Senior Member
        • Mar 2009
        • 666

        #4
        I was about to edit my reply.

        the mannual has a list of options:

        --non-ref-af <float>
        --max-non-ref-af <float>
        --non-ref-ac <integer>
        --max-non-ref-ac <integer>

        --non-ref-af-any <float>
        --max-non-ref-af-any <float>
        --non-ref-ac-any <integer>
        --max-non-ref-ac-any <integer>

        Reading some of the previous items in the manual,
        I think '--non-ref-ac' is the minimum alternate allele count,

        and if you want a range of allowable allele counts from min to max for the alternate allele,
        then you can also set the '--max-non-ref-ac' option.

        Comment

        • MurielGB
          Member
          • Oct 2013
          • 51

          #5
          So, if I understand well, this command "--non-ref-ac 1" allows to remove sites where there is no alternative allele at all ?

          That's what I want to do, since I filtered out some individuals in my vcf, I want to get rid of invariant sites that remain (sites where there was alternative allele but after removing individuals, some may not be variant anymore).

          Comment

          • SNPsaurus
            Registered Vendor
            • May 2013
            • 525

            #6
            You could also use the --maf, which is from 0-1. It is the minimum allele frequency in the population. If you set --maf > 0 but less than 1/(num individuals), it should exclude all alternate alleles that are no longer in the population.
            Providing nextRAD genotyping and PacBio sequencing services. http://snpsaurus.com

            Comment

            Latest Articles

            Collapse

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 11:58 AM
            0 responses
            13 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-05-2026, 10:09 AM
            0 responses
            25 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-04-2026, 08:59 AM
            0 responses
            36 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-02-2026, 12:03 PM
            0 responses
            60 views
            0 reactions
            Last Post SEQadmin2  
            Working...