Setup
Software
First things first you'll need an integrated development environment or IDE to start coding. We recomend VS code for coding in python and really anything other than R. Use the following link to install VS code:
Additionally, you'll need Anaconda for managing packages, use the following link to install Anaconda:
Extensions
Once both are installed you'll need to install some extensions in VS code. We will be working with Jupyter notebooks so we need to install the Jupyter extension:
- Click
Extensions
- Type
Jupyter
in the search bar and download the Jupyter extension
Project Setup
Now let's set up a space for us to work in. We will start by creating a virtual environment:
- Click
Open Folder
- Create a folder and name it
deep_learning
- Go inside the deep learning folder
cd deep_learning
- Create 3 folders inside
deep_learning
: mkdir data
mkdir scripts
mkdir results
To download the data we will use:
- Go into the
data
folder:cd data
curl --output gbm_cptac_2021.tar.gz https://cbioportal-datahub.s3.amazonaws.com/gbm_cptac_2021.tar.gz
- Extract the contents:
tar -zxvf
Now to set up the virtual environment:
- Go to
View
>Terminal
- In terminal enter:
conda create -n dl python=3.12 pytorch torchvision plotly
- Then enter
y
- Then at the top of VS code select "Select Kernel"
- Select "dl"