Announcement

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

  • Splitting multiple sample vcf file

    A question appears when working with vcf file produced by UnifiedGenotyper on multiple samples. It is of course better to work with single sample vcf file so I was trying to split the multiple sampel vcf file. I used vcf-subset of vcftools but the problem is that the splitted single sample vcf file still has homozygous reference calls. Does anyone has a easy solution to this problem?

  • #2
    Have you tried the -e parameter? I suppose -a should also be used to get rid of alternate alleles not found in the subset.

    Here is the usage of vcf-subset:

    Usage: vcf-subset [OPTIONS] in.vcf.gz > out.vcf
    Options:
    -a, --trim-alt-alleles Remove alternate alleles if not found in the subset
    -c, --columns <string> File or comma-separated list of columns to keep in the vcf file. If file, one column per row
    -e, --exclude-ref Exclude rows not containing variants.
    -f, --force Proceed anyway even if VCF does not contain some of the samples.
    -p, --private Print only rows where only the subset columns carry an alternate allele.
    -r, --replace-with-ref Replace the excluded types with reference allele instead of dot.
    -t, --type <list> Comma-separated list of variant types to include: SNPs,indels.
    -u, --keep-uncalled Do not exclude rows without calls.
    -h, -?, --help This help message.

    Comment


    • #3
      Thanks Gig77 for the answer! I tested with -e and it gave what I wanted.

      Comment


      • #4
        If you want to Split Large sized VCF Files of Vcards into Smaller ones, then you can try our most efficient VCF Splitter Tool. The utility can easily divide the VCF files with all the contacts and other files without any data loss. If you want to Split Large sized VCF Files of vCard into Smaller ones, then you can try our most efficient VCF Splitter Tool.

        Visit at : https://www.osttopstapp.com/split-vcf.html

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Advanced Methods for the Detection of Infectious Disease
          by seqadmin




          The recent pandemic caused worldwide health, economic, and social disruptions with its reverberations still felt today. A key takeaway from this event is the need for accurate and accessible tools for detecting and tracking infectious diseases. Timely identification is essential for early intervention, managing outbreaks, and preventing their spread. This article reviews several valuable tools employed in the detection and surveillance of infectious diseases.
          ...
          11-27-2023, 01:15 PM
        • seqadmin
          Strategies for Investigating the Microbiome
          by seqadmin




          Microbiome research has led to the discovery of important connections to human and environmental health. Sequencing has become a core investigational tool in microbiome research, a subject that we covered during a recent webinar. Our expert speakers shared a number of advancements including improved experimental workflows, research involving transmission dynamics, and invaluable analysis resources. This article recaps their informative presentations, offering insights...
          11-09-2023, 07:02 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 10:48 AM
        0 responses
        16 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 11-29-2023, 08:26 AM
        0 responses
        12 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 11-29-2023, 08:12 AM
        0 responses
        13 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 11-27-2023, 08:12 AM
        0 responses
        22 views
        0 likes
        Last Post seqadmin  
        Working...
        X