Skip to content

Instantly share code, notes, and snippets.

@gatoravi
Created March 21, 2016 21:21
Show Gist options
  • Save gatoravi/35a216099a88081a3329 to your computer and use it in GitHub Desktop.
Save gatoravi/35a216099a88081a3329 to your computer and use it in GitHub Desktop.
Convert hcc1395 tsv to vcf
awk '{ gsub("\,", "");gsub("\"", ""); gsub ("\r", "\n"); print }' SupplementaryData1_Tier1_SNVs.txt | awk 'BEGIN { print "##fileformat=VCFv4.1\n#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO" } !/Chrom/ { if($1 !~ /GL/) print $1"\t"$2"\t.\t"$4"\t"$5"\t.\tPASS\t." }' > hcc1395_somatic.vcf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment