Entering edit mode
12.2 years ago
cauyrd
▴
20
If I have a variable in python like this:
pfm = {'A': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
'C': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
'G': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
'T': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
how to generate a Biopython Motif object from this variable directly other than save above matrix in a file and use Motif.read() to load the matrix into a Motif object.