Skip to content

Running CellTracksColab using Google Colab

Joanna PylvΓ€nΓ€inen edited this page May 27, 2024 · 10 revisions

Video Tutorials

If you are unfamiliar with Google Colab, you can watch the following tutorials to get started:

Colab 101: Your Ultimate Beginner's Guide!

Colab 101: Your Ultimate Beginner's Guide!

Video Thumbnail

Using CellTracksColab with Google Colab

To Get Started You Need

Open the Notebook You Want to Use

You can access the notebooks directly from here.

Open the Notebook: Click on the open in colab button.

While you can use the notebooks directly, we recommend that you first save the notebook in your own Google Drive. Here’s how you can do it:

Save to Google Drive: - Once the notebook is open in Google Colab, go to the top menu and click on File. - From the dropdown menu, select Save a copy in Drive. - A new tab will open with a copy of the notebook saved to your Google Drive.

This way, you can easily access and edit the notebook.


Prepare the Session and Load Your Data

Once you have opened the notebook you want to use, follow the instructions and run the code cells in sequence, one after the other, to ensure smooth execution.

1. Installation and Setup

  • Set up the necessary dependencies and libraries.
  • Install the required packages.
  • When running the notebook locally, this step can be skipped.

Installation and Setup


2. Setting Up Your Google Drive Connection

  • Ensure your data is available on Google Drive.
  • Authenticate and authorize the notebook to access your Google Drive.

Google Drive Connection

  • Click on the Files tab on the left sidebar in Google Colab to see if you have successfully connected to your Google Drive. You should see your Google Drive folder in the left menu.

image

  • If you cannot see your Google Drive, you need to reconnect to the hosted runtime by clicking the small arrow at the top right of the page.

image


3. Load the Key Dependencies

  • Load the installed dependencies.

image


4. Navigating to Your Dataset on Google Drive

  1. Access Google Drive within Colab:

    • Click on the Files tab on the left sidebar in Google Colab to access your Google Drive files.
  2. Locate Your Dataset:

    • Browse and find the folder that contains your dataset.
  3. Specify a Dataset Folder:

    • Ensure the Folder_path parameter in the notebook reflects the exact path to your tracking dataset on Google Drive.
    • Tip - to quickly insert the tracking folder path, right-click on the desired folder and click copy-path and paste it to the Folder_path cell.
  4. Adhere to Data Organization:

  5. Using the Test Dataset (Optional):

    • To explore using the provided test dataset, tick the Use_test_dataset box.
    • This will prompt the notebook to download and load the test dataset for you automatically.
  6. Specify a Results Folder:

    • Choose a directory on your Google Drive for storing analysis results.
    • Adjust the Results_Folder parameter to match your chosen path.

Step 3 Screenshot



🏠 Home

πŸš€ Before getting Started


πŸš€ Getting Started


πŸ“Š Analysis & Visualization


πŸ“Š Advanced Analysis modules


πŸ§ͺ Add custom analyses



Clone this wiki locally