fuc
fuc copied to clipboard
Oncoplot not rendering properly
The plot_oncoplot() method is not working as expected for me:
Note the empty central grid. If I call plot_waterfall() standalone, it looks mostly right except for the missing grid lines:
I am using fuc==0.38.0 and get a number of deprecation warnings when I call plot_oncoplot, which may be related:
/opt/conda/lib/python3.11/site-packages/fuc/api/pymaf.py:744: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
c = df.applymap(lambda x: 0 if pd.isnull(x) else 1).sort_values(
/opt/conda/lib/python3.11/site-packages/fuc/api/pymaf.py:744: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
c = df.applymap(lambda x: 0 if pd.isnull(x) else 1).sort_values(
/opt/conda/lib/python3.11/site-packages/fuc/api/pymaf.py:3263: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
df = df.applymap(lambda x: d[x])
/opt/conda/lib/python3.11/site-packages/fuc/api/pymaf.py:744: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
c = df.applymap(lambda x: 0 if pd.isnull(x) else 1).sort_values(
/opt/conda/lib/python3.11/site-packages/fuc/api/pymaf.py:744: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
c = df.applymap(lambda x: 0 if pd.isnull(x) else 1).sort_values(
Note that this is synthetic data, hence the unrealistic distribution of mutations. The TMB subplot is correct