posted on 08:28 AM on Friday 19 September 2014
Use the following awk command to strip the genotypes from a VCF files (when you just need the SNP information).
awk '{if($1 ~ /^#/ && $1 !~ /^#CHROM/) print $0; else print $1 "\t" $2 "\t" $3 "\t" $4 "\t" $5 "\t" $6 "\t" $7 "\t" $8 "\t" $9;}'
Photo frame (10:20 AM on Tuesday 23 September 2014)
MySQL data loader (11:48 AM on Thursday 18 September 2014)
Redirecting within a bash script (09:44 AM on Wednesday 03 July 2013)
Using awk to filter lines on column values (10:28 AM on Thursday 15 August 2013)
Listing files with absolute paths (03:05 PM on Wednesday 21 August 2013)
automount refresh (11:36 AM on Saturday 28 June 2014)
Changing the ID of VCF files (03:11 PM on Tuesday 08 March 2016)