Quantcast
Viewing all articles
Browse latest Browse all 41826

How can I convert the blast results into a matrix?

I've a table of blast results with ~5hits/query protein:

 

ProteinClass
ProtA1
ProtA1
ProtA1
ProtA0
ProtA1
ProtB1
ProtB1
ProtB0
ProtB0
ProtB1

I would like to convert this into a feature vector matrix like this:

 

ProteinClass1Class2Class3Class4Class5
ProtA11101
ProtB11001

 

Can someone suggest me an efficient way to do this, since I've ~2300k hits in the file.


Viewing all articles
Browse latest Browse all 41826

Trending Articles