Seven Bridges Quickstart

Learn how to upload, process and visualize data in the Sven Bridges platform.

In the QuickStart tutorial Part I you’ll work through a mock study in a SB project to answer the burning question “How does a student’s height affect their grades?”. The study is made up, but the steps you will take, though simple, mirror those in a more complex, real study.

In Part II, which is optional, you will create an app (a command line tool) from a Python script and chain the two apps together to make a workflow.

The raw data is a TSV spreadsheet of heights and grades for 86 middle-school students. Data includes each student’s grades for language arts, math, and science.

Requirements

  • Make a copy of this project under your own Billing Group
  • The code is in Python, though you should not need to know Python to do the exercises.

What you will learn

Each QuickStart step introduces basic platform functionality that you can use in your own analysis journey: uploading and previewing data, running a programmatic batch analysis (app), and running an interactive Data Studio (JupyterLab).

Part I: Pre-configured platform QuickStart

In the first part of the QuickStart you'll use simple spreadsheet data and run pre-configured analysis tools.

  1. Upload the raw student grades data (TSV) to your project.
  2. Run an command-line tool ( calculate-average-1) to calculate the average GPA from each student’s three subject grades.
    1. Input: studentgrades.tsv
    2. Output: a processed TSV with the name of your choice
  3. Import the processed grades TSV to a Jupyter notebook for plotting.

Part II: Create and customize an app (optional)

  1. (optional) Convert the notebook analysis to an app (CL tool - plot-grades).
  2. (optional) Modify calculate-average-1 to input the name of the new column in the studentgrades_processed TSV.
  3. (optional exercise) Chain the two command line tools together in a workflow.

Part I: Platform QuickStart

Step 1: Add data

There are many different ways to add data to your SB project. This tutorial will cover two - copying from a public project and uploading from local storage. To see

1.1. There are

Step by step instructions to upload a file

See Upload from your computer for directions to upload small files.

For larger files, see Upload via the command line.

Once the file is uploaded to the Files tab, take a moment to preview it and familiarize yourself with the contents by going to the Files tab and clicking on the studentgrades.tsv file.

Screenshot of the studentgrades.tsv file showing the first few student's ID numbers, names, lanuage_arts, Math, and science grades with their heights.

Screenshot of the first five rows in the studentgrades.tsv file. The spreadsheet contains each student's grades in language arts, math, and science as well as their grade (7, 8, or 9) as well as their height and height units.

What's in each row of the data spreadsheet?

Answer: Each row in the student table is a different student.

What is in each column?

Each column is a different piece of information corresponding to the student.

Tip: the first column in a table is always the key (unique ID) for the entity in that row. In the data tables quickstart, the first column is the Student ID.

The unique ID is often non-human readable (a random combination of numbers and letters). To make it easier for a human to understand, there is often a column with a human-friendly ID. In this case, a column with the student's first name. Additional columns store the primary data (the GPAs for three different subjects, plus the student's height and grade level). There are also some columns of useful information - like the units used for the height measurement.

Import data from another SB project (optional)

There are lot of ways to bring data into your project. See INSERT DOC HERE for more details.


Step 2. Process raw data

The first step in your analysis is to calculate each student’s average grade from their three subject grades (in the studentgrades.tsv file). This is a processing step, similar to alignment or variant calling in a real analysis.

Luckily, your colleagues have already created an app (command line tool) that does this step. You will find calculate-average-1 in the app tab of your project. The app takes in a tsv and a string for the output filename and outputs a modified TSV with an additional column, average_GPA.

Step by step instructions to run an app

For step-by-step instructions, see About analyses in the Knowledge base for more details.

Step 3. Plot results

The next step is to view the results in an interactive Jupyter notebook running in a Data Studio environment. An interactive analysis lets you adjust parameters and plot results in real time. In the QuickStart, you will run a notebook called plot-data-from-tsv.ipynb in a pre-configured Jupyter Data Studio.

Step by step instructions to plot results in JupyterLab

For more details, see About Data Studio in the Knowledge base.

For step-by-step instructions, see JupyterLab quick reference.


Did this page help you?