Live data from Hacker News

Sequencing your DNA with a USB dongle and open source code

stackoverflow.blog

141–150 of 179 posts

Re: Sequencing your DNA with a USB dongle and open source code

#141

Earlier quoted context omitted.

A used laboratory grade NGS system can be had for less than 10K https://www.ebay.com/itm/265148387179 Nanopore is still not quite ready yet for precise and high accuracy sequencing. Give it another five years.

Interested outsider here; I work with a lot of HCLS research customers but don't have a biology-related background. Can you explain the problems with the Nanopore sequencer accuracy in more detail? Basically, I was wondering if I could get one for myself and sequence my own genome, then user the data to learn about life-sciences computing techniques. If I were to buy one of the USB-attachable devices and run it, is t…

Tl;Dr: Nanopore data is historically lower quality than current gold-standard methods, but it is by no means "not viable" in a genomics pipeline. Their newer chemistry flowcells are competitive with current gold-standard (but I've not seen it with my own eyes in the lab yet due to limited release).

There are two components that drive sequencing error rate. 1) The chemistry behind the sequencing (for nanopore sequencing this is the "feeding DNA through a pore" bit) 2) the method to convert raw signal into DNA sequence (this is called "base calling").

The gold-standard in terms of error profile for sequencing is currently the Illumina short read platform. Illumina machines are really just microscopes (TIRF scopes for optics folks) that sequence DNA by visualizing incorporation of dye-labeled nucleotides into the sequenced molecule(s) (Imagine a really slow PCR [1]). Each base is labeled with a different color, then when a molecule has a match it makes a colored spot on the slide that the machine can read (see here for more info & details of newer chemistry that use fewer colors [2]). This whole process is mediated by DNA polymerase which itself has a very low error rate. Another important point is that DNA sequenced on the illumina platform (called a "library") tends to be from "amplified" template DNA, meaning the DNA will have been processed and potentially be missing chemical modifications on the bases that could be present in the organism. This works to Illumina's advantage, because when trying to answer the question of "what is the DNA sequence?" we want the ground-truth DNA, not the modification state.

In contrast, Nanopore sequencing works by feeding a long strand of DNA through a pore and measuring the change in electrical current through the pore (watch the cool video [3]). For the current set of nanopore flowcells, 8 bases of DNA sit in the pore at a time, meaning the current at each timestep is a product of 8 nucleotides in aggregate. This also means that the pore "sees" each base 8 times, but always in the context of an additional 7. In order to basecall from the raw signal, it's not as easy as saying "blue = A", instead, you have to deconvolve each base from a complex signal. As you might imagine, the folks at Oxford Nanopore & broader research community have turned to machine learning-based base callers to solve this problem, and they work quite well [4]. But they are not perfect. Deconvolving runs of the same base (e.g. "AAAAAAA") is difficult because without well-defined signal changes between bases, the caller has a hard time deciding how many bases it has seen, so a common error mode for nanopore sequencing is to create insertions/deletions at places in the genome with low nucleotide diversity. Another interesting reason is that most Nanopore library preps are often performed on unamplified DNA, and so in addition to normal A/T/G/C nucleotides, the template DNA can also contain bases with chemical modifications. For example, in bacteria, A's are often methylated, and in Humans, C can have all kinds of different modifications (5-methyl-cytosine, 5-hydroxymethyl-cytosine, etc. etc.) and each different modification affects the signal in the nanopore. Therefore, basecallers that weren't trained on modified bases will produce basecalling errors in the presence of base modifications.

For both Illumina and Nanopore basecallers, they assign a quality score to each base that indicates the probability that the basecaller produced an incorrect value. This is called a Q-score, which is defined as "Q = -10(log10(P-value))" (i.e. Q / 10 = the order of magnitude of the error probability) [5]. For example, a Q-score of 10 means an error rate of 1 in 10, but a Q-score of 50 means an error rate of 1 in 100,000. For Illumina sequencing, >95% of the reads have a Q-score > 30 (i.e. 1 in 1000 errors), while Nanopore reads tend to have lower average Q-scores (~Q20, i.e. 1 in 100 errors). For genetics, where 1 base difference can mean the difference between a severe disease allele vs a normal variant, 1 in 100 won't cut it.

The current gen Nanopore flowcell chemistry (R9.4.1) is what most people are talking about when they talk about Nanopore error rates, but they've just released a new pore type & made some basecaller upgrades that improve the accuracy to what they call "Q20+" and some claims of Q>30, and from the data I've seen, it's impressive, I just haven't got my hands on one yet to see for myself [6]. I think the comment saying "wait 5 years" is an overestimate, but if you want to genotype yourself today, I'd just pay someone for Illumina sequencing and process the fastq files yourself if you really want to do it as a learning exercise.

I've unintentionally written an essay, so I'll stop here, but real quick to your other point RE: rerunning the sample N times & using the repeats for error correction. This won't work the way you're thinking because a "sample" is actually a collection of DNA molecules that are sampled randomly by the sequencer. You have no way of knowing that the same read between runs was actually from the same molecule, so you can't error correct this way. Consequently, a totally different sequencing platform from Pacific Biosciences uses this strategy by doing some really cool chemistry, but I'll spare you the second essay (google "PacBio HiFi" or "circular consensus reads" if you're interested).

[1] https://en.wikipedia.org/wiki/Polymerase_chain_reaction

[2] https://www.ecseq.com/support/ngs/do-you-have-two-colors-or-...

[3] https://www.youtube.com/watch?v=RcP85JHLmnI

[4] This paper is a tad out of date, but Ryan Wick always writes extremely clear papers: https://genomebiology.biomedcentral.com/articles/10.1186/s13...

[5] https://www.illumina.com/documents/products/technotes/techno...

[6] https://nanoporetech.com/about-us/news/oxford-nanopore-tech-...

Edit: reformatted links for clarity.

Re: Sequencing your DNA with a USB dongle and open source code

#142

Earlier quoted context omitted.

A used laboratory grade NGS system can be had for less than 10K https://www.ebay.com/itm/265148387179 Nanopore is still not quite ready yet for precise and high accuracy sequencing. Give it another five years.

That's not true. I just did a high-quality sequence and assembly of a new species of fungus from my home lab using nanopore. You can see all my code used for assembly and analysis that will be referenced in a paper I plan to publish in Jan here: https://github.com/EverymanBio/pestalotiopsis

I thought I recognized your name from the side hustle story. :) This is super cool!!!

Re: Sequencing your DNA with a USB dongle and open source code

#143
Happy to see this year. I worked on solid-state nanopore development as a part of my PhD.

Now I'm a Data Engineer doing backend work in public sector. :)

Here are some press releases related to articles I published during my PhD:

https://physics.illinois.edu/news/article/34064

https://www.sciencedaily.com/releases/2014/10/141014095320.h...

Re: Sequencing your DNA with a USB dongle and open source code

#144

Earlier quoted context omitted.

Interested outsider here; I work with a lot of HCLS research customers but don't have a biology-related background. Can you explain the problems with the Nanopore sequencer accuracy in more detail? Basically, I was wondering if I could get one for myself and sequence my own genome, then user the data to learn about life-sciences computing techniques. If I were to buy one of the USB-attachable devices and run it, is t…

Tl;Dr: Nanopore data is historically lower quality than current gold-standard methods, but it is by no means "not viable" in a genomics pipeline. Their newer chemistry flowcells are competitive with current gold-standard (but I've not seen it with my own eyes in the lab yet due to limited release). There are two components that drive sequencing error rate. 1) The chemistry behind the sequencing (for nanopore sequenci…

I for one am glad you wrote the essay, this was incredibly informative and filled in a bunch of blanks I had after reading what I could scratch together on the MinION product. I think I'm in a partial state of shock at how accessible this is becoming. Thank you!

Re: Sequencing your DNA with a USB dongle and open source code

#145
post #81

Earlier quoted context omitted.

What I worry about is having this data laundered through a couple of vendors. "How could we know our vendor's vendor was using genetic information in their proprietary risk score?" "How could we know our client's client was using our score for life, health, or auto insurance/employment/lending/etc decisions?" It's a "can't unring a bell" situation and the gaps in the regulations and the incentives for bad behavior ar…

Because insurance is regulated against this. They can’t just Willy-nilly get data and “scores” from uncontrolled sources.

Mortgages in 2008 were regulated too

Re: Sequencing your DNA with a USB dongle and open source code

#146

Earlier quoted context omitted.

Because insurance is regulated against this. They can’t just Willy-nilly get data and “scores” from uncontrolled sources.

Mortgages in 2008 were regulated too

Subprime mortgages aren’t illegal?

Insurers have auditing requirements to prove what goes into the policy calculation. It is impossible to hide illegal data use at any meaningful scale, and no insurance agency is looking to save a buck on a small number of clients.

Your comparison is irrelevant.

Re: Sequencing your DNA with a USB dongle and open source code

#147
post #18

I'm really curious about what I could learn by getting my DNA sequenced, but I'm worried about my rights to not have it recorded and shared without my consent if I got someone else to do it for me - so any advance toward an affordable home test setup is very welcome.

It’s out the bag now - you can be identified via relatives DNA. https://www.latimes.com/california/story/2020-12-08/man-in-t...

I don't think that implies the increase in risk would be negligible, which was the parent's point.

Re: Sequencing your DNA with a USB dongle and open source code

#148
post #81

Earlier quoted context omitted.

What I worry about is having this data laundered through a couple of vendors. "How could we know our vendor's vendor was using genetic information in their proprietary risk score?" "How could we know our client's client was using our score for life, health, or auto insurance/employment/lending/etc decisions?" It's a "can't unring a bell" situation and the gaps in the regulations and the incentives for bad behavior ar…

Because insurance is regulated against this. They can’t just Willy-nilly get data and “scores” from uncontrolled sources.

Oh sweet summer child. The astute business person will construct a score that happens to correlate with these known genetic defects and then sell it to insurance anyway with the plausible cover correlated source.

Re: Sequencing your DNA with a USB dongle and open source code

#149

Earlier quoted context omitted.

You avoid the problem with medical debt, to be precise. You cannot really avoid the fundamental constraints - anywhere in the world, there are only so many doctors and so much money available for treatments. IDK if USA has a shortage of doctors, but plenty of European countries do. A country like Romania just cannot give its doctors big enough wages to stop them from seeking employment elsewhere, where they will get…

That's a pretty poor way of pigeonholing the problem. Looking at the US healthcare system, it's obvious that many doctors' and nurses' talents are wasted doing bureaucratic paperwork. Simultaneously, if there is a genuine lack of healthcare providers, there is no price signal that would encourage more to enter the market. What you say may be somewhat true in the context of transmuting the US's "private" bureaucracy i…

> Looking at the US healthcare system, it's obvious that many doctors' and nurses' talents are wasted doing bureaucratic paperwork.

This is incorrect. Most of the paperwork is done by administrative staff. Paying for that giant staff + the actual medical professionals is why things are so expensive.

Hospitals are not stupid, they won’t waste their most valuable resource (healthcare time) on bureaucratic paperwork.

Re: Sequencing your DNA with a USB dongle and open source code

#150
post #97

I don't know if this is the exact nanopore USB dongle used in the article, but this one is $1,000 for the base package, first released in 2014 https://store.nanoporetech.com/us/minion.html https://www.extremetech.com/extreme/190409-minion-usb-stick-...

Note that Oxford Nanopore seems to have very much a "sell the ink/razor/etc" business model with their devices: that $1,000 package comes with one flow cell, which is a consumable and costs $900. They're essentially giving the device away for free. On some of their larger devices (eg, the PromethION), they've moved outright to a "we lend you the device for free, you buy the consumables" model.

IIRC you even have to send back the used flow cells to buy new ones so they can keep prices down.
Post reply on HN