Downloaded the csv files from Amr's excel sheets:
!ls ~/Downloads/*Sheet2.csv
tfs = ['nanog', 'oct4', 'sox2-ac', 'sox2-af']
df = pd.concat([pd.read_csv(f"/home/avsec/Downloads/{t} - Sheet2.csv").assign(tf=t) for t in tfs])
df.head()
import plotnine
from plotnine import *
plotnine.options.figure_size = (8, 2)
ggplot(aes(x='mean affinity (conv with PSAM)', y='mean importance'), data=df) + geom_point(alpha=0.05, size=.4) + facet_grid(".~tf") + theme_classic()
# free scales
plotnine.options.figure_size = (8, 2)
ggplot(aes(x='mean affinity (conv with PSAM)', y='mean importance'), data=df) + geom_point(alpha=0.05, size=.4) + facet_wrap("~tf", scales='free', ncol=4) + theme_classic()
plotnine.options.figure_size = (8, 2)
ggplot(aes(x='mean affinity (conv with PSAM)', y='modisco match (conv with motif)'), data=df) + geom_point(alpha=0.05, size=.4) + facet_grid(".~tf") + theme_classic()
# free scales
plotnine.options.figure_size = (8, 2)
(ggplot(aes(x='mean affinity (conv with PSAM)', y='modisco match (conv with motif)'), data=df) +
geom_point(alpha=0.05, size=.4) +
facet_wrap("~tf", scales='free', ncol=4) + theme_classic())