Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lee_et_al_2023/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ CairoSVG==2.7.0
matplotlib
nbmake
numpy
pandas==1.5.3
pandas
pytest
rdkit
# Scikit may require special install procedures on; e.g. M1 macbooks.
scikit-learn
seaborn==0.11.1
seaborn
statsmodels==0.13.5
tqdm==4.61.0
5 changes: 4 additions & 1 deletion lee_et_al_2023/src/data_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ def get_clean(filter=True):
# Select the humans that rated at least some of these SMILES
subjects = humans['SubjectCode'].unique()

panel = humans.groupby('RedJade Code').mean().loc[mol_codes, base.MONELL_CLASS_LIST]
# Filter to numeric columns only before calculating mean
numeric_cols = humans.select_dtypes(include='number').columns
panel = humans.groupby('RedJade Code')[numeric_cols].mean().loc[mol_codes, base.MONELL_CLASS_LIST]


return models, humans, panel, subjects

Expand Down