Social familiarity strengthens neural and vocal responses to conspecific calls in zebra finches.
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] § 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] § 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] § 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] § 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] § 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] § 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] § 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
- 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):
- if isinstance(csf_df, pd.DataFrame):
- # Drop rows with nan values, and print how many are there
- if csf_df.isna().any().any():
- print('Nan values found, corresponding rows were eliminated. Nan Counts:')
- print(csf_df.isna().sum())
- csf_df = csf_df.dropna()
- # Define labels
- if input_labels is None:
- labels = csf_df['name']
- label_encoder = LabelEncoder()
- input_labels = label_encoder.fit_transform(labels)
- else:
- labels = input_labels
- # Define features
- input_features = csf_df[csf_keys]
- else:
- input_features = csf_df
- # Set up classifier dictionary
- classifiers = {'rforest': RandomForestClassifier(random_state=42),
- 'sv': SVC(C=1, probability=True, random_state=42),
- 'logr': LogisticRegression(solver='lbfgs', max_iter=1000, random_state=42),
- 'knn': KNeighborsClassifier(n_neighbors=6)}
- classifier = classifiers.get(type)
- if classifier is None:
- raise ValueError("Invalid model_type specified. Choose from 'rforest', 'sv', 'logr', 'knn'.")
- accuracy_scores = []
- auc_scores = []
- recall_scores = []
- specificity_scores = []
- conf_matrix_sum = np.zeros((2, 2))
- for run in range(rtimes):
- inner_seed = np.random.randint(0, 1_000_000)
- # Reinitialize the classifier with a new random state for each run
- classifier = classifiers[type]
- classifier.random_state = inner_seed
- # Split data into train and test sets
- ft_train, ft_test, lb_train, lb_test = train_test_split(
- input_features, input_labels, test_size=test_size, random_state=inner_seed, stratify=input_labels)
- if normalize: # Works for df
- # Normalize datasets
- #scaler = MinMaxScaler()
- scaler = StandardScaler()
- scaled_train = scaler.fit_transform(ft_train)
- scaled_test = scaler.transform(ft_test)
- #ft_train = ft_train.apply(lambda x: zscore(x))
- #ft_test = ft_test.apply(lambda x: zscore(x))
- else: # for pcs
- scaled_train = ft_train
- scaled_test = ft_test
- # Train and predict
- classifier.fit(scaled_train, lb_train)
- if pred == 'test':
- predictions = classifier.predict(scaled_test)
- accuracy = accuracy_score(lb_test, predictions)
- curr_conf_matrix = confusion_matrix(lb_test, predictions)
- # Recall and Specificity
- tn, fp, fn, tp = confusion_matrix(lb_test, predictions).ravel()
- recall = recall_score(lb_test, predictions, pos_label=1)
- specificity = tn / (tn + fp)
- elif pred == 'train':
- predictions = classifier.predict(scaled_train)
- accuracy = accuracy_score(lb_train, predictions)
- curr_conf_matrix = confusion_matrix(lb_train, predictions)
- accuracy_scores.append(accuracy)
- recall_scores.append(recall)
- specificity_scores.append(specificity)
- conf_matrix_sum += curr_conf_matrix
- # Calculate ROC curve and AUC
- predictions_proba = classifier.predict_proba(scaled_test)[:, 1] # Probability of the positive class
- fpr, tpr, _ = roc_curve(lb_test, predictions_proba) # True labels vs predicted probabilities
- auc_scores = auc(fpr, tpr) # Calculate AUC
- mean_conf_matrix = conf_matrix_sum / conf_matrix_sum.sum(axis=1, keepdims=True) * 100
- mean_accuracy = np.mean(accuracy_scores)
- 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
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
302813b411c1b21c70683baf10226caf873730c0, 11 September 2025Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
73 files
- Manuscript 2024_Behavior_Fig1.ipynb
, Jupyter, 301 lines - Manuscript 2024_Brain_Fig2.ipynb, Jupyter, 745 lines
- Manuscript 2024_Brain_Fig3.ipynb, Jupyter, 737 lines
- Manuscript 2024_Brain_Fig4.ipynb, Jupyter, 402 lines
- famtools/
fam_analysis/ , Python, 1 line__init__.py - famtools/
fam_analysis/ , Python, 4 linesassign_type_col.py - famtools/
fam_analysis/ , Python, 91 linesbeh_neural_correlation.p y - famtools/
fam_analysis/ , Python, 81 lines, 2 matchesclassification_accuracy. py - famtools/
fam_analysis/ , Python, 92 lines, 2 matchesclassification_accuracy_ train_test_split.py - famtools/
fam_analysis/ , Python, 59 linescompute_precision_score. py - famtools/
fam_analysis/ , Python, 55 linesfeuc_dist.py - famtools/
fam_analysis/ , Python, 4 linesgaussian_kernel.py - famtools/
fam_analysis/ , Python, 17 linesget_current_spike_time_t rials.py - famtools/
fam_analysis/ , Python, 62 linesget_data_corr_matrix.py - famtools/
fam_analysis/ , Python, 22 linesget_delta_fr.py - famtools/
fam_analysis/ , Python, 38 linesget_mn_delta_fr.py - famtools/
fam_analysis/ , Python, 40 linesget_resp_dur_and_max.py - famtools/
fam_analysis/ , Python, 26 linesget_significant_clusters .py - famtools/
fam_analysis/ , Python, 90 lineslmx_model.py - famtools/
fam_analysis/ , Python, 8 linesnormalize_values.py - famtools/
fam_analysis/ , Python, 5 linesnormalize_values_0to1.py - famtools/
fam_analysis/ , Python, 59 linesp_val_sh.py - famtools/
fam_analysis/ , Python, 60 linespca_get_trajs.py - famtools/
fam_analysis/ , Python, 11 linespear_corr.py - famtools/
fam_analysis/ , Python, 36 lines, 1 matchpermutationt_euc_dist.py - famtools/
fam_analysis/ , Python, 18 linesrescale_vector_minus1to1 .py - famtools/
fam_analysis/ , Python, 13 linesscale_minmax.py - famtools/
fam_analysis/ , Python, 36 linesshuffle_distribution.py - famtools/
fam_analysis/ , Python, 11 linessmooth_firing_rates.py - famtools/
fam_analysis/ , Python, 37 linessta_event_calculation.py - famtools/
fam_analysis/ , Python, 7 linestest_normal_dist.py - famtools/
fam_analysis/ , Python, 10 lineswilcoxon_fam_unfam.py - famtools/
fam_parse/ , Python, 1 line__init__.py - famtools/
fam_parse/ , Python, 8 linesadd_hvc_channel_labels_t o_birds_df.py - famtools/
fam_parse/ , Python, 15 linesadd_neuron_types_and_hvc _to_birds_dict.py - famtools/
fam_parse/ , Python, 43 linesadd_plb_type_plb2exclude _2_dict.py - famtools/
fam_parse/ , Python, 7 linesconcatenate_columns_df.p y - famtools/
fam_parse/ , Python, 19 linescount_occurrences.py - famtools/
fam_parse/ , Python, 54 linescreate_fam_unfam_dict.py - famtools/
fam_parse/ , Python, 18 linescut_time_bins_df.py - famtools/
fam_parse/ , Python, 24 linescut_time_bins_neurons.py - famtools/
fam_parse/ , Python, 9 linesevent_matrix_from_event_ times.py - famtools/
fam_parse/ , Python, 43 linesfind_item_with_string.py - famtools/
fam_parse/ , Python, 8 linesflatten_dict.py - famtools/
fam_parse/ , Python, 6 linesgenerate_unique_key.py - famtools/
fam_parse/ , Python, 36 linesget_csf_data.py - famtools/
fam_parse/ , Python, 47 linesget_plb_orders.py - famtools/
fam_parse/ , Python, 32 linesget_sort_indices_for_neu rons.py - famtools/
fam_parse/ , Python, 24 linesload_mat_file_without_me tadata.py - famtools/
fam_parse/ , Python, 9 linesload_txt_file_to_dict.py - famtools/
fam_parse/ , Python, 127 linesparse_dict2df.py - famtools/
fam_parse/ , Python, 6 linesremove_zero_columns.py - famtools/
fam_parse/ , Python, 10 linesreshape_birds_dict_data. py - famtools/
fam_parse/ , Python, 7 linesreshape_tB.py - famtools/
fam_parse/ , Python, 15 linessave_data_mxl_for_matlab .py - famtools/
fam_plot/ , Python, 1 line__init__.py - famtools/
fam_plot/ , Python, 30 linesboxplot_fam_unfam.py - famtools/
fam_plot/ , Python, 43 linesbxplot_csf_h.py - famtools/
fam_plot/ , Python, 92 linescall_pie_neuron_proporti ons.py - famtools/
fam_plot/ , Python, 40 linescall_plotting_df.py - famtools/
fam_plot/ , Python, 254 lines, 2 matcheslines_plot_zscores_sig.p y - famtools/
fam_plot/ , Python, 14 linespie_distn.py - famtools/
fam_plot/ , Python, 23 linesplot_confusion_matrix.py - famtools/
fam_plot/ , Python, 26 linesplot_corr_matrix.py - famtools/
fam_plot/ , Python, 17 linesplot_distribution.py - famtools/
fam_plot/ , Python, 116 linesplot_firingrate_heatmap. py - famtools/
fam_plot/ , Python, 154 linesplot_response_trials_sta cked.py - famtools/
fam_plot/ , Python, 32 linesplot_scatter_waveform_me trics.py - famtools/
fam_plot/ , Python, 63 linesplot_trajs.py - famtools/
fam_plot/ , Python, 35 linesplot_waveform_metric.py - famtools/
fam_plot/ , Python, 21 linesresize_matrices_in_list_ to_min_second_dim_bins.p y - famtools/
fam_plot/ , Python, 63 linesscatter_binary.py - README.md, Text, 3 lines
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://
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://
BibTeX
@article{gomezguzman2026
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/
url = {https://
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/
VL - 22
IS - 3
SP - e1014024
SN - 1553-734X
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"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":
"volume": "22",
"issue": "3",
"page": "e1014024",
"DOI": "10.1371/
"PMID": "41811819",
"PMCID": "PMC12978450",
"ISSN": "1553-734X",
"publisher": "PLOS",
"URL": "https://
"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: eLifeIn 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 speciesJournal: 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 dataIn 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: NatureIn 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: eLifeIn 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 methodsIn 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: iScienceIn common: 4 references
- [9] doi:10.1038/s41586-026-10501-y [code]
- Long-term editing of brain circuits using an engineered electrical synapse.Journal: NatureIn 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 methodsIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 72 scripts, and 7 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:c3e584fac9b71bdf…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
