문제

I have a large matrix where the first 4 rows and columns look like this:

             BI00R1 BI00R2 BI00R3 BI08R1
c51581_g1_i1   0.00   0.00   0.00   0.00

c19380_g1_i1   0.00   0.00   0.00   0.00

c71266_g2_i1   0.00   0.00   0.00   0.00

c70836_g2_i9 572.19 513.89 424.49 760.92

How can I extract one row, say, the one starting with 'c19380_g1_i1' from the matrix? Probably trivial, still I'd appreciate your help.

도움이 되었습니까?

해결책

mat['c19380_g1_i1', ]

where mat is the name of your matrix.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top