Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • vasilipankratov
    Junior Member
    • Dec 2016
    • 1

    vcftools flags --mac and --max-mac give empty output

    Hi everyone!
    I'm a newbie in NGS data analysis, that’s why I’m asking for some help in things that might be easy in fact.
    I have a zipped vcf –file, which contains human chromosome 20 sequences for 269 individuals. I want to filter out singletons and doubletons for subsequent analysis. I use vcftools v0.1.15 installed on a server.
    Here is what I do:

    Code:
    vcftools --gzvcf chr20_269ind.vcf.gz --mac 1 --max-mac 1 --recode --stdout | gzip -c > output_test.vcf.gz
    however, I get an empty output file (only sample names, no sequence information) and an error message that says as following:

    Outputting VCF file...
    After filtering, kept 0 out of a possible 991704 Sites
    No data left for analysis!
    Run Time = 24.00 seconds

    I’ve tried to play around with –-mac and –-max-mac flags. First I run the following line:

    Code:
    vcftools --gzvcf chr20_269ind.vcf.gz - -max-mac n --recode --stdout | gzip -c > output_tesmaxnt.vcf.gz
    where I tried n = 1; 10; 100
    All three attempts gave me the same output file (not empty this time) and the log file says:

    Outputting VCF file...
    After filtering, kept 991704 out of a possible 991704 Sites
    Run Time = 95.00 seconds

    Actually I get the same output if I run

    Code:
    vcftools --gzvcf chr20_269ind.vcf.gz --recode --stdout | gzip -c > output_tesmaxnt.vcf.gz
    Then I’ve tried running

    Code:
    vcftools --gzvcf chr20_269ind.vcf.gz --mac 1--recode --stdout | gzip -c > output_test.vcf.gz
    and got an empty output again
    Then I’ve run

    Code:
    vcftools --gzvcf chr20_269ind.vcf.gz --mac 0--recode --stdout | gzip -c > output_test.vcf.gz
    And got the same file as in case of --max-mac n
    It seems to me that these flags ‘see’ my file as if it contained only zeros, which is not the case (I’ve looked at the content of the file manually)
    If I try to filter for minor allele frequency instead of allele counts (which is not what I want to do, but I was just playing around to better understand what’s going on) I get this:

    Outputting VCF file...
    Error: Require Genotypes in variant file to filter by frequency and/or call rate
    I’ve tried vcftools versions 0.1.13 as well with no difference.

    Any help is greatly appreciated.

    Best,

    Vasili

Latest Articles

Collapse

  • SEQadmin2
    Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
    by SEQadmin2


    Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

    The systematic characterization of the human proteome has
    ...
    07-20-2026, 11:48 AM
  • SEQadmin2
    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
    by SEQadmin2



    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
    ...
    07-09-2026, 11:10 AM
  • SEQadmin2
    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
    by SEQadmin2



    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
    07-08-2026, 05:17 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 07-24-2026, 12:17 PM
0 responses
26 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 07-23-2026, 11:41 AM
0 responses
20 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 07-20-2026, 11:10 AM
0 responses
28 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 07-13-2026, 10:26 AM
0 responses
38 views
0 reactions
Last Post SEQadmin2  
Working...