vSNP3 GUI · step-by-step training (SOP)
You will install the vSNP3 web tool, download 26 real samples, run them, and read the answer from a tree. Every step shows what to do and what you should see.
About 3 hours the first time. Most of it is waiting while the computer downloads and works. Slow internet makes it longer.
A Mac, Linux or Windows computer, internet, and about 50 GB of free disk space.
1 October 2026, vSNP GUI v0.4.127, vsnp3 3.36. Newer versions may look a little different.
To move: click Next → at the bottom, or press the → arrow key.
Workflow/Step 1 and Step 2
Step 1 runs once per sample and fills a database that only grows. Step 2 works from the VCF files those alignments produced: defining SNPs make the groups, and each group is read as a tree and a SNP table.
Start
Each step has two parts.
▶ Do this
What you click or type. In the pictures, orange boxes with numbers show where, in order.
✔ You should see
What the screen shows after the step. In the pictures, green boxes show what to check.
TipPut this guide and the vSNP3 page side by side on your screen. Then you can read and click at the same time.
The story
Bovine tuberculosis (Mycobacterium bovis) was found in two states.
21 samples came from known places: 7 from Pichigan and 14 from Dexas. Each one has a county name.
In this training, these 21 samples are our database: samples we already know.
Made upThe DNA data is real and public. Everything else is made up for training: the country, the states, the counties and the outbreaks. Pichigan and Dexas look like real places, but they are not. Every sample name ends in _notReal.
The story
OUTBREAK1: 3 new samples from Bisconsin.
OUTBREAK2: 2 new samples from New Rexico.
We do not know where these 5 samples came from. They are our unknowns.
Your mission: compare the 5 unknowns with the 21 database samples. Which county is each outbreak closest to?
HowvSNP3 finds the small DNA differences (SNPs) between samples. Few differences = closely related.
In real lifeThis training's database has known samples from only two states, Pichigan and Dexas. A real database would hold many more: every dot on the map is a past outbreak, and its samples could be in the database too.
The story
All 26 are Mycobacterium bovis, the bacterium that causes bovine TB.
| SRA number | Year | State | County / group | Kind | |
|---|---|---|---|---|---|
| SRR33685153 | 2019 | Pichigan | countyH | Database | |
| SRR33953641 | 2022 | Pichigan | countyD | Database | |
| SRR33561021 | 2022 | Pichigan | countyD | Database | |
| SRR33665434 | 2019 | Pichigan | countyD | Database | |
| SRR33829055 | 2021 | Pichigan | countyX | Database | |
| SRR33736248 | 2019 | Pichigan | countyX | Database | |
| SRR33818626 | 2021 | Pichigan | countyX | Database | |
| SRR33680185 | 2019 | Dexas | countyQ | Database | |
| SRR33645747 | 2018 | Dexas | countyQ | Database | |
| SRR33667818 | 2019 | Dexas | countyQ | Database | |
| SRR33793213 | 2020 | Dexas | countyH | Database | |
| SRR33868919 | 2021 | Dexas | countyH | Database | |
| SRR33817333 | 2021 | Dexas | countyH | Database |
| SRA number | Year | State | County / group | Kind | |
|---|---|---|---|---|---|
| SRR33842987 | 2021 | Dexas | countyH | Database | |
| SRR33891198 | 2021 | Dexas | countyH | Database | |
| SRR33891341 | 2021 | Dexas | countyH | Database | |
| SRR33938848 | 2022 | Dexas | countyH | Database | |
| SRR33914654 | 2022 | Dexas | countyF | Database | |
| SRR33750258 | 2020 | Dexas | countyG | Database | |
| SRR33914527 | 2022 | Dexas | countyG | Database | |
| SRR33585214 | 2018 | Dexas | countyG | Database | |
| SRR33790657 | 2020 | Bisconsin | OUTBREAK1 | Unknown | |
| SRR33715075 | 2019 | Bisconsin | OUTBREAK1 | Unknown | |
| SRR33753131 | 2020 | Bisconsin | OUTBREAK1 | Unknown | |
| SRR33672140 | 2019 | New Rexico | OUTBREAK2 | Unknown | |
| SRR33629183 | 2018 | New Rexico | OUTBREAK2 | Unknown |
An SRA number is the ID of one sample's DNA reads in a free public library (the NCBI Sequence Read Archive). Black = database (21). ● Red = unknown (5).
Made-up detailsThe SRA numbers and their DNA reads are real and public. The year, state and county in this table are made up for this training, to keep it easy to follow. They are not the real details that the SRA stores for these samples.
The story
Four parts: A, B, C and D. Part C has four stages. The times are for a normal laptop.
45–90 minutes
Only the first time. You copy a few terminal commands from this guide.
5 min
How to open, check and update the tools on another day. Keep these pages.
1–2 hours
In the vSNP3 web page, in four stages:
5 min
Check yourself, fix problems, and stop for today.
Already installed?Go to Part B: Start here next time.
Slow internet?The times are for good internet. Parts A and C download several GB. On a slow connection they can take two or three times longer.
Part A
You type a few commands in a terminal: a window where you give the computer text commands. Copy each command from this guide. You do not need to know programming.
Check My computer at the bottom of the screen first. It must show your computer.
Already installed? Skip to Part B →A. Install (first time only)
Check this list before you start.
sudo command (installing git).TimeAbout 45–90 minutes with good internet. Most of it is downloading: about 7 GB. On slow internet it takes longer, sometimes two or three times as long. That is normal: plan extra time, and keep the computer plugged in and awake.
Wrong computer?Look at My computer at the bottom of the screen. Click your type of computer.
A. Install (first time only)
The Terminal app is already on every Mac.
▶ Do this
✔ You should see
A window with text and a blinking cursor. The last line ends with % or $.
Last login: Wed Oct 1 09:12:44 on console
you@your-Mac ~ % TipKeep Terminal in the Dock: right-click its icon, then Options → Keep in Dock.
A. Install (first time only)
Most Linux computers open a terminal with one key combination.
▶ Do this
✔ You should see
A window with text and a blinking cursor. The last line ends with $.
you@your-computer:~$ A. Install (first time only)
Windows runs the tools inside Ubuntu, a version of Linux. You do this once.
▶ Do this
wsl --install✔ You should see
After the restart, an Ubuntu window opens by itself. It asks you to make a user name and a password.
Enter new UNIX username: ana New password: Installation successful! ana@MY-PC:~$
RememberYou do not see the password while you type it. This is normal. Write the password down: you need it in the next step.
Next timeOpen Ubuntu from the Start menu: click Start, type Ubuntu, press Enter. In this guide, “terminal” means this Ubuntu window.
A. Install (first time only)
git downloads the tools for you. On a Mac it comes with Apple's free command-line tools.
▶ Do this
xcode-select --installgit --versionsoftwareupdate --install-rosetta --agree-to-license✔ You should see
Step 4 shows a version number:
$ git --version git version 2.39.5 (Apple Git-154)
Any number is fine. After step 5, the prompt (%) comes back.
Which chip?Click the Apple menu (the apple at the top left of the screen), then About This Mac. Chip: Apple M… = Apple chip: do step 5. Processor: Intel = Intel chip: skip step 5.
Why Rosetta 2?Some programs that the tools use are made only for Intel chips. Rosetta 2 is Apple's free helper that runs them on an Apple chip.
Already installed?If Terminal says command line tools are already installed, that is good. Go on to step 4.
A. Install (first time only)
git downloads the tools for you. curl downloads files.
▶ Do this
sudo apt update && sudo apt install -y git curlgit --version✔ You should see
A version number:
$ git --version git version 2.43.0
Any number is fine.
Not Ubuntu?On Fedora use sudo dnf install -y git curl. Many computers already have git.
A. Install (first time only)
The same command works on every computer. It picks the right file for you.
▶ Do this
cd ~curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"✔ You should see
A progress table. It ends with 100 on the left. Then the prompt comes back. The file is about 125 MB: seconds on fast internet, a few minutes on slow internet.
$ curl -L -O "https://github.com/conda-forge/…/Miniforge3-$(uname)-$(uname -m).sh" % Total % Received % Xferd Average Speed Time 100 118M 100 118M 0 0 93.6M 0 0:00:01 $
What is Miniforge?A free installer for conda. Conda installs vSNP3 and all the programs it needs, in their own folder. It does not change other programs on your computer.
Is it safe?Yes. Miniforge is free, open-source software from conda-forge, a large community project that scientists all over the world use every day. The command downloads it straight from conda-forge's official page on GitHub (github.com, a website owned by Microsoft). This training's tools come from GitHub too.
A. Install (first time only)
Copy the command, paste it, press Enter.
bash Miniforge3-$(uname)-$(uname -m).shThe installer asks 5 questions. Answer them like this:
| When you see | Do this |
|---|---|
| Please, press ENTER to continue | Press Enter |
| License text, and --More-- at the bottom | Press Space until the next question comes |
| Do you accept the license terms? [yes|no] | Type yes and press Enter |
| Press ENTER to confirm the location | Press Enter |
| Proceed with initialization? [yes|no] [no] >>> | Type yes and press Enter |
ImportantThe last question says [no]. Do not just press Enter. Type yes.
✔ You should see
installation finished. Proceed with initialization? [yes|no] [no] >>> yes ==> For changes to take effect, close and re-open your current shell. <== Thank you for installing Miniforge3!
A. Install (first time only)
Do not skip this step. The new window knows about conda. The old one does not.
▶ Do this
conda --version✔ You should see
The prompt now starts with (base), and conda shows its version:
(base) $ conda --version conda 26.7.2
A newer number is fine.
Why this mattersThe installer has just changed your terminal's start-up settings, so that the terminal can find conda. A terminal that is already open still uses the old settings: only a new terminal reads the new ones. If you skip this step, the next steps fail with “conda: command not found”.
If it says “conda: command not found”You answered no to the last question in A5. Run this, then do A6 again: ~/miniforge3/bin/conda init
A. Install (first time only)
This gets the installer and the dashboard. It also decides where your tools live.
▶ Do this
git clone https://github.com/kapurlab/bioinformatic_diagnostic_tools.gitcd bioinformatic_diagnostic_toolspwd✔ You should see
The last line is the full address of the tools folder, with your own user name instead of you:
$ git clone https://github.com/kapurlab/bioinformatic_diagnostic_tools.git Cloning into 'bioinformatic_diagnostic_tools'... Receiving objects: 100% (2488/2488), 5.69 MiB, done. $ cd bioinformatic_diagnostic_tools $ pwd /Users/you/bioinformatic_diagnostic_tools
$ git clone https://github.com/kapurlab/bioinformatic_diagnostic_tools.git Cloning into 'bioinformatic_diagnostic_tools'... Receiving objects: 100% (2488/2488), 5.69 MiB, done. $ cd bioinformatic_diagnostic_tools $ pwd /home/you/bioinformatic_diagnostic_tools
Remember this folderYour tools now live in bioinformatic_diagnostic_tools, in your home folder. Every bin/bdtools command works only from inside this folder. When you come back in a few weeks or months, always start with cd ~/bioinformatic_diagnostic_tools (Part B). Write the pwd line down, or keep this page.
~)To see these folders in Finder: press ⌘ Command + Shift + H (your home folder).
To see these folders: open the Files app and click Home.
To see these folders in Windows: open File Explorer, then Linux → Ubuntu → home → your user name.
bdtoolsbdtools is the control program for these tools. It installs them, checks them, updates them and opens them.
A. Install (first time only)
One command installs vSNP3 and the other tools of the suite, with everything they need.
▶ Do this
bin/bdtools install all✔ You should see
A check list for every tool. vsnp_gui must show only green ✓ marks. Then the dashboard opens (A9).
ok Install complete. Your tools are here: /Users/you/bioinformatic_diagnostic_tools … Set up reference databases now (Kraken2, BLAST, vSNP)? [y/N]: N checking your installs are ready to run… vsnp_gui ✓ environment present ✓ python modules (4) import ✓ programs on PATH ✓ vSNP reference options … amr_plus_gui ✗ AMRFinderPlus DB missing … … kraken_id_parse_gui ✗ Kraken2 DB missing … ✗ BLAST ref_prok_rep_genomes missing … … !! 2 tool(s) need attention — run the suggested fix above, … opening the dashboard …
ok Install complete. Your tools are here: /home/you/bioinformatic_diagnostic_tools … Set up reference databases now (Kraken2, BLAST, vSNP)? [y/N]: N checking your installs are ready to run… vsnp_gui ✓ environment present ✓ python modules (4) import ✓ programs on PATH ✓ vSNP reference options … amr_plus_gui ✗ AMRFinderPlus DB missing … … kraken_id_parse_gui ✗ Kraken2 DB missing … ✗ BLAST ref_prok_rep_genomes missing … … !! 2 tool(s) need attention — run the suggested fix above, … opening the dashboard …
Slow internet?This step downloads about 7 GB. One tool, kSNP, fetches a large package (520 MB, or about 1 GB on a Mac) from SourceForge, which is often slow: in our test that part alone took 19 minutes. On slow internet the whole step can take an hour or more. That is normal.
Why N?vSNP3 already has the reference genome we need. y downloads more than 50 GB of databases for other tools. You can add them later with bin/bdtools setup-databases.
✗ for two tools? That is expectedAMRFinderPlus and Kraken ID-Parse need extra databases, so the last lines say 2 tool(s) need attention. This training uses only vSNP3, so you can leave them. To set them up later: bin/bdtools setup-databases amrfinder (small), or bin/bdtools setup-databases kraken blast (very large). Lines that start with – are only notes.
A. Install (first time only)
This is your home page for the tools.
▶ Do this
Open this in your web browser:
http://127.0.0.1:8080/
Keep this window open while you work (Ctrl-C stops everything).✔ You should see
The Bioinformatic Diagnostic Tools dashboard, with a card for each tool. vSNP3 (SNP analysis & phylogeny) is the first card, with a Launch button.
Needs setup?Two cards, AMRFinderPlus and Kraken ID-Parse, say needs setup: they need the databases you skipped in A8. Some cards also show a ⚠ note. This training does not use those tools, so you can ignore both.
Done!The install is finished. You never need to do Part A again on this computer.
Part B
Installed the tools some time ago? These three pages show how to open them again, check them, and update them. Most of it is done on the dashboard page.
If you just finished Part A, the dashboard is already open. Read Part B once, then go to Part C.
Go to Part C: run the analysis →B. Start here next time
Two commands. Do this every time you want to use the tools.
▶ Do this
cd ~/bioinformatic_diagnostic_toolsbin/bdtools dashboard✔ You should see
The terminal prints the dashboard's address and stays busy. Leave it open.
$ bin/bdtools dashboard Bioinformatic Diagnostic Tools (bdtools) Open this in your web browser: http://127.0.0.1:8080/ Keep this window open while you work (Ctrl-C stops everything).
Your browser opens the dashboard, the same page as in step A9. On Linux the address ends with ?t= and a key: if you copy it by hand, copy all of it.
Even easierMake a Desktop icon once: run bin/bdtools make-launcher. Then double-click Kapur Lab Dashboard on your Desktop to start the dashboard.
Even easierMake a menu icon once: run bin/bdtools make-launcher. Then open Kapur Lab Dashboard from your applications menu.
WindowsOpen Ubuntu first (Start → Ubuntu). The dashboard address works in your normal Windows browser.
B. Start here next time
Once the dashboard is open, its page does the rest. Keep this page.
| I want to… | On the dashboard page | Or in the terminal |
|---|---|---|
| Check that the tools are ready | Look at the cards. A ready tool shows only its version. A tool with a problem says needs setup and lists the fix. | bin/bdtools doctor |
| See if there is a newer version | At the bottom: ✓ Up to date or ↑ Updates available. Click Re-check to look again. | bin/bdtools check-updates |
| Update | Click the numbered buttons at the bottom, in order. See B3. | git pullbin/bdtools update all |
| Restart the dashboard | Click ↻ Restart dashboard at the bottom. | bin/bdtools dashboard --restart |
| Stop everything | Click ⏻ Shut down at the bottom. | Ctrl + C |
Terminal commandsType them inside the tools folder: first cd ~/bioinformatic_diagnostic_tools. The dashboard must be running for its buttons to work (B1).
Your filesYour projects are in the projects folder in your home folder. Shut down and updates do not delete them.
B. Start here next time
New versions fix problems. The dashboard tells you when there is one.
▶ Do this
On the dashboard, scroll to the bottom. ✓ Up to date means there is nothing to do.
✔ You should see
Each update ends with Update finished and ✅ Finished under its log. After the last restart, the box says ✓ Up to date and the vSNP3 card shows the new version number. An old vSNP3 tab now says vsnp_gui is not running — launch it from the dashboard: close it and click Launch.
Slow internet?An update downloads new files, and may rebuild a tool. It takes a few minutes, longer on slow internet. Do not close the terminal while it runs.
In the terminalThe same, typed in the tools folder: git pull, then bin/bdtools update all, then bin/bdtools dashboard --restart. Updates keep your projects.
Part C
Now you work in the web browser. You create a project, download the 26 samples, run Step 1 and Step 2, and read the tree.
The vSNP3 page is long. You scroll down as you go: Projects → Step 1 → Step 2.
C. Run the analysis
vSNP3 opens in its own tab. Keep the dashboard tab open too.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor › Step 1 › Step 2 › Live Logs
▶ Do this
On the dashboard, find the card SNP analysis & phylogeny.
✔ You should see
A new browser tab: vSNP GUI and its version number (here v0.4.127; yours may be newer). At the top: PROJECT None.
WaitIf the tab says vsnp_gui is starting … Reload in a few seconds, wait 5 seconds and reload the page.
SettingsYou do not need to change anything in Settings. Your own name shows in the paths instead of “trainee”.
C. Run the analysis
A project is a folder that keeps one analysis together.
On the vSNP3 page: Settings › Projects & Inputs → Projects › Reference Editor › Step 1 › Step 2 › Live Logs
▶ Do this
Scroll down to Projects.
✔ You should see
A new card: Outbreak_training, with a green tag Mycobacterium_AF2122 and FASTQ: 0 | Step1: 0 | VCF DB: 0.
Why this reference?A reference is a known, complete genome. Mycobacterium_AF2122 is the standard M. bovis genome. Our samples are M. bovis.
C. Run the analysis
Click the project before you do anything else.
On the vSNP3 page: Settings › Projects & Inputs → Projects › Reference Editor › Step 1 › Step 2 › Live Logs
▶ Do this
✔ You should see
The card gets a red outline. At the top of the page: PROJECT Outbreak_training. The Download button is now dark green.
ImportantA new project does not open by itself. Always click it first. If buttons are pale and do nothing, no project is open.
C. Run the analysis
vSNP3 downloads the DNA reads for you.
On the vSNP3 page: Settings › Projects & Inputs → Inputs › Reference Editor › Step 1 › Step 2 › Live Logs
▶ Do this
First copy the 26 SRA numbers:
✔ You should see
Under the button: Downloading 26 accessions… and a timer.
Where from?vSNP3 downloads the reads from a free public library (NCBI SRA, through the European copy at ENA). It downloads about 5 GB, so on slow internet this step takes a long time (see C5).
C. Run the analysis
Each sample has two files: R1 and R2 (the two ends of each DNA piece).
On the vSNP3 page: Settings › Projects & Inputs → Inputs › Reference Editor › Step 1 › Step 2 › Live Logs
▶ Do this
✔ You should see
Download complete and Last download: 26 downloaded. On the right, Ready to run (26 samples) lists every sample as paired · R1+R2.
TimeAbout 10–30 minutes with good internet (5.1 GB). On slow internet it can take 1–2 hours. Our test took 16 minutes.
If some failedSometimes the download server refuses a file. Then the box says Failed — 1 and names the sample. Copy all 26 again, paste them, and click Download again. Samples you already have are skipped, so only the missing ones download.
C. Run the analysis
Step 1 needs the reads in its own folder. One button does it.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor › Step 1 › Step 2 › Live Logs
▶ Do this
Scroll down to Step 1. Reference already says Mycobacterium_AF2122.
✔ You should see
52 file(s) staged. The Samples list shows 26 samples, each Not Started.
Why 52?26 samples × 2 files (R1 and R2) = 52 files.
C. Run the analysis
This is the slow part. You can take a break.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor › Step 1 › Step 2 › Live Logs
▶ Do this
✔ You should see
The button says Running… with a timer, and a Stop button appears. Samples change from Not Started to Running to Complete. Three run at the same time.
TimeAbout 20–60 minutes on a laptop. Our test computer (a 64-core workstation) took 6 minutes.
What happensFor each sample, vSNP3 lines up millions of short reads on the reference genome and lists every place where the sample is different (a VCF file).
C. Run the analysis
When the last sample is done, vSNP3 collects the 26 results.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor › Step 1 › Step 2 › Live Logs
▶ Do this
✔ You should see
All samples Complete. The button says Run again. At the bottom of the panel: vcf_database: 26 VCFs.
New project nameThe project now shows as Outbreak_training_Mycobacterium_AF2122. vSNP3 adds the reference name. This is normal.
C. Run the analysis
Before Step 2, check that every sample is good enough.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor › Step 1 → Step 1 Results › Step 2 › Live Logs
✔ You should see
Step 1 Results fills in by itself: Loaded 26 sample(s). 25 PASS and 1 REVIEW: SRR33585214, “mapping rate 89.8%”.
▶ Do this
| Column | Good | Ours | Meaning |
|---|---|---|---|
| Avg Depth | 20 or more | 38 to 116 | How many reads cover each letter of the genome, on average. |
| Mapping % | 90% or more | 90% to 100% (one 89.8%) | How many reads match the reference. |
| Genome Cov | near 100% | about 99.5% | How much of the genome has reads. |
Why keep SRR33585214?Its mapping rate is just under 90%, so vSNP3 asks you to look. Its depth (38) is good, so the SNP calls are still reliable.
C. Run the analysis
Use the SRR numbers and the sample table (page “Your 26 samples”) to see which group each state is in.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor › Step 1 → Step 1 Results › Step 2 › Live Logs
Look at the Groups column. vSNP3 already sorted every sample into a group, using a few defining SNPs:
ExampleIn the picture, SRR33629183 is a New Rexico sample (red, unknown). Its group is Mbovis-04B6, the same as the Pichigan samples SRR33561021 and SRR33665434.
So farThis tells us the state. Step 2 will tell us the county.
C. Run the analysis
Do this before Step 2. Then the tree shows the state and county, not only numbers.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor → Sample Metadata › Step 1 › Step 2 › Live Logs
▶ Do this
✔ You should see
Saved — 26 added, 0 updated (26 total), a table of Original name → Display label, and vcf_database coverage: 26 / 26 samples have metadata · All samples covered.
WhyWithout names, the tree shows only SRR numbers. With names, it shows the year, state and county of each sample.
C. Run the analysis
Step 2 compares a set of VCF files. First you choose and collect the set.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor › Step 1 › Step 2 › Live Logs
▶ Do this
Scroll down to Step 2. Box 2 says No reference databases are configured: nothing to do there.
✔ You should see
Comparison set by source: vcf_database: 26 and This run compares 26 of the 26 VCFs in the set — ready to Run.
C. Run the analysis
Step 2 builds a SNP table and a tree for each group.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor › Step 1 › Step 2 › Live Logs
▶ Do this
✔ You should see
Running…, then Last Build — Step 2 complete.
On the right, Step 2 Results shows the new comparison with 6 groups:
TimeAbout 1–3 minutes. Our test took 22 seconds.
C. Run the analysis
Each group has its own tree and SNP tables.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor › Step 1 › Step 2 → Step 2 Results › Live Logs
| Group | Samples | What it is |
|---|---|---|
| Mbovis-All 26×230 | 26 | All samples in one tree. We use this one. |
| Mbovis-04B6 9×82 | 9 | Pichigan + New Rexico |
| Mbovis-04C7 17×74 | 17 | Dexas + Bisconsin |
26×230means 26 samples and 230 SNP positions. Mbovis-04, -04B and -04C are bigger family groups that contain the smaller ones.
C. Run the analysis
A tree shows which samples are most alike.
On the vSNP3 page: Settings › Projects & Inputs › Reference Editor › Step 1 › Step 2 → Step 2 Results › Live Logs
▶ Do this
✔ You should see
A new tab: Tree viewer, 27 leaves. Each name is one sample. The names have the year, state and county.
C. Run the analysis
The tree can colour the samples you search for.
Where: the Tree viewer tab (it opened in C15). The vSNP3 page stays open in its own tab.
▶ Do this
✔ You should see
The 5 outbreak samples turn red: 3 Bisconsin (top) and 2 New Rexico (bottom). It says 1 of 5.
C. Run the analysis
Look at the black name that joins each red group.
Where: the Tree viewer tab (it opened in C15). The vSNP3 page stays open in its own tab.
C. Run the analysis
A clade is a branch of the tree with everything on it.
Where: the Tree viewer tab (it opened in C15). The vSNP3 page stays open in its own tab.
▶ Do this
✔ You should see
hiding 53 of 57 positions. Only 4 columns are left. Each coloured box is a difference.
Read itDEXAS_countyF and each Bisconsin sample differ at only 2 or 3 places out of 4.4 million letters.
C. Run the analysis
Do the same for the other outbreak.
Where: the Tree viewer tab (it opened in C15). The vSNP3 page stays open in its own tab.
▶ Do this
Go back to the Tree viewer tab.
✔ You should see
hiding 53 of 56 positions. Only 3 columns are left.
Read itPICHIGAN_countyX and each New Rexico sample differ at only 2 places. N means “no data here”: it is not a difference.
C. Run the analysis
You found it. Here is what vSNP3 shows.
is closest to
Dexas · countyF
2–3 SNPs from sample SRR33914654 (2022). The next closest, Dexas countyG, is 9–10 SNPs away.
is closest to
Pichigan · countyX
2 SNPs from sample SRR33818626 (2021). Every other Pichigan sample is 11 or more SNPs away.
How close is close?For TB, samples within about 5–12 SNPs may be part of the same chain of infection. The tree and the SNP table are two views of the same answer. Always look at both.
RememberThe places and outbreaks in this exercise are made up. The method is real.
D. Finish
Click a question to see the answer.
Our samples are M. bovis. AF2122 is a complete M. bovis genome, so the reads match it well.
A VCF file: the list of places where the sample is different from the reference.
Its mapping rate (89.8%) was just under 90%, but its depth (38) was good. The SNP calls are still reliable.
Few SNPs between them. They are closely related.
Pichigan countyX, 2 SNPs away.
D. Finish
Most problems have a simple fix.
| Problem | Fix |
|---|---|
| conda: command not found | Close the terminal and open a new one (A6). Still there? Run ~/miniforge3/bin/conda init, then open a new terminal. |
| bin/bdtools: No such file or directory | You are in the wrong folder. Run cd ~/bioinformatic_diagnostic_tools first. |
| The browser says it can't connect to 127.0.0.1:8080 | The dashboard is not running. Start it (B1). Keep the terminal open. |
| Buttons are pale and do nothing | No project is open. Click the project card (C3). |
| The download says Failed for some samples | Paste all 26 again and click Download. Only the missing samples download. |
| A sample in Step 1 says Error | Click View log next to it to see why. To try again, tick Force re-run and click Run. (This runs all 26 samples again, so it takes the same time as the first run.) |
| The tree shows only SRR numbers | The names were not added before Step 2. Do C11, then run Step 2 again (C13). |
| Anything else | Look at the dashboard: a card that says needs setup lists the fix. Or, in the tools folder, run bin/bdtools doctor: it lists what is wrong and the command that fixes it. |
D. Finish
Your project and results stay on your computer.
▶ Do this
✔ You should see
Dashboard shut down. You can close the tabs and the terminal.
Your work is savedEverything is in projects/Outbreak_training in your home folder. Next time, open the dashboard (B1) and click your project.
D. Finish
Keep learning.
Try it againMake a new project with mtbc0_v1.1 as the reference. It needs bin/bdtools setup-databases --home vsnp-refs vsnp-deps first, then a restart of the dashboard. In Step 2, untick the four reference databases in box 2, so that only your 26 samples are compared. The groups get different names (La1_bovis04B6 and La1_bovis04C3-e), but the answer is the same.