AI_for_biomedical_students

Installation

Workshop Attendees

If you are attending one of our workshops, you can use Google Colab to run all the code. If you want to setup your own computer to run the analysis demonstrated on this course, you can follow the instructions below. :::

Data

The data used in these materials is provided as a zip file. Download and unzip the folder to your Desktop to follow along with the materials.

Alternatively you can use the link below to download the data from Google Drive:

Software

📦 Installation Instructions (for Google Colab)

How to use in Colab:

Open In Colab

Repository link:
https://cambiotraining.github.io/ml-unsupervised/

from google.colab import drive
import os
import pandas as pd

drive.mount('/content/drive')
os.chdir('/content/drive/My Drive/data')

pd.read_csv('diabetes_sample_data.csv')

Colab Authentication Step 1

Colab Authentication Step 2

Colab Authentication Step 3

My Drive/
└─ data/

Step 1

Step 2

Step 3

Step 4

(Optional) Run locally

Download the data folder from the link here or unzip the file here and save it on your computer.

cd data
python3 -m venv .venv
pip install numpy pandas scikit-learn seaborn matplotlib scanpy pca

Your directory structure should look like this:

data/
└─ 

import os

# where are we?
print( os.getcwd() )

# change directory to where the data is stored
os.chdir('data/')

# where are we now?
print( os.getcwd() )

(Optional) Visual Studio Code

Windows

Mac OS

Linux (Ubuntu)