hello every bady
I have a big problems please help me
I have a file like this:
> YAL005C YAR002W
> YAL005C YPL240C
> YLR335W YAL005C
> YLR335W YGL097W
> YLR335W YMR047C
> YNL064C YAL005C
> YLR335W YAR002W
> YGL097W YAR002W
> YMR047C YAR002W
which is names for protins
and I want to read this file to get matrix as output
for every protins and it is intaractions protins
for example; protein YAL005C interacts
> with YAR002W, YPL240C, YLR335W and YNL064C and doesn't interact
> with the other 2.
> * The output will be 7X7 matrix
>
> 1 1 1 1 0 0 1
> 1 1 0 1 1 1 0
> 1 0 1 0 0 0 0
> 1 1 0 1 1 1 0
> 0 1 0 1 1 0 0
> 0 1 0 1 0 1 0
> 1 0 0 0 0 0 1
how can i writ the cod
I wait ASAP
I have a big problems please help me
I have a file like this:
> YAL005C YAR002W
> YAL005C YPL240C
> YLR335W YAL005C
> YLR335W YGL097W
> YLR335W YMR047C
> YNL064C YAL005C
> YLR335W YAR002W
> YGL097W YAR002W
> YMR047C YAR002W
which is names for protins
and I want to read this file to get matrix as output
for every protins and it is intaractions protins
for example; protein YAL005C interacts
> with YAR002W, YPL240C, YLR335W and YNL064C and doesn't interact
> with the other 2.
> * The output will be 7X7 matrix
>
> 1 1 1 1 0 0 1
> 1 1 0 1 1 1 0
> 1 0 1 0 0 0 0
> 1 1 0 1 1 1 0
> 0 1 0 1 1 0 0
> 0 1 0 1 0 1 0
> 1 0 0 0 0 0 1
how can i writ the cod
I wait ASAP
Comment