Entering edit mode
10.2 years ago
muralinmars
▴
100
hi all,
how can I extract 1000 genome data in vcf format of a specific population using vcftools. Currently I am using tabix to download the data
tabix -fh ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/20110521/ALL.chr
echo ${REGION} | awk -F [\:] '{print $1}'`.phase1_release_v3.20101123.snps_indels_svs.genotypes.vcf.gz $REGION > temp.vcf
and then include only the individuals from european population (CEU,GBR,FIN,TSI); through (--keep
) option by providing a txt file (pop_file
) including their individualIDs,,,
vcftools --vcf temp.vcf --keep $POP_FILE --recode > temp.vcf
where am I going wrong - As I producing the initial Vcf file but not after the filtering for specific pop.
Any suggestions PLEASE
Thanks... I tried to change the name of the VCF file (to temp2) generated after
keep
option,,,,But it does not create the temp2 file (while the recode.vcf file is generated properly after filtering for specific population)
here is the code again
You're redirecting stderr to
/dev/null
what was the content of the error message?