I have 100 columns 1 column is name and 2 to 100 samples values I want to filter out column 2 to 100 with certain threshold say >=5 using loop. This will iterate for new file name corresponding to sample name.
for example filtering value above 5
Col1 Col2 Col3 Col4 Col5 Col6 Col7
A 5 1 1 2 4 1
B 6 2 2 5 3 6
C 7 3 3 8 9 3
D 8 4 6 9 1 3
Output (file name will be Col2)
Col1 Col2
B 6
C 7
D 8
This has to be repeated for all the column
Do you want all positions with < 5 to be replaced by NA values ?