Skip to content
Snippets Groups Projects
Commit d40c0baa authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Update matrix_analysis.py

parent 05c6cfd0
Branches
No related merge requests found
......@@ -176,6 +176,8 @@ for meme,tom in meme_cell_dict.iteritems():
tomtom_motif_reorder = tomtom_motif.reindex( list(meme_positions.columns.values)).fillna(0)
# dot product
meme_tomtom_cell = meme_positions.dot(tomtom_motif_reorder)
meme_tomtom_cell = np.log10(meme_tomtom_cell+0.01)
meme_tomtom_cell = np.negative(meme_tomtom_cell)
# Scale and add
scaler = preprocessing.MinMaxScaler()
meme_tomtom_cell_transform = meme_tomtom_cell.T
......@@ -186,6 +188,7 @@ for meme,tom in meme_cell_dict.iteritems():
meme_tomtom = temp
# Transform meme tom_tom
motif_enhancers = meme_tomtom.T
# Rename column headers
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment