OSCR

The olfactory receptor SNIF-1 mediates foraging for leucine-enriched diets in <i>C. elegans</i>.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

MATLAB · 79 lines · 2.6 KB · no license

  1. clc; clear all; close all;
  2. %% location C:\';
  3. loc = [''];
  4. border = 110;
  5. IMthresh = 1.020; % 1.0-1.1
  6. %% Video export location
  7. v = VideoReader(loc);
  8. NumberFrame = v.NumFrames;
  9. newFileLoc = strcat(loc(1:end-4),'_tracking.avi');
  10. newFileLoc2 = strcat(loc(1:end-4),'_CropVideo.avi');
  11. v2 = VideoWriter(newFileLoc,'Motion JPEG AVI');
  12. v3 = VideoWriter(newFileLoc2,'Motion JPEG AVI');
  13. v2.Quality = 95;
  14. v3.Quality = 95;
  15. open(v2);
  16. open(v3);
  17. for i = 1:NumberFrame
  18. %% read frames
  19. frame = read(v,i);
  20. currentimage = im2double(rgb2gray(frame));
  21. if i == 1
  22. %% crop extra part
  23. [l,B] = size(currentimage);
  24. % currentimage = imcrop(currentimage,[1,40,B,1-40]);
  25. im56 = imbinarize(currentimage,0.09); % chage here if not working
  26. im56_BW = bwareaopen(im56,500);
  27. im56_BW_fil = imfill(im56_BW,'holes');
  28. % big blob identification
  29. [labeledImage, numberOfBlobs] = bwlabel(im56_BW_fil);
  30. blobMeasurements = regionprops(labeledImage, 'area');
  31. % Get all the areas
  32. allAreas = [blobMeasurements.Area];
  33. [sortedAreas, sortIndexes] = sort(allAreas, 'descend');
  34. biggestBlob = ismember(labeledImage, sortIndexes(1:1));
  35. % Convert from integer labeled image into binary (logical) image.
  36. binaryImage = biggestBlob > 0;
  37. stats = regionprops(binaryImage,'Centroid','MajorAxisLength','MinorAxisLength');
  38. centers = stats.Centroid;
  39. Center_X = floor(centers(1));
  40. Center_y = round(centers(2));
  41. radii = round((stats.MajorAxisLength+stats.MinorAxisLength)*0.25)- border;
  42. theta = linspace(0, 2*pi, round(4*pi*radii)); % Define angles
  43. % Get x and y vectors for each point along the circumference.
  44. x = radii * cos(theta) + Center_X;
  45. y = radii * sin(theta) + Center_y;
  46. myImage = zeros(size(currentimage));
  47. for k = 1:length(x)
  48. row = round(y(k));
  49. col = round(x(k));
  50. myImage(row, col) = 1;
  51. end
  52. myImage_BW_fil = imfill(myImage,'holes');
  53. end
  54. Final_image = currentimage.*myImage_BW_fil;
  55. I = imcrop(Final_image,[Center_X-radii,Center_y-radii,radii*2,radii*2]);
  56. %% noise reduction
  57. se = strel('disk',10);
  58. Io = imopen(I,se);
  59. Ie = imerode(I,se);
  60. Iobr = imreconstruct(Ie,I);
  61. Ioc = imclose(Io,se);
  62. Iobrd = imdilate(Iobr,se);
  63. Iobrcbr = imreconstruct(imcomplement(Iobrd),imcomplement(Iobr));
  64. I45 = I + Iobrcbr;
  65. fgm = I45>IMthresh;
  66. fgm3 = im2double(bwareaopen(fgm,5));
  67. writeVideo(v2,fgm3);
  68. writeVideo(v3,I)
  69. % imshow(fgm3,[]);
  70. % pause(0.1);
  71. end
  72. close(v2);
  73. close(v3);

Supplementary File 6.m, no license · at the source

Overview

  1. Division of Molecular Microbiology, School of Life Sciences, University of Dundee, Dundee, United Kingdom
  2. Department of Developmental Biology and Genetics, Indian Institute of Science, Bangalore, India
  3. Institute of Biology of the Ecole Normale Supérieure, Paris, France
  4. Department of Molecular Biology, Umeå University, Umeå, Sweden
Journal: eLife, volume 13, article RP101936
Dates: published online 24 April 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.101936 · PMID 42029136 · PMCID PMC13108967 · OpenAlex W4403186680
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: C. elegans (organism), cellular / molecular (subfield)
Methods: Statistics, Evoked potentials, Smoothing, state filtering, decompositions
Keywords: C. elegans
MeSH: Caenorhabditis elegans*, Caenorhabditis elegans Proteins*, Diet*, Feeding Behavior*, Leucine*, Olfactory Receptor Neurons*, Receptors, Odorant*, Animals, Odorants, Pentanols (* major topic)
Topic: Genetics, Aging, and Longevity in Model Organisms (Aging, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: Indo French Centre for Advanced Scientific Research (IFCP/6503-4); DBT/Wellcome Trust India Alliance (IA/S/21/1/505655); Royal Society (RSWF\R1\231005)
Citations: not cited yet (Europe PMC); 99 references in the paper

Abstract

Acquisition of essential nutrients through diet is crucial for the survival of animals. Dietary odors might enable animals to forage for nutrient-rich diets. We asked if Caenorhabditis elegans, a bacterivorous nematode, uses olfactory cues to forage for essential amino acid-rich (EAA) diets. Using the native microbiota of C. elegans, we show that worms rely on olfaction to select leucine (EAA)-supplemented bacteria. Using gas chromatography, we find that leucine-supplemented bacteria produce isoamyl alcohol (IAA) odor in the highest abundance. Prior adaptation of worms to IAA diminishes the diet preference of worms. Several wild isolates of C. elegans display robust responses to IAA, emphasizing its ecological relevance. We find that foraging for a leucine-supplemented diet is mediated via the AWC olfactory neurons. Finally, we identify SNIF-1 G protein-coupled receptor in AWC neurons as a receptor for IAA and a mediator of dietary decisions in worms. Our study identifies a receptor-ligand module underpinning foraging behavior in C. elegans.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above.

supp:PMC13108967/elife-101936-code1.zip

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Languages: MATLAB (1)
Size: 1 file, 1 script
Software Heritage: not checked
Found in: the supplementary material
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Image Processing Toolbox (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)
1 file

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 1 script, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data availability

Source data has been provided.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 30 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 6 authors, 1 keyword, 10 MeSH terms, 3 funders, 98 references.

Cite

This paper

Siddiqui, R., Mehta, N., Ranjith, G., Félix, M.-A., Chen, C., & Singh, V. (2026). The olfactory receptor SNIF-1 mediates foraging for leucine-enriched diets in <i>C. elegans</i>. eLife, 13, RP101936. https://doi.org/10.7554/elife.101936

BibTeX

@article{siddiqui2026olfactory,
author = {Siddiqui, Ritika and Mehta, Nikita and Ranjith, Gopika and Félix, Marie-Anne and Chen, Changchun and Singh, Varsha},
title = {{The olfactory receptor SNIF-1 mediates foraging for leucine-enriched diets in \<i\>C. elegans\</i\>}},
journal = {eLife},
year = {2026},
month = apr,
volume = {13},
pages = {RP101936},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/elife.101936},
url = {https://doi.org/10.7554/elife.101936},
pmid = {42029136},
pmcid = {PMC13108967}
}

RIS

TY - JOUR
AU - Siddiqui, Ritika
AU - Mehta, Nikita
AU - Ranjith, Gopika
AU - Félix, Marie-Anne
AU - Chen, Changchun
AU - Singh, Varsha
TI - The olfactory receptor SNIF-1 mediates foraging for leucine-enriched diets in <i>C. elegans</i>
T2 - eLife
J2 - Elife
PY - 2026
DA - 2026/04/24
VL - 13
SP - RP101936
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.101936
UR - https://doi.org/10.7554/elife.101936
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.101936",
"type": "article-journal",
"title": "The olfactory receptor SNIF-1 mediates foraging for leucine-enriched diets in <i>C. elegans</i>",
"container-title": "eLife",
"author": [
{
"family": "Siddiqui",
"given": "Ritika"
},
{
"family": "Mehta",
"given": "Nikita"
},
{
"family": "Ranjith",
"given": "Gopika"
},
{
"family": "Félix",
"given": "Marie-Anne"
},
{
"family": "Chen",
"given": "Changchun"
},
{
"family": "Singh",
"given": "Varsha"
}
],
"container-title-short": "Elife",
"volume": "13",
"page": "RP101936",
"DOI": "10.7554/elife.101936",
"PMID": "42029136",
"PMCID": "PMC13108967",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.101936",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
24
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1126/sciadv.ade1249 [code]
Functional imaging and quantification of multineuronal olfactory responses in <i>C. elegans</i>.
Journal: Science advances
In common: Image Processing Toolbox, C. elegans, cellular / molecular, 7 references
[2] doi:10.1371/journal.pbio.3001677 [code]
Context-dependent reversal of odorant preference is driven by inversion of the response in a single sensory neuron type.
Journal: PLoS biology
In common: C. elegans, cellular / molecular, 7 references
[3] doi:10.1371/journal.pgen.1010029
Redundant neural circuits regulate olfactory integration.
Journal: PLoS genetics
In common: C. elegans, cellular / molecular, 7 references
[4] doi:10.7554/elife.103796 [code]
Evolution of lateralized gustation in nematodes.
Journal: eLife
In common: C. elegans, cellular / molecular, 7 references
[5] doi:10.7554/elife.79557 [code]
Diverse states and stimuli tune olfactory receptor expression levels to modulate food-seeking behavior.
Journal: eLife
In common: C. elegans, cellular / molecular, 6 references
[6] doi:10.7554/elife.88657 [code]
Sensory neurons couple arousal and foraging decisions in &lt;i&gt;Caenorhabditis elegans&lt;/i&gt;.
Journal: eLife
In common: Image Processing Toolbox, C. elegans, cellular / molecular, 5 references
[7] doi:10.7554/elife.92964 [code]
Avoidance of hydrogen sulfide is modulated by external and internal states in &lt;i&gt;Caenorhabditis elegans&lt;/i&gt;.
Journal: eLife
In common: Image Processing Toolbox, C. elegans, cellular / molecular, 1 reference, author Changchun Chen
[8] doi:10.1371/journal.pbio.3001684 [code]
ROS and cGMP signaling modulate persistent escape from hypoxia in Caenorhabditis elegans.
Journal: PLoS biology
In common: Image Processing Toolbox, C. elegans, cellular / molecular, 1 reference, author Changchun Chen
[9] doi:10.15252/msb.202110514 [code]
A negative feedback loop in the GPCR pathway underlies efficient coding of external stimuli.
Journal: Molecular systems biology
In common: C. elegans, cellular / molecular, 5 references
[10] doi:10.1371/journal.pbio.3003005 [code]
Navigation strategies in Caenorhabditis elegans are differentially altered by learning.
Journal: PLoS biology
In common: Image Processing Toolbox, C. elegans, 4 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.7554/elife.101936.svg)](https://openscicode.org/badge/doi/10.7554/elife.101936)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.7554/elife.101936.svg
   :target: https://openscicode.org/badge/doi/10.7554/elife.101936
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.7554/elife.101936"><img src="https://openscicode.org/badge/doi/10.7554/elife.101936.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.