I'm working with GWAS data, My data looks like this:
IID,kgp11004425,rs11274005,kgp183005,rs746410036,kgp7979600
1,00,AG,GT,AK,00
32,AG,GG,AA,00,AT
300,TT,AA,00,AG,AA
400,GG,AG,00,GT,GG
Desired Output:
IID,kgp11004425,rs11274005,kgp183005,rs746410036,kgp7979600
1,N/A,AG,GT,AK,N/A
32,AG,GG,AA,N/A,AT
98,TT,AA,N/A,AG,AA
3,GG,AG,N/A,GT,GG
Here I'm trying to replace "00" with "N/A", but since I have 00 in the first_row/header_row and First column i.e IId, it's replacing here with N/A like kgp11N/A4425, rs11274N/A5,kgp183N/A5.... and Id column values with 300, 400, 500 as 3N/A, 4N/A, 5N/A. The bash command I used:
sed 's~00~N/A~g' allSNIPsFinaldata.csv
Can anyone please help "how not to include/Skip the first row or header row and first column and apply this effect. please help