![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
splitting big genbank file | joscarhuguet | Bioinformatics | 9 | 05-20-2013 07:39 AM |
Sample name inn VarScan vcf output file | oliviajm | Bioinformatics | 1 | 06-26-2012 12:49 PM |
vcf-tools vcf-stats sample question | Rubal7 | Bioinformatics | 1 | 04-09-2012 01:42 AM |
An example, multi-sample VCF file? | dagarfield | Bioinformatics | 0 | 10-18-2011 08:20 AM |
Splitting 454 paired reads in a FASTQ file | sjackman | Bioinformatics | 5 | 09-10-2010 12:09 PM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: Germany Join Date: Aug 2012
Posts: 25
|
![]()
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 |
Member
Location: Canada Join Date: Jun 2012
Posts: 17
|
![]()
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. |
![]() |
![]() |
![]() |
#3 |
Member
Location: Germany Join Date: Aug 2012
Posts: 25
|
![]()
Thanks Gig77 for the answer! I tested with -e and it gave what I wanted.
|
![]() |
![]() |
![]() |
Tags |
unifiedgenotyper, vcf |
Thread Tools | |
|
|