Skip to content

Commit

Permalink
complete review edits
Browse files Browse the repository at this point in the history
  • Loading branch information
jenna-tomkinson committed Jan 10, 2023
1 parent 74d1917 commit 08bbb0f
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 455 deletions.
2 changes: 0 additions & 2 deletions 5_analyze_data/5.analyze_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ dependencies:
- conda-forge::jupyter=1.0.0
- conda-forge::jupyterlab
- conda-forge::pandas=1.4.4
- conda-forge::plotnine
- conda-forge::ipykernel
- conda-forge::nb_conda_kernels
- conda-forge::jupyter_contrib_nbextensions
Expand All @@ -16,4 +15,3 @@ dependencies:
- conda-forge::seaborn
- conda-forge::umap-learn
- conda-forge::matplotlib

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 5_analyze_data/notebooks/UMAP_analysis/UMAPs/2D_umap_nf1_well.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions 5_analyze_data/notebooks/UMAP_analysis/UMAPutils.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
"""
This file contains functions to assist in creating a .csv file containing 2D embeddings from
the NF1 normalized and feature selected morphological readouts.
"""

import pathlib
import pandas as pd

def split_data(pycytominer_output: pd.DataFrame):
"""
split pycytominer output to metadata dataframe and np array of feature values
Parameters
----------
pycytominer_output : pd.DataFrame
dataframe with pycytominer output
Returns
-------
pd.Dataframe, np.ndarray
Expand Down Expand Up @@ -47,6 +54,7 @@ def merge_metadata_embeddings(
Returns
-------
pd.Dataframe
merged dataframe with metadata and embeddings
"""
# reset index to remove the 'Metadata_WellRow' as the index then drop the index
metadata_dataframe = metadata_dataframe.reset_index()
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@
"source": [
"import pathlib\n",
"import pandas as pd\n",
"import seaborn as sns\n",
"from matplotlib.colors import rgb2hex\n",
"from mpl_toolkits.mplot3d import axes3d, Axes3D\n",
"import umap\n",
"\n",
"import sys\n",
"sys.path.append(\"../\")\n",
"import UMAPutils as utils"
]
},
Expand Down
Loading

0 comments on commit 08bbb0f

Please sign in to comment.