I have a file that looks as so:
chrom start stop strand isoform mu_codon mut_codon2 more_info
chr22 43089055 43089055 - NM_017436 C 300 903delC
chr22 43089715 43089717 - NM_017436 CTT 79 241_243delTTC
chr12 53701873 53701875 - NM_015665 TTC A 1292_1294delTTCinsA
I want to replace the values in the 7th column with a space if they contain a number and not a letter.
For example, here is my desired output:
chrom start stop strand isoform mu_codon mut_codon2 more_info
chr22 43089055 43089055 - NM_017436 C 903delC
chr22 43089715 43089717 - NM_017436 CTT 241_243delTTC
chr12 53701873 53701875 - NM_015665 TTC A 1292_1294delTTCinsA
I need to keep the space in my file so my columns are not altered. Any idea on how to do this? Maybe awk
? I'm still learning these techniques. Can you explain your answers?