OSCR

Social familiarity strengthens neural and vocal responses to conspecific calls in zebra finches.

Code ↔ Paper

7 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 7 matches · 5 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Materials and methods › Classification analysis ↔ famtools/fam_analysis/classification_accuracy_train_test_split.py, the whole file · a weak match · score 0.65 · min max, classifier accuracies, stratification, split, training, fit
  2. [2] § Materials and methods › Classification analysis ↔ famtools/fam_analysis/classification_accuracy.py, the whole file · a weak match · score 0.63 · min max, classifier accuracies, stratification, fit, split, training
  3. [3] § Results › Specificity of vocal replies ↔ famtools/fam_analysis/classification_accuracy.py, the whole file · a weak match · score 0.59 · random forest, classification accuracy, Confusion matrix, setup, error, probabilities
  4. [4] § Results › Specificity of vocal replies ↔ famtools/fam_analysis/classification_accuracy_train_test_split.py, the whole file · a weak match · score 0.56 · random forest, classification accuracy, Confusion matrix, error, probabilities, max
  5. [5] § Materials and methods › Data analysis › Electrophysiological data analysis. ↔ famtools/fam_analysis/permutationt_euc_dist.py, the whole file · a weak match · score 0.56 · Euclidean Distance, shuffled distribution, PCA, trajectories, baseline
  6. [6] § Results › Neural activity in vocal premotor nucleus HVC is differentially modulated by caller familiarity ↔ famtools/fam_plot/lines_plot_zscores_sig.py, lines 171–254 · score 0.51 · confidence interval, standard error, PSTH, histogram, Firing rate, score
  7. [7] § Results › Neural activity in vocal premotor nucleus HVC is differentially modulated by caller familiarity ↔ famtools/fam_plot/lines_plot_zscores_sig.py, lines 171–254 · score 0.51 · confidence interval, standard error, PSTH, histogram, Firing rate, score

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 92 lines · 3.9 KB · no license · 2 matches

  1. def classification_accuracy_train_test_split(csf_df, rtimes=1000, type='rforest', csf_keys=['max_resp', 'resp_dur', 'precision_score'], input_labels=None, pred='test', test_size=0.1, normalize=False):
  2. if isinstance(csf_df, pd.DataFrame):
  3. # Drop rows with nan values, and print how many are there
  4. if csf_df.isna().any().any():
  5. print('Nan values found, corresponding rows were eliminated. Nan Counts:')
  6. print(csf_df.isna().sum())
  7. csf_df = csf_df.dropna()
  8. # Define labels
  9. if input_labels is None:
  10. labels = csf_df['name']
  11. label_encoder = LabelEncoder()
  12. input_labels = label_encoder.fit_transform(labels)
  13. else:
  14. labels = input_labels
  15. # Define features
  16. input_features = csf_df[csf_keys]
  17. else:
  18. input_features = csf_df
  19. # Set up classifier dictionary
  20. classifiers = {'rforest': RandomForestClassifier(random_state=42),
  21. 'sv': SVC(C=1, probability=True, random_state=42),
  22. 'logr': LogisticRegression(solver='lbfgs', max_iter=1000, random_state=42),
  23. 'knn': KNeighborsClassifier(n_neighbors=6)}
  24. classifier = classifiers.get(type)
  25. if classifier is None:
  26. raise ValueError("Invalid model_type specified. Choose from 'rforest', 'sv', 'logr', 'knn'.")
  27. accuracy_scores = []
  28. auc_scores = []
  29. recall_scores = []
  30. specificity_scores = []
  31. conf_matrix_sum = np.zeros((2, 2))
  32. for run in range(rtimes):
  33. inner_seed = np.random.randint(0, 1_000_000)
  34. # Reinitialize the classifier with a new random state for each run
  35. classifier = classifiers[type]
  36. classifier.random_state = inner_seed
  37. # Split data into train and test sets
  38. ft_train, ft_test, lb_train, lb_test = train_test_split(
  39. input_features, input_labels, test_size=test_size, random_state=inner_seed, stratify=input_labels)
  40. if normalize: # Works for df
  41. # Normalize datasets
  42. #scaler = MinMaxScaler()
  43. scaler = StandardScaler()
  44. scaled_train = scaler.fit_transform(ft_train)
  45. scaled_test = scaler.transform(ft_test)
  46. #ft_train = ft_train.apply(lambda x: zscore(x))
  47. #ft_test = ft_test.apply(lambda x: zscore(x))
  48. else: # for pcs
  49. scaled_train = ft_train
  50. scaled_test = ft_test
  51. # Train and predict
  52. classifier.fit(scaled_train, lb_train)
  53. if pred == 'test':
  54. predictions = classifier.predict(scaled_test)
  55. accuracy = accuracy_score(lb_test, predictions)
  56. curr_conf_matrix = confusion_matrix(lb_test, predictions)
  57. # Recall and Specificity
  58. tn, fp, fn, tp = confusion_matrix(lb_test, predictions).ravel()
  59. recall = recall_score(lb_test, predictions, pos_label=1)
  60. specificity = tn / (tn + fp)
  61. elif pred == 'train':
  62. predictions = classifier.predict(scaled_train)
  63. accuracy = accuracy_score(lb_train, predictions)
  64. curr_conf_matrix = confusion_matrix(lb_train, predictions)
  65. accuracy_scores.append(accuracy)
  66. recall_scores.append(recall)
  67. specificity_scores.append(specificity)
  68. conf_matrix_sum += curr_conf_matrix
  69. # Calculate ROC curve and AUC
  70. predictions_proba = classifier.predict_proba(scaled_test)[:, 1] # Probability of the positive class
  71. fpr, tpr, _ = roc_curve(lb_test, predictions_proba) # True labels vs predicted probabilities
  72. auc_scores = auc(fpr, tpr) # Calculate AUC
  73. mean_conf_matrix = conf_matrix_sum / conf_matrix_sum.sum(axis=1, keepdims=True) * 100
  74. mean_accuracy = np.mean(accuracy_scores)
  75. return accuracy_scores, mean_conf_matrix, auc_scores, recall_scores, specificity_scores

classification_accuracy_train_test_split.py at commit 302813b, no license · at the source

Overview

Authors: Carlos M. Gomez-Guzman1, Daniela Vallentin1, Jonathan I. Benichov1
  1. Neural Circuits for Vocal Communication Research Group, Max Planck Institute for Biological Intelligence, Seewiesen, Germany
Journal: PLoS computational biology, volume 22, issue 3, article e1014024
Dates: received 15 April 2025; accepted 15 February 2026; published online 11 March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1371/journal.pcbi.1014024 · PMID 41811819 · PMCID PMC12978450 · OpenAlex W7135020610
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: other (organism)
Methods: Spectral & time-frequency, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, Connectivity, Single-unit activity, calcium imaging
MeSH: Finches*, Recognition, Psychology*, Social Behavior*, Vocalization, Animal*, Animals, Auditory Perception, Computational Biology, Interneurons, Male, Neurons, Prosencephalon (* major topic)
Journal subjects: Biology and Life Sciences, Cell Biology, Cellular Types, Animal Cells, Neurons, Neuroscience, Cellular Neuroscience, Interneurons, Organisms, Eukaryota, Animals, Vertebrates, Amniotes, Birds, Zoology, Psychology, Behavior, Animal Behavior, Animal Communication, Bird Song, Social Sciences, Ornithology, Animal Sociality, Research and Analysis Methods, Animal Studies, Experimental Organism Systems, Animal Models, Zebra Finch, Physiology, Electrophysiology, Membrane Potential, Action Potentials, Neurophysiology
Topic: Animal Vocal Communication and Behavior (Developmental Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Citations: not cited yet (Europe PMC); 63 references in the paper

Abstract

Across animals, dyadic vocal interactions often occur within complex acoustic environments containing numerous signalers. The influence of socially relevant acoustic signals on the neural circuits controlling interactive vocal behavior remains poorly understood. We examined this issue in zebra finches, highly social songbirds that maintain nearly continuous vocal contact through the exchange of short innate calls. We developed a behavioral paradigm that elicits differential responses to familiar and unfamiliar vocal partners, enabling the prediction of social context based on individual birds’ response patterns. We then used high-density Neuropixels probes to record neural activity within a vocal premotor nucleus in the songbird forebrain, while birds listened to familiar and unfamiliar contact calls. We found that the activity of putative projection neurons and interneurons in this vocal premotor nucleus was modulated by the familiarity of heard calls, with interneurons exhibiting stronger responses to familiar calls. Furthermore, we found that measures of vocal responsiveness correlated with neural response parameters during listening. Specifically, we observed that increased vocal response rates, rapidity, and temporal consistency for familiar call playbacks were correlated with elevated mean and peak firing rates, as well as prolonged activity, in HVC interneurons. These results demonstrate how socially salient auditory information can affect a forebrain premotor circuit to maintain the specificity of vocal interactions within complex and dynamic social environments.

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

Repository

Its files are read in the Code ↔ Paper reader above, with 7 matches between paragraphs and lines of code.

vallentinlab/SocialContext_calls_HVC

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 302813b411c1b21c70683baf10226caf873730c0, 11 September 2025
Languages: Python (68), Jupyter (4)
Size: 75 files, 72 scripts
Software Heritage: not archived
Found in: “Data Availability”
Holds: README, 4 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (5 files), pandas (5 files), SciPy (5 files), Matplotlib (4 files), seaborn (4 files)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
73 files

The paper's code and data availability statement is in the Data section.

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;
  • 72 scripts, each with its path and the digest of its content;
  • 7 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • 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

Data are available here: https://github.com/vallentinlab/SocialContext_calls_HVC.

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, issue, pages, dates, 3 authors, 11 MeSH terms, 2 funders, 61 references.

Cite

This paper

Gomez-Guzman, C. M., Vallentin, D., & Benichov, J. I. (2026). Social familiarity strengthens neural and vocal responses to conspecific calls in zebra finches. PLoS computational biology, 22(3), e1014024. https://doi.org/10.1371/journal.pcbi.1014024

BibTeX

@article{gomezguzman2026social,
author = {Gomez-Guzman, Carlos M. and Vallentin, Daniela and Benichov, Jonathan I.},
title = {{Social familiarity strengthens neural and vocal responses to conspecific calls in zebra finches}},
journal = {PLoS computational biology},
year = {2026},
month = mar,
volume = {22},
number = {3},
pages = {e1014024},
publisher = {PLOS},
issn = {1553-734X},
doi = {10.1371/journal.pcbi.1014024},
url = {https://doi.org/10.1371/journal.pcbi.1014024},
pmid = {41811819},
pmcid = {PMC12978450}
}

RIS

TY - JOUR
AU - Gomez-Guzman, Carlos M.
AU - Vallentin, Daniela
AU - Benichov, Jonathan I.
TI - Social familiarity strengthens neural and vocal responses to conspecific calls in zebra finches
T2 - PLoS computational biology
J2 - PLoS Comput Biol
PY - 2026
DA - 2026/03/11
VL - 22
IS - 3
SP - e1014024
SN - 1553-734X
PB - PLOS
DO - 10.1371/journal.pcbi.1014024
UR - https://doi.org/10.1371/journal.pcbi.1014024
LA - en
ER -

CSL-JSON

{
"id": "10.1371/journal.pcbi.1014024",
"type": "article-journal",
"title": "Social familiarity strengthens neural and vocal responses to conspecific calls in zebra finches",
"container-title": "PLoS computational biology",
"author": [
{
"family": "Gomez-Guzman",
"given": "Carlos M."
},
{
"family": "Vallentin",
"given": "Daniela"
},
{
"family": "Benichov",
"given": "Jonathan I."
}
],
"container-title-short": "PLoS Comput Biol",
"volume": "22",
"issue": "3",
"page": "e1014024",
"DOI": "10.1371/journal.pcbi.1014024",
"PMID": "41811819",
"PMCID": "PMC12978450",
"ISSN": "1553-734X",
"publisher": "PLOS",
"URL": "https://doi.org/10.1371/journal.pcbi.1014024",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
11
]
]
}
}

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.7554/elife.99611 [code]
Intrinsic properties link a network model to zebra finch song.
Journal: eLife
In common: other, 6 references
[2] doi:10.1016/j.patter.2026.101590 [code]
Density-based longitudinal neuron tracking in high-density electrophysiological recordings.
Journal: Patterns (New York, N.Y.)
In common: seaborn, pandas, SciPy, 2 other tools, 4 references
[3] doi:10.64898/2026.03.06.710130 [code]
A flexible quality metric for electrophysiological recordings across brain regions and species
Journal: bioRxiv (preprint)
In common: pandas, SciPy, Matplotlib, 1 other tool, 4 references
[4] doi:10.1038/s41597-026-07955-0 [code]
Human neuron activity during an 83-minute movie from 2,286 neurons and 29 patients.
Journal: Scientific data
In common: seaborn, pandas, SciPy, 2 other tools, 3 references
[5] doi:10.1038/s41586-026-10458-y [code]
Specific expansion of motor cortical projections in a singing mouse.
Journal: Nature
In common: seaborn, pandas, SciPy, 2 other tools, 2 references
[6] doi:10.7554/elife.110588 [code]
Opening the black box toward a modular approach to spike sorting.
Journal: eLife
In common: seaborn, pandas, SciPy, 2 other tools, 3 references
[7] doi:10.1016/j.crmeth.2026.101421 [code]
EthoPy provides an accessible platform for reproducible behavioral neuroscience.
Journal: Cell reports methods
In common: seaborn, pandas, SciPy, 2 other tools, 3 references
[8] doi:10.1016/j.isci.2026.116125 [code]
Post-synaptic facilitation and network dynamics underlying stimulus-specific combination sensitivity.
Journal: iScience
In common: 4 references
[9] doi:10.1038/s41586-026-10501-y [code]
Long-term editing of brain circuits using an engineered electrical synapse.
Journal: Nature
In common: seaborn, pandas, SciPy, 2 other tools, 2 references
[10] doi:10.1038/s41592-026-03076-z [code]
Neuropixels Opto: combining high-resolution electrophysiology and optogenetics.
Journal: Nature methods
In common: pandas, SciPy, Matplotlib, 1 other tool, 3 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.

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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

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