Entering edit mode
3.6 years ago
Info.shi
▴
30
I want to create a matrix according to NJ format. Gene name will be the same strain name should be different-
My current matrix is as follows-
#Gene.10008
[1 2 3 4 5]
[1]
[2] 0.06833713
[3] 0.08513480 0.016797675
[4] 0.10196239 0.033625257 0.016827582
[5] 0.07741386 0.009076726 0.007720949 0.02454853
I want my output as follows-
#Gene.10008
[1] #Strain1_Gene.10008
[2] #Strain2_Gene.10008
[3] #Strain3_Gene.10008
[4] #Strain4_Gene.10008
[5] #Strain5_Gene.10008
[1 2 3 4 5]
[1]
[2] 0.20130806
[3] 0.08605846 0.11524960
[4] 0.03913092 0.16217714 0.04692754
[5] 0.21139563 0.01008757 0.12533718 0.1722647
Thank you so much!