📅  最后修改于: 2022-03-11 14:51:38.558000             🧑  作者: Mango
# Example usage:
awk '{if($0 !~ /^#/) print "chr"$0; else print $0}' input.vcf
# This converts a vcf file with numeric genome coordinates to one with
# chr in front of the chromosome number.
# Note, this command does the opposite operation, if needed:
awk '{gsub(/^chr/,""); print}' input.vcf