OSCR

Regulation of the decision threshold by the locus coeruleus.

Code ↔ Paper

2 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 2 matches
  1. [1] § Methods › Drift diffusion model ↔ R/pulse_diffusion_model.R, lines 539–600 · score 0.71 · Wiener diffusion, diffusion model, lower boundary, upper boundary, drift rate, variable
  2. [2] § Methods › Drift diffusion model ↔ R/drift_diffusion_model.R, lines 378–448 · score 0.68 · drift diffusion model, Wiener diffusion, lower boundary, drift rate, noise, DDM

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

R · 600 lines · 22 KB · GPL-3.0 · 1 match

  1. #####################################
  2. # Helper functions for pulse model object
  3. pulse_fp_obj <- function(pars,
  4. dat=NULL,
  5. transform_pars=F,
  6. check_constraints=T,
  7. debug=F,
  8. ...){
  9. ### check constraints
  10. checks = private$objective_checks(pars,
  11. transform_pars,
  12. check_constraints,
  13. reverse_v=F,
  14. debug)
  15. pars = checks[[1]]
  16. pass = checks[[2]]
  17. if (!is.na(pass) & !pass) {
  18. nll = 1e10
  19. if(debug) cat("nll =", nll, "\n")
  20. return(nll)
  21. }
  22. if(is.null(dat)) {
  23. dat = self$data
  24. }
  25. ### loop through conditions to get likelihood
  26. nll = 0
  27. if (private$par_matrix[, .N] < dat[, .N]) {
  28. for(i in 1:private$par_matrix[, .N]){
  29. sub_dat = copy(dat)
  30. for(j in 1:length(private$sim_cond)){
  31. sub_dat = sub_dat[get(private$sim_cond[j]) == private$par_matrix[i, get(private$sim_cond[j])]]
  32. }
  33. sub_nll = do.call(pulse_nll, c(list(choice = sub_dat[, response],
  34. rt = sub_dat[, rt],
  35. stimuli = private$stim_list[[i]]),
  36. as.list(private$par_matrix[i, -(1:length(private$sim_cond))]),
  37. private$fixed,
  38. v_scale=private$v_scale,
  39. bounds=private$bounds,
  40. urgency=private$urgency,
  41. ...))
  42. nll = nll + sub_nll
  43. }
  44. } else {
  45. nll = do.call(pulse_nll, c(list(choice=dat[,response]),
  46. list(rt=dat[, rt]),
  47. stimuli=list(private$stim_list[[1]]),
  48. as.list(private$par_matrix),
  49. private$fixed,
  50. v_scale=private$v_scale,
  51. bounds=private$bounds,
  52. urgency=private$urgency,
  53. ...))
  54. }
  55. if (is.nan(nll)) browser()
  56. if(debug) cat("nll =", round(nll, 3), "\n")
  57. nll
  58. }
  59. #' @noRd
  60. #' @importFrom foreach %do% %dopar%
  61. pulse_x2_obj = function(pars,
  62. data_q=NULL,
  63. n_sim=1,
  64. min_p=1e-10,
  65. transform_pars=F,
  66. check_constraints=T,
  67. debug=F,
  68. seed=-1L,
  69. ...) {
  70. if (seed > 0) {
  71. set.seed(seed)
  72. }
  73. ### check constraints
  74. checks = private$objective_checks(pars,
  75. transform_pars,
  76. check_constraints,
  77. reverse_v=F,
  78. debug)
  79. pars = checks[[1]]
  80. pass = checks[[2]]
  81. if (!is.na(pass) & !pass) {
  82. chisq = 1e10
  83. if(debug) cat(chisq, "\n")
  84. return(chisq)
  85. }
  86. if (is.null(data_q)) {
  87. data_q = copy(self$data_q)
  88. }
  89. ### loop through conditions to get chisquare
  90. pars_only_mat = copy(private$par_matrix)
  91. pars_only_mat = pars_only_mat[, -(1:(length(private$sim_cond)))]
  92. rt_q_cols = (length(data_q)-length(private$p_q)+2):length(data_q)
  93. chisq = 0
  94. for (i in 1:private$par_transform[, .N]) {
  95. # simulate trials
  96. par_list = as.list(pars_only_mat[i])
  97. this_sim = setDT(do.call(sim_pulse, c(n=n_sim,
  98. list(stimuli=private$stim_list[[i]]),
  99. par_list,
  100. private$fixed,
  101. v_scale=private$v_scale,
  102. bounds=private$bounds,
  103. urgency=private$urgency,
  104. ...))$behavior)
  105. # get rt quantile matrix
  106. sub_q = copy(data_q)
  107. for(j in 1:length(private$sim_cond)) {
  108. sub_q = sub_q[get(private$sim_cond[j]) == private$par_matrix[i, get(private$sim_cond[j])]]
  109. }
  110. rt_q_mat = as.matrix(sub_q[, rt_q_cols, .(response), with=F])
  111. n_rt = sub_q[, n_response, .(response)][, n_response]
  112. sim_rts = list(this_sim[response == 0, rt],
  113. this_sim[response == 1, rt],
  114. this_sim[is.na(response), rt])
  115. chisq = chisq + quantile_chisquare(sim_rts, rt_q_mat, private$p_q, n_rt)
  116. }
  117. if(is.na(chisq)) chisq = 1e10
  118. if(debug) cat(chisq, "\n")
  119. chisq
  120. }
  121. #' @noRd
  122. #' @importFrom foreach %do% %dopar%
  123. pulse_qmpe_obj = function(pars,
  124. data_q=NULL,
  125. n_sim=1,
  126. min_p=1e-10,
  127. transform_pars=F,
  128. check_constraints=T,
  129. debug=F,
  130. seed=-1L,
  131. ...) {
  132. if (seed > 0) {
  133. set.seed(seed)
  134. }
  135. ### check constraints
  136. checks = private$objective_checks(pars,
  137. transform_pars,
  138. check_constraints,
  139. reverse_v=F,
  140. debug)
  141. pars = checks[[1]]
  142. pass = checks[[2]]
  143. if (!is.na(pass) & !pass) {
  144. qmpe_nll = 1e10
  145. if(debug) cat(qmpe_nll, "\n")
  146. return(qmpe_nll)
  147. }
  148. if (is.null(data_q)) {
  149. data_q = copy(self$data_q)
  150. }
  151. ### loop through conditions to get chisquare
  152. pars_only_mat = copy(private$par_matrix)
  153. pars_only_mat = pars_only_mat[, -(1:(length(private$sim_cond)))]
  154. rt_q_cols = (length(data_q)-length(private$p_q)+2):length(data_q)
  155. qmpe_nll = 0
  156. for (i in 1:private$par_transform[, .N]) {
  157. # simulate trials
  158. par_list = as.list(pars_only_mat[i])
  159. this_sim = setDT(do.call(sim_pulse, c(n=n_sim,
  160. list(stimuli=private$stim_list[[i]]),
  161. par_list,
  162. private$fixed,
  163. v_scale=private$v_scale,
  164. bounds=private$bounds,
  165. urgency=private$urgency,
  166. seed=seed,
  167. ...))$behavior)
  168. # get rt quantile matrix
  169. sub_q = copy(data_q)
  170. for(j in 1:length(private$sim_cond)) {
  171. sub_q = sub_q[get(private$sim_cond[j]) == private$par_matrix[i, get(private$sim_cond[j])]]
  172. }
  173. rt_q_mat = as.matrix(sub_q[, rt_q_cols, .(response), with=F])
  174. n_rt = sub_q[, n_response, .(response)][, n_response]
  175. sim_rts = list(this_sim[response == 0, rt],
  176. this_sim[response == 1, rt],
  177. this_sim[is.na(response), rt])
  178. qmpe_nll = qmpe_nll + qmpe(sim_rts, rt_q_mat, private$p_q, n_rt, min_p=min_p)
  179. }
  180. if(is.na(qmpe_nll)) qmpe_nll = 1e10
  181. if(debug) cat(qmpe_nll, "\n")
  182. qmpe_nll
  183. }
  184. check_pdm_constraints <- function(){
  185. par_matrix_names = names(private$par_matrix)
  186. checks = sum(private$par_matrix[, (a <= 0)]) # a
  187. checks = checks + sum(private$par_matrix[, (t0 < 0)]) # t0
  188. if ("s" %in% par_matrix_names)
  189. checks = checks + sum(private$par_matrix[, s <= 0]) # s
  190. if ("z" %in% par_matrix_names)
  191. checks = checks + sum(private$par_matrix[, (z <= 0) | (z >= 1)]) # z
  192. else
  193. z = 0.5
  194. if ("sv" %in% par_matrix_names)
  195. checks = checks + sum(private$par_matrix[, (sv < 0)]) # sv
  196. if ("sz" %in% par_matrix_names)
  197. checks = checks + sum(private$par_matrix[, (sz < 0) | (sz >= 1)]) # sz
  198. if ("st0" %in% par_matrix_names)
  199. checks = checks + sum(private$par_matrix[, (st0 < 0) | (st0 >= 1)]) # st0
  200. if ("lambda" %in% par_matrix_names)
  201. checks = checks + sum(private$par_matrix[, (lambda < 0)]) # lambda
  202. if ("aprime" %in% par_matrix_names)
  203. checks = checks + sum(private$par_matrix[, (aprime < 0) | (aprime > 1)]) # aprime
  204. if ("kappa" %in% par_matrix_names)
  205. checks = checks + sum(private$par_matrix[, kappa < 0]) # kappa
  206. if ("tc" %in% par_matrix_names)
  207. checks = checks + sum(private$par_matrix[, tc <= 0]) # tc
  208. if ("uslope" %in% par_matrix_names)
  209. checks = checks + sum(private$par_matrix[, uslope <= 0]) # uslope
  210. if ("udelay" %in% par_matrix_names)
  211. checks = checks + sum(private$par_matrix[, udelay <= 0]) # udelay
  212. if ("umag" %in% par_matrix_names)
  213. checks = checks + sum(private$par_matrix[, umag <= 0]) # umag
  214. return(checks == 0)
  215. }
  216. #' set diffusion model objective function (for internal use)
  217. #'
  218. #' Change the objective function used to fit the diffusion model. Options include:
  219. #' \describe{
  220. #' \item{fp}{use the fast-dm method implemented in the rtdists package}
  221. #' \item{chisq}{simulate the first passage time distribution using the Euler-Maruyama method, and compare simulated and observed distrubtions using the chisquare statistic}
  222. #' }
  223. #'
  224. #' @usage model$set_objective(objective)
  225. #'
  226. #' @param objective string; the objective function to be used; either "fp", "chisq", or "qmpe"
  227. #'
  228. #' @return modifies the field \code{obj}
  229. #'
  230. set_pdm_objective <- function(objective="chisq") {
  231. if (objective == "fp") {
  232. self$obj = private$fp_obj
  233. } else if (objective == "chisq") {
  234. self$obj = private$chisq_obj
  235. } else if (objective == "qmpe") {
  236. self$obj = private$qmpe_obj
  237. } else {
  238. stop("specified objective not supported")
  239. }
  240. invisible(self)
  241. }
  242. #' predict pulse model (for internal use)
  243. #'
  244. #' Predict behavior with given pulse model parameters.
  245. #' This function is only intended for use with a diffusion model object,
  246. #' and should not be called directly outside of the diffusion model class.
  247. #'
  248. #' @usage model$predict(pars=NULL, n=10000, ...)
  249. #'
  250. #' @param pars numeric vector; vector of parameters. If NULL, uses model$solution$pars.
  251. #' @param n integer; number of decisions to simulate for each condition. If the number of conditions is equal to the length of the data, e.g. if using as_function with a continuous predictor, ignores \code{n} and simulates one decision per condition
  252. #' @param method string; "euler" for euler-maruyama simulation or "fp" for Fokker-Planck method
  253. #' @param stim_list list of arrays; 2 x timepoints x trials array of stimuli to simulate for each condition
  254. #' @param trial_code list of integer vector; trial indexes to which the new stimuli are associated with.
  255. #' @param ... additional arguments passed to method (either \code{sim_pulse} or \code{pulse_fp_fpt})
  256. #'
  257. #' @return data.table with simulation conditions, decision (upper or lower boundary) and response time
  258. #'
  259. #' @keywords internal
  260. #'
  261. predict_pulse_model = function(pars=NULL, n=1, method="euler", stim_list=NULL, trial_code=NULL, ...){
  262. if (is.null(stim_list) | (length(stim_list) != private$par_transform[, .N])) {
  263. stim_list = private$stim_list
  264. }
  265. if(is.null(pars)) {
  266. if (is.null(self$solution)) {
  267. stop("if parameters have not been fit (i.e. no model solution), must supply pars!")
  268. }
  269. pars = self$solution$pars
  270. }
  271. private$set_params(pars, reverse_v=F)
  272. ### loop through conditions
  273. d_pred = data.table()
  274. if (private$par_matrix[, .N] < self$data[, .N]) {
  275. for (i in 1:private$par_matrix[, .N]) {
  276. this_stim_trials = dim(stim_list[[i]])[3]
  277. # check stimulus lengths and trial code
  278. if (is.null(trial_code)) {
  279. if ((this_stim_trials != dim(private$stim_list[[i]])[3])) {
  280. stop(paste("new stimulus array length for condition", i, "is not equal to number of trials"))
  281. } else {
  282. this_trial_code = 1:this_stim_trials
  283. }
  284. } else {
  285. if (this_stim_trials != length(trial_code[[i]])) {
  286. stop(paste("new stimulus array length for condition", i, "is not equal to length of trial code"))
  287. } else {
  288. this_trial_code = trial_code[[i]]
  289. }
  290. }
  291. # get predicted behavior
  292. if (method == "euler") {
  293. this_par_list = as.list(private$par_matrix[i, -(1:length(private$sim_cond))])
  294. this_par_values = as.numeric(this_par_list)
  295. this_par_names = names(this_par_list)
  296. this_sim = setDT(self$simulate(n,
  297. stimuli=stim_list[[i]],
  298. this_par_values,
  299. ...)$behavior)
  300. } else {
  301. stop("method not implemented")
  302. }
  303. d_pred = rbind(d_pred,
  304. data.table(private$par_matrix[i, 1:length(private$sim_cond)],
  305. this_sim))
  306. }
  307. }
  308. d_pred
  309. }
  310. #' simulate pulse model (for internal use)
  311. #'
  312. #' simulate pulse DDM with given stimulus and model parameters..
  313. #' This function is only intended for use with a pulse model object,
  314. #' and should not be called directly outside of the pulse model class.
  315. #' Please use \code{sim_pulse} as a standalone function.
  316. #'
  317. #' @usage model$simulate(n, stimuli, par_values, par_names=NULL, ...)
  318. #'
  319. #' @param n integer; number of decisions to simulate per stimulus
  320. #' @param pars numeric vector; vector of parameters
  321. #' @param par_names character vector; vector of parameter names. If pars is not named list, must supply parameter name vector!
  322. #' @param ... additional arguments passed to \code{sim_pulse}
  323. #'
  324. #' @return data.table with simulation conditions, decision (upper or lower boundary) and response time
  325. #'
  326. #' @keywords internal
  327. #'
  328. simulate_pulse_model = function(n, stimuli, pars, ...) {
  329. if (length(pars) != length(self$par_names)) {
  330. stop("supplied parameter vector must be the same length as the number of parameters in the model")
  331. }
  332. names(pars) = self$par_names
  333. if (is.null(stimuli) | class(stimuli) != "array") stop("Must provide stimuli as a 3-d array (2 x timepoint x trials)")
  334. do.call(sim_pulse, c(n=n,
  335. list(stimuli=stimuli),
  336. as.list(pars),
  337. v_scale=private$v_scale,
  338. bounds=private$bounds,
  339. urgency=private$urgency,
  340. ...))
  341. }
  342. init_pulse_model = function(dat,
  343. model_name="pdm",
  344. stim_var=NULL,
  345. stim_sep="",
  346. stim_dur=.01,
  347. stim_interval=.1,
  348. stim_pre=0,
  349. dt=.001,
  350. include=NULL,
  351. depends_on=NULL,
  352. as_function=NULL,
  353. start_values=NULL,
  354. fixed_pars=NULL,
  355. extra_condition=NULL,
  356. v_scale=1,
  357. bounds=NULL,
  358. urgency=NULL,
  359. objective="chisq",
  360. max_time=10,
  361. verbose=TRUE,
  362. ...){
  363. if (is.null(stim_var)) {
  364. stop("must provide \"stim_var\" argument, referencing the data column that contains the stimulus train.")
  365. }
  366. # set default parameter values
  367. all_pars = c("v", "a", "t0",
  368. "s", "z", "dc",
  369. "sv", "sz", "st0",
  370. "lambda", "aprime", "kappa", "tc",
  371. "uslope", "udelay", "umag")
  372. values = c(1, 2, .3,
  373. 1, .5, 0,
  374. 0, 0, 0,
  375. 0, 0.5, 1, .25,
  376. 0, 0, 0)
  377. lower = c(-100, .1, 1e-10,
  378. 1e-10, .05, -100,
  379. 0, 0, 0,
  380. 0, 0, 0, 1e-10,
  381. 0, 0, 0)
  382. upper = c(100, 25, 5,
  383. 100, .95, 100,
  384. 1, 1, 1,
  385. 100, 1, 5, 5,
  386. 10, 10, 10)
  387. default_pars = c("v", "a", "t0")
  388. start_if_include = c(sv=0.1,
  389. sz=0.1,
  390. st0=0.1,
  391. lambda=1,
  392. uslope=1,
  393. umag=1,
  394. udelay=1)
  395. super$initialize(dat,
  396. model_name,
  397. par_names=all_pars,
  398. par_values=values,
  399. par_lower=lower,
  400. par_upper=upper,
  401. default_pars=default_pars,
  402. start_if_include=start_if_include,
  403. include=include,
  404. depends_on=depends_on,
  405. as_function=as_function,
  406. start_values=start_values,
  407. fixed_pars=fixed_pars,
  408. max_time=max_time,
  409. extra_condition=extra_condition,
  410. bounds=bounds,
  411. urgency=urgency,
  412. verbose=verbose,
  413. ...)
  414. private$v_scale = v_scale
  415. self$set_objective(objective)
  416. private$stim_list = list()
  417. for(i in 1:private$par_transform[, .N]) {
  418. dsub = copy(self$data)
  419. for (c in private$sim_cond) {
  420. dsub = dsub[get(c) == private$par_transform[i, get(c)]]
  421. }
  422. up_stims = dsub[, get(stim_var[1])]
  423. if (length(stim_var) > 1) {
  424. down_stims = dsub[, get(stim_var[2])]
  425. } else {
  426. down_stims = NULL
  427. }
  428. private$stim_list[[i]] = pulse_stimulus(up_stims,
  429. down_stims,
  430. pattern=stim_sep,
  431. dur=stim_dur,
  432. isi=stim_interval,
  433. pre_stim=stim_pre,
  434. dt=dt,
  435. as_array=T)
  436. }
  437. }
  438. #' Pulse diffusion model R6 Class
  439. #'
  440. #' @description
  441. #'
  442. #' R6 Class that defines a pulse diffusion model (Brunton et al., 2012, Science) to be applied to a set of behavioral data.
  443. #'
  444. #' @details
  445. #'
  446. #' For details regarding other methods, see:
  447. #' \itemize{
  448. #' \item{pm$set_objective: \code{\link{set_pdm_objective}}}
  449. #' \item{pm$fit: \code{\link{fit_diffusion_model}}}
  450. #' \item{pm$predict: \code{\link{predict_pulse_model}}}
  451. #' \item{pm$simulate: \code{\link{simulate_pulse_model}}}
  452. #' }
  453. #'
  454. #' @usage pm <- pulse_model$new(dat, stim_var, stim_sep="", stim_dur=.01, stim_interval=.1, model_name="pdm", include=NULL, depends_on=NULL, as_function=NULL, start_values=NULL, fixed_pars=NULL, extra_condition=NULL, bounds=0L, objective="fp")
  455. #' @usage pm$set_objective(objective="fp")
  456. #' @usage pm$fit(use_bounds=TRUE, transform_pars=FALSE, ...)
  457. #' @usage pm$predict(pars=NULL, n=10000, ...)
  458. #' @usage pm$simulate(n, stimuli, par_values, par_names=NULL, ...)
  459. #'
  460. #' @param dat data table; contains at least 2 columns: rt - response time for trial, response - upper or lower boundary (1 or 0)
  461. #' @param stim_var string; name of stimulus column in dat. If two names, first is upper boundary evidence and second is lower boundary evidence. If one variable name, assumes binary evidence with 1=evidence to upper boundary and 0=evidence to lower boundary
  462. #' @param stim_sep string; pattern separating timepoint by timepoint evidence within evidence string
  463. #' @param stim_dur numeric; stimulus pulse duration (in seconds)
  464. #' @param stim_interval numeric; inter-stimulus interval (in seconds)
  465. #' @param stim_pre numeric; time before stimulus pulse within stimulus bin
  466. #' @param dt numeric; time step to simulate/solve for first passage times
  467. #' @param model_name string; name to identify model, default = "ddm"
  468. #' @param include character; vector of parameters to include in model. drift rate v, boundary a, and non-decision time t0 are included by default always. Can specify ddm parameters starting point z, drift rate variability sv, non decision time variability st0, starting point variability sz, and wiener diffusion noise s. Also can include collapsing bound parameters: degree of collapse aprime (weibull only), slope of collapse kappa, time constant of collapse tc.
  469. #' @param depends_on named character; if a parameter value depends on a task condition, for example drift rate depends on task difficulty, specify here: c("v" = "task difficulty"). Can specify multiple dependent parameters as a vector
  470. #' @param as_function list; list specifying parameters whose value is a function of other parameters
  471. #' @param start_values named numeric; to change default starting parameter values, specify as named vector. E.g. c("v"=2, "a"=3) to set drift rate to 2 and boundary to 3
  472. #' @param fixed_pars named numeric; to fix a parameter at a specified value, use a named vector as with start_values
  473. #' @param extra_condition character; vector of task condition names. Will calculate first passage times for each condition. Recommended only when comparing a model without depends_on with a model that contains a depends_on parameter.
  474. #' @param bounds string: either "fixed" for fixed bounds, or "weibull" or "hyperbolic" for collapsing bounds according to weibull or hyperbolic ratio functions
  475. #' @param objective character; "fp" for fokker-planck simulation, "chisq" for euler simluaton with chisq metric, "qmpe" for euler simultion with qmpe metric
  476. #' @param verbose logical: If TRUE, print messages related to model initation. Default = TRUE
  477. #'
  478. #' @return definition of pulse diffusion model object
  479. #'
  480. #' @export
  481. pulse_model = R6::R6Class("pulse_model",
  482. inherit=base_diffusion_model,
  483. public=list(
  484. initialize=init_pulse_model,
  485. set_objective=set_pdm_objective,
  486. predict=predict_pulse_model,
  487. simulate=simulate_pulse_model,
  488. get_stimulus=function() return(private$stim_list)
  489. ), private=list(
  490. dt=NULL,
  491. as_function=NULL,
  492. stim_list=NULL,
  493. v_scale=NULL,
  494. check_par_constraints=check_pdm_constraints,
  495. fp_obj = pulse_fp_obj,
  496. chisq_obj = pulse_x2_obj,
  497. qmpe_obj = pulse_qmpe_obj
  498. ))

pulse_diffusion_model.R at commit 57e9c3b, under GPL-3.0 · at the source

Overview

Authors: Hongjie Xia1, Maxime Maheu2,3, Gary A. Kane4, Benjamin B. Scott3,4
  1. Department of Biology, Boston University,Boston, MA USA
  2. Département d’Études Cognitives, École Normale Supérieure, Université PSL,Paris, France
  3. Department of Psychological and Brain Sciences, Boston University,Boston, MA USA
  4. Center for Systems Neuroscience, Boston University,Boston, MA USA
Institutions: Boston University (United States); Université Paris Sciences et Lettres (France)
Dates: received 30 October 2025; accepted 19 March 2026; published online 13 April 2026; in print August 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41386-026-02399-x · PMID 41974997 · PMCID PMC13389323 · OpenAlex W4414513604
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: mouse (organism), cognitive (subfield)
Methods: Statistics, Machine learning, fMRI & imaging
Keywords: Decision, Perception
MeSH: Decision Making*, Locus Coeruleus*, Norepinephrine*, Adrenergic alpha-2 Receptor Agonists, Animals, Clonidine, Male, Mice, Receptors, Adrenergic, alpha-2 (* major topic)
Topic: Receptor Mechanisms and Signaling (Molecular Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: H2020 Marie Skłodowska‐Curie Actions (Postdoctoral fellowship); National Institute of Mental Health (R56MH132732)
Citations: not cited yet (Europe PMC); 80 references in the paper

Abstract

A fundamental challenge for decision-making under uncertainty lies in balancing speed and accuracy. Humans and animals solve this problem by adjusting decision thresholds—the criterion that determines how much information is required before committing to a choice. While brain regions associated with this process have been identified, the neural circuits that directly alter decision thresholds remain unknown. Here, we investigate the role of the locus coeruleus (LC) norepinephrine (NE) system in controlling this balance. Through cell-type-specific chemogenetic manipulations, we discovered that LC-NE activation increased decision thresholds. This effect is replicated by administration of the α2-adrenergic receptor (α2-AR) agonist clonidine. Notably, α2-AR activation altered decision threshold specifically, without reproducing other LC-NE activation effects such as promoting task engagement. Together, these results suggest that LC-NE regulates decision thresholds, possibly via downstream α2-ARs.

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 2 matches between paragraphs and lines of code.

gkane26/rddm

License: GPL-3.0
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Commit: 57e9c3bbaa10038b4af7d6b9e4675f5ec1ef17d0, 5 May 2022
Languages: R (14), C++ (11), C/C++ (6)
Size: 77 files, 31 scripts
Software Heritage: archived
Found in: the text, “Drift diffusion model”
Holds: README, license file, environment (DESCRIPTION), documentation, 1 notebook
Not found: CITATION.cff, tests, continuous integration
Tools: data.table (2 files), tidyverse (2 files)
Availability: 1 check, the latest on 29 September 2026: the link answers
  • 29 September 2026: the link answers
33 files

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;
  • 31 scripts, each with its path and the digest of its content;
  • 2 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

All data will be provided upon request.

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, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 2 keywords, 9 MeSH terms, 2 funders, 79 references.

Cite

This paper

Xia, H., Maheu, M., Kane, G. A., & Scott, B. B. (2026). Regulation of the decision threshold by the locus coeruleus. Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology, 51(9), 1680-1689. https://doi.org/10.1038/s41386-026-02399-x

BibTeX

@article{xia2026regulation,
author = {Xia, Hongjie and Maheu, Maxime and Kane, Gary A. and Scott, Benjamin B.},
title = {{Regulation of the decision threshold by the locus coeruleus}},
journal = {Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology},
year = {2026},
month = apr,
volume = {51},
number = {9},
pages = {1680--1689},
publisher = {Nature Publishing Group},
issn = {0893-133X},
doi = {10.1038/s41386-026-02399-x},
url = {https://doi.org/10.1038/s41386-026-02399-x},
pmid = {41974997},
pmcid = {PMC13389323}
}

RIS

TY - JOUR
AU - Xia, Hongjie
AU - Maheu, Maxime
AU - Kane, Gary A.
AU - Scott, Benjamin B.
TI - Regulation of the decision threshold by the locus coeruleus
T2 - Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology
J2 - Neuropsychopharmacology
PY - 2026
DA - 2026/04/13
VL - 51
IS - 9
SP - 1680
EP - 1689
SN - 0893-133X
PB - Nature Publishing Group
DO - 10.1038/s41386-026-02399-x
UR - https://doi.org/10.1038/s41386-026-02399-x
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41386-026-02399-x",
"type": "article-journal",
"title": "Regulation of the decision threshold by the locus coeruleus",
"container-title": "Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology",
"author": [
{
"family": "Xia",
"given": "Hongjie"
},
{
"family": "Maheu",
"given": "Maxime"
},
{
"family": "Kane",
"given": "Gary A."
},
{
"family": "Scott",
"given": "Benjamin B."
}
],
"container-title-short": "Neuropsychopharmacology",
"volume": "51",
"issue": "9",
"page": "1680-1689",
"DOI": "10.1038/s41386-026-02399-x",
"PMID": "41974997",
"PMCID": "PMC13389323",
"ISSN": "0893-133X",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41386-026-02399-x",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
13
]
]
}
}

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.1038/s41562-026-02533-1 [code]
Fluctuations in arousal reflect latent state transitions that facilitate behavioural optimization.
Journal: Nature human behaviour
In common: cognitive, 6 references
[2] doi:10.1126/sciadv.aec9291 [code]
Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.
Journal: Science advances
In common: data.table, tidyverse, cognitive, 1 reference, author Benjamin B Scott
[3] doi:10.1126/sciadv.adz6495
Pupil-linked arousal heterogeneously modulates cell-type-specific sensory processing.
Journal: Science advances
In common: mouse, 6 references
[4] doi:10.1371/journal.pone.0355165 [code]
Pupillary dynamics during hands-off L2 driving and transitions of control under high cognitive load.
Journal: PloS one
In common: data.table, tidyverse, cognitive, 4 references
[5] doi:10.1186/s40478-026-02287-x [code]
Cellular signatures of melanocortin pathway genes across the locus coeruleus.
Journal: Acta neuropathologica communications
In common: tidyverse, mouse, 4 references
[6] doi:10.7554/elife.110294 [code]
Arousal modulates functional connectivity through structured and hemispherically asymmetric community architecture during wakefulness.
Journal: eLife
In common: 5 references
[7] doi:10.1016/j.isci.2026.117110
Orbitofrontal cortex contributes to context-dependent timing under ambiguity.
Journal: iScience
In common: cognitive, 4 references
[8] doi:10.1073/pnas.2536535123 [code]
Orbitofrontal noradrenaline supports adaptive learning-rate adjustment in probabilistic reversal learning.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: cognitive, 4 references
[9] doi:10.7554/elife.110685 [code]
Sensory adaptation and pupil-linked arousal support flexible evidence accumulation during perceptual decision making.
Journal: eLife
In common: cognitive, 4 references
[10] doi:10.1162/imag.a.1200 [code]
An fMRI examination of the role of the Locus Coeruleus in state regulation in ADHD.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 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.

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.