NeMO: a flexible R package for nested multi-species occupancy modelling and eDNA study optimization

The paper introduces NeMO, a flexible R package that utilizes Bayesian multi-species occupancy models to address detection uncertainty in eDNA metabarcoding by accounting for nested sampling structures, estimating key detection parameters, and optimizing survey design for effective biodiversity monitoring.

Mace, B., Manel, S., Valentini, A., Rocle, M., Roset, N., Delrieu-Trottin, E.

Published 2026-03-18
📖 5 min read🧠 Deep dive
⚕️

This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Imagine you are trying to take a census of all the fish living in a giant, flowing river like the Rhône in France. In the old days, scientists had to go out with nets or electric shocks to catch fish and count them. It was hard work, often missed small or shy fish, and could be harmful to the animals.

Now, we have a high-tech tool called eDNA (environmental DNA). Think of it like finding a "scent trail" or "hair follicle" left behind by the fish in the water. By taking a cup of water, filtering it, and looking at the genetic material inside, we can tell which fish were there without ever seeing them.

The Problem: The "Ghost" in the Machine
Here is the catch: Just because you don't find a fish's DNA in your cup of water, doesn't mean the fish isn't there. Maybe the water was too muddy, maybe the DNA washed away, or maybe the lab test just missed it. This is called a false negative.

If scientists treat a "miss" as a "true absence," they might think a rare fish is gone forever when it's actually just hiding. It's like looking for a friend in a crowded room, not seeing them, and assuming they aren't there, when they are actually just standing behind a pillar.

The Solution: NeMO (The Detective's Toolkit)
The authors of this paper created a new computer program called NeMO (Nested eDNA Metabarcoding Occupancy). You can think of NeMO as a super-smart detective that doesn't just count what it sees; it calculates the probability of what it might have missed.

Here is how NeMO works, using a simple analogy:

1. The Three-Layer Cake (The Nested Design)

Imagine you are trying to find a specific cookie in a bakery.

  • Layer 1 (The Site): You pick a bakery (a spot in the river). Is the cookie even in this bakery? (This is Occupancy).
  • Layer 2 (The Sample): You buy a box of cookies from that bakery. Did you actually grab the box containing the cookie, or did you grab an empty one? (This is Collection).
  • Layer 3 (The PCR Replicate): You open the box and look at the cookies. Did you spot the specific cookie, or did it get lost in the pile? (This is Amplification).

NeMO understands that you have to get lucky at all three layers to find the fish. If you fail at any step, you get a "zero," but NeMO knows that zero doesn't always mean "not there."

2. The "Read Count" (The Volume of Evidence)

Sometimes, the lab doesn't just say "Yes/No." It gives you a number: "We found 50 strands of DNA for this fish."
NeMO is smart enough to use these numbers. If you find 50 strands, it's a strong signal. If you find 1 strand, it's a weak signal. NeMO weighs this evidence to decide how likely it is that the fish is actually present.

3. The "Resource Calculator" (The Budget Planner)

One of the coolest features of NeMO is that it acts like a travel agent for scientists. Before they even go to the river, NeMO can tell them:

  • "To be 95% sure you find this shy fish, you need to take 3 cups of water instead of 1."
  • "You need to run the lab test 20 times instead of 5."
  • "You need to look at 5,000 DNA strands instead of 500."

This helps scientists save money and time. Instead of guessing, they know exactly how much effort is needed to find the "ghost" fish.

What Did They Find?

The team tested NeMO on fish in the Rhône River. They discovered some fascinating things:

  • Rarity vs. Elusiveness: Some fish are rare (they live in very few places), but when they are there, they are easy to find (conspicuous). Other fish are common (they live everywhere), but they are very hard to detect (elusive). NeMO can tell the difference between a fish that is actually gone and a fish that is just good at hiding.
  • Upstream vs. Downstream: The model successfully figured out which fish prefer the cold, mountain headwaters and which prefer the warm, lower parts of the river, even when the data was messy.
  • The "Missed" Fish: They found that the original study design (2 cups of water, 12 lab tests) was good enough for most fish, but for a few very tricky species, they would have needed way more effort to be sure they weren't missing them.

Why Does This Matter?

Conservation is all about knowing what is there and what is gone. If we think a species is extinct because we missed it once, we might stop protecting its habitat. If we think a species is safe when it's actually disappearing, we might not act in time.

NeMO is like a safety net. It ensures that when we say a fish is "absent," we are actually sure it's gone, and not just that our net was too small or our test was too weak. It turns a "maybe" into a "statistically confident answer," helping us protect biodiversity more effectively.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →