I have a list of files that looks like this
FILE10
Count_S10 GeneA 0.3 GeneB 0.4 GeneC 0.9 GeneD 0.1
.......................
FILE8
Count_S8 GeneA 0.22 GeneB 0.76 GeneC 0.2 GeneD 0.01
.......................
FILE13
Count_S13 GeneA 0.2 GeneB 0.04 GeneC 0.19 GeneD 0.111
.......................
Totally I have 100 files of 5000 rows. The first column of each file has the header while the second column has not. Moreover in the folder files are not ordered in ascending order. I simply would like the following output:
FILE1
Gene_List Count_S8 Count_S10 Count_S13 GeneA 0.22 0.3 0.2 GeneB 0.76 0.4 0.04 GeneC 0.2 0.9 0.19 GeneD 0.01 0.1 0.111
Here, only Files 8, 10, 13 are shown as an example.
Can anyone help me please?
Thank you in advance