-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublications.html
892 lines (849 loc) · 51.9 KB
/
publications.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.553">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title> the ABC lab - Publication List</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
</style>
<script src="site_libs/quarto-nav/quarto-nav.js"></script>
<script src="site_libs/clipboard/clipboard.min.js"></script>
<script src="site_libs/quarto-html/quarto.js"></script>
<script src="site_libs/quarto-html/popper.min.js"></script>
<script src="site_libs/quarto-html/tippy.umd.min.js"></script>
<link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<script src="site_libs/quarto-contrib/glightbox/glightbox.min.js"></script>
<link href="site_libs/quarto-contrib/glightbox/glightbox.min.css" rel="stylesheet">
<link href="site_libs/quarto-contrib/glightbox/lightbox.css" rel="stylesheet">
<script id="quarto-search-options" type="application/json">{
"language": {
"search-no-results-text": "No results",
"search-matching-documents-text": "matching documents",
"search-copy-link-title": "Copy link to search",
"search-hide-matches-text": "Hide additional matches",
"search-more-match-text": "more match in this document",
"search-more-matches-text": "more matches in this document",
"search-clear-button-title": "Clear",
"search-text-placeholder": "",
"search-detached-cancel-button-title": "Cancel",
"search-submit-button-title": "Submit",
"search-label": "Search"
}
}</script>
<link rel="stylesheet" href="styles.css">
</head>
<body class="nav-fixed">
<div id="quarto-search-results"></div>
<header id="quarto-header" class="headroom fixed-top">
<nav class="navbar navbar-expand-xl " data-bs-theme="dark">
<div class="navbar-container container-fluid">
<div class="navbar-brand-container mx-auto">
<a href="./index.html" class="navbar-brand navbar-brand-logo">
<img src="./images/abclab.png" alt="" class="navbar-logo">
</a>
<a class="navbar-brand" href="./index.html">
<span class="navbar-title"><span style="text-transform: none;"> <span style="font-size: 1rem;">the</span><span style="font-size: 0.7rem;"> </span>ABC<span style="font-size: 0.7rem;"> </span>lab</span></span>
</a>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav navbar-nav-scroll ms-auto">
<li class="nav-item dropdown ">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-projects" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<span class="menu-text">Projects</span>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="nav-menu-projects">
<li>
<a class="dropdown-item" href="./projects_agriculture.html">
<span class="dropdown-text">Agriculture</span></a>
</li>
<li>
<a class="dropdown-item" href="./projects_biodiversity.html">
<span class="dropdown-text">Biodiversity</span></a>
</li>
<li>
<a class="dropdown-item" href="./projects_conservation.html">
<span class="dropdown-text">Conservation</span></a>
</li>
</ul>
</li>
<li class="nav-item dropdown ">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-products" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<span class="menu-text">Products</span>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="nav-menu-products">
<li>
<a class="dropdown-item" href="./publications.html">
<span class="dropdown-text">Publications</span></a>
</li>
<li>
<a class="dropdown-item" href="./media.html">
<span class="dropdown-text">Media</span></a>
</li>
</ul>
</li>
<li class="nav-item dropdown ">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-people" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<span class="menu-text">People</span>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="nav-menu-people">
<li>
<a class="dropdown-item" href="./people2.html">
<span class="dropdown-text">Students & Trainees</span></a>
</li>
<li>
<a class="dropdown-item" href="./pgalpern.html">
<span class="dropdown-text">Dr. Paul Galpern</span></a>
</li>
<li>
<a class="dropdown-item" href="./msummers.html">
<span class="dropdown-text">Dr. Mindi Summers</span></a>
</li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="./joinus.html">
<span class="menu-text">Join us</span></a>
</li>
</ul>
</div> <!-- /navcollapse -->
<div class="quarto-navbar-tools">
</div>
</div> <!-- /container-fluid -->
</nav>
</header>
<!-- content -->
<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
<!-- sidebar -->
<!-- margin-sidebar -->
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
</div>
<!-- main -->
<main class="content page-columns page-full" id="quarto-document-content">
<script src="trainee-highlighter.js"></script>
<header id="title-block-header" class="quarto-title-block default">
<div class="quarto-title">
<h1 class="title">Publication List</h1>
</div>
<div class="quarto-title-meta">
</div>
</header>
<!-- Uncomment in order to generate bibliography from .bib file -->
<!-- Add the following to the YAML above
bibliography: abclab.bib
nocite: |
@*
csl: apa-annotated-bibliography.csl -->
<!-- Add the following below -->
<!-- ::: {#refs} -->
<!-- ::: -->
<!-- To add people's names to highlighting -->
<!--edit the trainee-highlighter.js file -->
<p>This is a list of publications by lab members, with a curated sample of <span style="background-color: #FFFF00; padding-left: 0.2rem; padding-right: 0.2rem;border-radius: 0.3rem;">figures</span> to illustrate the diversity of research in our lab. See the <a href="./projects_agriculture.html">Agriculture</a>, <a href="./projects_biodiversity.html">Biodiversity</a>, and <a href="./projects_conservation.html">Conservation</a> pages for a topic-based review of our research.</p>
<p>Graduate and undergraduate students, postdocs, technicians, and research associates who worked in the lab are <span class="trainee-highlight">in red</span>. Lab PIs are <span class="textual-bold">in black</span>.</p>
<p>Can’t access these? Send an email to <a href="./pgalpern.html">Paul Galpern</a>.</p>
<div class="publications page-columns page-full">
<ol reversed="">
<section id="abc-lab-publications" class="level4" style="text-indent: -2rem;">
<h4 style="text-indent: -2rem;" data-anchor-id="abc-lab-publications">ABC Lab Publications</h4>
<li>
Neame, T. & Galpern, P. (2025). Body size mediates ground beetle dispersal from non-crop vegetation: Implications for conservation biocontrol. <em>Agriculture, Ecosystems & Environment</em>. 377:109270. <a href="https://doi.org/10.1016/j.agee.2024.109270" target="_blank">Link</a>
</li>
<li>
Neame, T., Robinson, S., & Galpern, P. (2024). Proximity to non-crop vegetation increases estimates of predation frequency but not beetle numbers. <em>Agriculture, Ecosystems & Environment</em>. 373:109133. <a href="https://doi.org/10.1016/j.agee.2024.109133" target="_blank">Link</a>
</li>
<li>
Cohen, A. L., Devries, J. H., & Galpern, P. (2024). Wetland cover in agricultural landscapes is positively associated with bumblebee abundance. <em>Insect Conservation and Diversity</em>, <em>17</em>. <a href="https://doi.org/10.1111/icad.12701" target="_blank">Link</a>
</li>
<li>
Rohde, A. T., Branstetter, M. G., Mock, K. E., Knoblett, J. N., Pilliod, D. S., Everett, J. G., Galpern, P., & Strange, J. P. (2024). Population genetics of museum specimens indicate decreasing genetic resiliency: The case of two bumble bees of conservation concern. <em>Biological Conservation</em>, <em>291</em>. <a href="https://doi.org/10.1016/j.biocon.2024.110453" target="_blank">Link</a>
</li>
<li>
Clake, D. J., Rogers, S. M., & Galpern, P. (2024). Cryptic genotypic and phenotypic diversity in parapatric bumble bee populations associated with minimum cold temperatures. <em>Biodiversity and Conservation</em>, <em>33</em>. <a href="https://doi.org/10.1007/s10531-023-02753-1" target="_blank">Link</a> (<a href="#fig-clake2024" class="quarto-xref">Figure 1</a>)
</li>
<li>
Innes, R., Neame, T., & Galpern, P. (2024). Contrasting late season pest insect abundance in non-crop vegetation areas and nearby canola fields in the canadian prairies. <em>Agricultural and Forest Entomology</em>. <em>In press.</em> <a href="https://doi.org/10.1111/afe.12626" target="_blank">Link</a> (<a href="#fig-innes2024" class="quarto-xref">Figure 2</a>)
</li>
<li>
Kwafo, R., Galpern, P., & Cartar, R. V. (2023). Contrasting effects of landscape on nest founding and colony success of bumble bees in a mixed-crop agroecosystem. <em>Insect Conservation and Diversity</em>, <em>16</em>. <a href="https://doi.org/10.1111/icad.12611" target="_blank">Link</a>
</li>
<li>
Robinson, S. V. J., Schwinghamer, T., Cárcamo, H., & Galpern, P. (2023). Precision agricultural data and ecosystem services: Can we put the pieces together? <em>Ecological Solutions and Evidence</em> 4:e12271. <a href="https://doi.org/10.1002/2688-8319.12271" target="_blank">Link</a> (<a href="#fig-robinson2023" class="quarto-xref">Figure 3</a>)
</li>
<li>
Nguyen, L. H., Robinson, S., & Galpern, P. (2022). Effects of landscape complexity on crop productivity: An assessment from space. <em>Agriculture Ecosystems & Environment</em>, <em>328</em>, 107849. <a href="https://doi.org/10.1016/j.agee.2021.107849" target="_blank">Link</a> (<a href="#fig-nguyen2022" class="quarto-xref">Figure 4</a>)
</li>
<li>
Nguyen, L., Robinson, S., & Galpern, P. (2022). Medium-resolution multispectral satellite imagery in precision agriculture: Mapping precision canola (brassica napus l.) yield using sentinel-2 time series. <em>Precision Agriculture</em>, <em>23</em>, 1051–1071. <a href="https://doi.org/10.1007/s11119-022-09874-7" target="_blank">Link</a>
</li>
<li>
Robinson, S., Nguyen, L., & Galpern, P. (2022). Livin’ on the edge: Precision yield data shows evidence of ecosystem services from field boundaries. <em>Agriculture Ecosystems & Environment</em>, <em>333</em>, 107956. <a href="https://doi.org/10.1016/j.agee.2022.107956" target="_blank">Link</a>
</li>
<li>
Clake, D. J., Rogers, S. M., & Galpern, P. (2022). Landscape complementation is a driver of bumble bee (bombus sp.) abundance in the canadian rocky mountains. <em>Landscape Ecology</em>, <em>37</em>. <a href="https://doi.org/10.1007/s10980-021-01389-2" target="_blank">Link</a>
</li>
<li>
Doyle-Baker, P. K., Ladle, A., Rout, A., & Galpern, P. (2021). Smartphone GPS locations of students’ movements to and from campus. <em>ISPRS International Journal of Geo-Information</em>, <em>10</em>, 517. <a href="https://doi.org/10.3390/ijgi10080517" target="_blank">Link</a>
</li>
<li>
Rout, A., Nitoslawski, S., Ladle, A., & Galpern, P. (2021). Using smartphone-GPS data to understand pedestrian-scale behavior in urban settings: A review of themes and approaches. <em>Computers, Environment and Urban Systems</em>, <em>90</em>, 101705. <a href="https://doi.org/10.1016/j.compenvurbsys.2021.101705" target="_blank">Link</a>
</li>
<li>
Vickruck, J., Purvis, E. E. N., Kwafo, R., Kerstiens, H., & Galpern, P. (2021). Diversifying landscapes for wild bees: Strategies for north american prairie agroecosystems. <em>Current Landscape Ecology Reports</em>, <em>6</em>, 85–96. <a href="https://doi.org/10.1007/s40823-021-00066-z" target="_blank">Link</a> (<a href="#fig-vickruck2021" class="quarto-xref">Figure 5</a>)
</li>
<li>
Rout, A., & Galpern, P. (2021). Benches, fountains and trees: Using mixed-methods with questionnaire and smartphone data to design urban green spaces. <em>Urban Forestry and Urban Greening</em>, 127335. <a href="https://doi.org/10.1016/j.ufug.2021.127335" target="_blank">Link</a>
</li>
<li>
Purvis, E. E. N., Best, L. R., & Galpern, P. (2021). Identifying key forage plants to support wild bee diversity and a species at risk in the prairie pothole region. <em>Insect Conservation and Diversity</em>, <em>14</em>, 851–861. <a href="https://doi.org/10.1111/icad.12524" target="_blank">Link</a>
</li>
<li>
Robinson, S. V. J., Edwards, D., Vickruck, J. L., Best, L. R., & Galpern, P. (2021). Non-crop sources of beneficial arthropods vary within-season across a prairie agroecosystem. <em>Agriculture, Ecosystems and Environment</em>, <em>320</em>, 107581. <a href="https://doi.org/10.1016/j.agee.2021.107581" target="_blank">Link</a>
</li>
<li>
Galpern, P., Best, L. R., Devries, J. H., & Johnson, S. A. (2021). Wild bee responses to cropland landscape complexity are temporally-variable and taxon-specific: Evidence from a highly replicated pseudo-experiment. <em>Agriculture, Ecosystems and Environment</em>, <em>322</em>, 107652. <a href="https://doi.org/10.1016/j.agee.2021.107652" target="_blank">Link</a>
</li>
<li>
Galpern, P., Vickruck, J., Devries, J. H., & Gavin, M. P. (2020). Landscape complexity is associated with crop yields across a large temperate grassland region. <em>Agriculture, Ecosystems and Environment</em>, <em>290</em>, 106724. <a href="https://doi.org/10.1016/j.agee.2019.106724" target="_blank">Link</a>
</li>
<li>
Chubaty, A. M., Galpern, P., & Doctolero, S. C. (2020). The r toolbox grainscape for modelling and visualizing landscape connectivity using spatially explicit networks. <em>Methods in Ecology and Evolution</em>, <em>11</em>, 591–595. <a href="https://doi.org/10.1111/2041-210X.13350" target="_blank">Link</a> (<a href="#fig-chubaty2020" class="quarto-xref">Figure 6</a>)
</li>
<li>
Galpern, P., & Gavin, M. P. (2020). Assessing the potential to increase landscape complexity in Canadian prairie croplands: A multi-scale analysis of land use pattern. <em>Frontiers in Environmental Science</em>, <em>8</em>, 31. <a href="https://doi.org/10.3389/fenvs.2020.00031" target="_blank">Link</a>
</li>
<li>
Purvis, E. E. N., Vickruck, J. L., Best, L. R., Devries, J. H., & Galpern, P. (2020). Wild bee community recovery in restored grassland-wetland complexes of prairie north america. <em>Biological Conservation</em>, <em>252</em>, 108829. <a href="https://doi.org/10.1016/j.biocon.2020.108829" target="_blank">Link</a> (<a href="#fig-purvis2020" class="quarto-xref">Figure 7</a>)
</li>
<li>
Priadka, P., Manseau, M., Trottier, T., Hervieux, D., Galpern, P., McLoughlin, P. D., & Wilson, P. J. (2019). Partitioning drivers of spatial genetic variation for a continuously distributed population of boreal caribou: Implications for management unit delineation. <em>Ecology and Evolution</em>, <em>9</em>, 141–153. <a href="https://doi.org/10.1002/ece3.4682" target="_blank">Link</a>
</li>
<li>
Vickruck, J. L., Best, L. R., Gavin, M. P., Devries, J. H., & Galpern, P. (2019). Pothole wetlands provide reservoir habitat for native bees in prairie croplands. <em>Biological Conservation</em>, <em>232</em>, 42–50. <a href="https://doi.org/10.1016/j.biocon.2019.01.015" target="_blank">Link</a>
</li>
<li>
Schweiger, O., Franzén, M., Frenzel, M., Galpern, P., Kerr, J., Papanikolaou, A., & Rasmont, P. (2019). Minimising risks of global change by enhancing resilience of pollinators in agricultural systems. In <em>Atlas of Ecosystem Services</em> (pp. 105–111). <a href="https://doi.org/10.1007/978-3-319-96229-0_17" target="_blank">Link</a>
</li>
<li>
Galpern, P., Ladle, A., Uribe, F. A., Sandalack, B., & Doyle-Baker, P. (2018). Assessing urban connectivity using volunteered mobile phone GPS locations. <em>Applied Geography</em>, <em>93</em>, 37–46. <a href="https://doi.org/10.1016/j.apgeog.2018.02.009" target="_blank">Link</a>
</li>
<li>
Ladle, A., Galpern, P., & Doyle-Baker, P. (2018). Measuring the use of green space with urban resource selection functions: An application using smartphone GPS locations. <em>Landscape and Urban Planning</em>, <em>179</em>, 107–115. <a href="https://doi.org/10.1016/j.landurbplan.2018.07.012" target="_blank">Link</a> (<a href="#fig-ladle2018" class="quarto-xref">Figure 8</a>)
</li>
<li>
Rout, A., & Galpern, P. (2018). Using personal smartphone location histories in public engagement: Locating a new campus amenity. <em>Applied Geography</em>, <em>100</em>, 68–77. <a href="https://doi.org/10.1016/j.apgeog.2018.09.003" target="_blank">Link</a>
</li>
<li>
Galpern, P., Johnson, S. A., Retzlaff, J. L., Chang, D., & Swann, J. (2017). Reduced abundance and earlier collection of bumble bee workers under intensive cultivation of a mass-flowering prairie crop. <em>Ecology and Evolution</em>, <em>7</em>, 2414–2422. <a href="https://doi.org/10.1002/ece3.2856" target="_blank">Link</a>
</li>
<li>
Gubili, C., Mariani, S., Weckworth, B. V., Galpern, P., McDevitt, A. D., Hebblewhite, M., Nickel, B., & Musiani, M. (2017). Environmental and anthropogenic drivers of connectivity patterns: A basis for prioritizing conservation efforts for threatened populations. <em>Evolutionary Applications</em>, <em>10</em>, 199–211. <a href="https://doi.org/10.1111/eva.12443" target="_blank">Link</a>
</li>
<li>
Rout, A., & Galpern, P. (2017). Evidence-based design of outdoor learning spaces in winter: Behavioral mapping in a ’forest school’. In <em>Architectural Research Addressing Societal Challenges, Vols 1 and 2</em>. <a href="https://www.taylorfrancis.com/chapters/edit/10.1201/9781315116068-76/evidence-based-design-outdoor-learning-spaces-winter-behavioral-mapping-forest-school-rout-galpern" target="_blank">Link</a>
</li>
</section>
<section id="paul-galpern-publications-2017-and-earlier" class="level4" style="text-indent: -2rem;">
<h4 style="text-indent: -2rem;" data-anchor-id="paul-galpern-publications-2017-and-earlier">Paul Galpern Publications (2017 and earlier)</h4>
<li>
Galpern, P. (2017). Validating walkability models using volunteered mobile phone data ( breakout presentation ). <em>Journal of Transport & Health</em>, <em>7</em>. <a href="https://doi.org/10.1016/j.jth.2017.11.041" target="_blank">Link</a>
</li>
<li>
Lindquist, M., & Galpern, P. (2016). Crowdsourcing (in) voluntary citizen geospatial data from google android smartphones. <em>Journal of Digital Landscape Architecture</em>, <em>1</em>, 263–272. <a href="https://doi.org/10.14627/537612030" target="_blank">Link</a>
</li>
<li>
Kerr, J. T., Pindar, A., Galpern, P., Packer, L., Potts, S. G., Roberts, S. M., Rasmont, P., Schweiger, O., Colla, S. R., Richardson, L. L., Wagner, D. L., Gall, L. F., Sikes, D. S., & Pantoja, A. (2015). Relocation risky for bumblebee colonies—response. <em>Science (New York, N.Y.)</em>, <em>350</em>, 287. <a href="https://doi.org/10.1126/science.350.6258.287" target="_blank">Link</a>
</li>
<li>
Kerr, J. T., Pindar, A., Galpern, P., Packer, L., Potts, S. G., Roberts, S. M., Rasmont, P., Schweiger, O., Colla, S. R., Richardson, L. L., Wagner, D. L., & Gall, L. F. (2015). Climate change impacts on bumblebees converge across continents. <em>Science</em>, <em>349</em>, 177–180. <a href="https://doi.org/10.1126/science.aaa7031" target="_blank">Link</a>
</li>
<li>
Galpern, P., Peres-Neto, P. R., Polfus, J., & Manseau, M. (2014). MEMGENE: Spatial pattern detection in genetic distance data. <em>Methods in Ecology and Evolution</em>, <em>5</em>, 1116–1120. <a href="https://doi.org/10.1111/2041-210X.12240" target="_blank">Link</a>
</li>
<li>
Harris, L. N., Moore, J. S., Galpern, P., Tallman, R. F., & Taylor, E. B. (2014). Geographic influences on fine-scale, hierarchical population structure in northern canadian populations of anadromous arctic char (salvelinus alpinus). <em>Environmental Biology of Fishes</em>, <em>97</em>, 1233–1252. <a href="https://doi.org/10.1007/s10641-013-0210-y" target="_blank">Link</a>
</li>
<li>
Galpern, P., & Manseau, M. (2013a). Modelling the influence of landscape connectivity on animal distribution: A functional grain approach. <em>Ecography</em>, <em>36</em>, 1004–1016. <a href="https://doi.org/10.1111/j.1600-0587.2012.00081.x" target="_blank">Link</a>
</li>
<li>
Galpern, P., & Manseau, M. (2013b). Finding the functional grain: Comparing methods for scaling resistance surfaces. <em>Landscape Ecology</em>, <em>28</em>, 1269–1281. <a href="https://doi.org/10.1007/s10980-013-9873-1" target="_blank">Link</a>
</li>
<li>
Galpern, P., Manseau, M., Hettinga, P. N., Wilson, P. J., & Smith, K. (2012). ALLELEMATCH: An r package for identifying unique multilocus genotypes where genotyping error and missing data may be present. <em>Molecular Ecology Resources</em>, <em>12</em>, 771–778. <a href="https://doi.org/10.1111/j.1755-0998.2012.03137.x" target="_blank">Link</a> (<a href="#fig-galpern2012" class="quarto-xref">Figure 9</a>)
</li>
<li>
Galpern, P., Manseau, M., & Wilson, P. (2012). Grains of connectivity: Analysis at multiple spatial scales in landscape genetics. <em>Molecular Ecology</em>, <em>21</em>, 3996–4009. <a href="https://doi.org/10.1111/j.1365-294X.2012.05677.x" target="_blank">Link</a>
</li>
<li>
Galpern, P., Manseau, M., & Fall, A. (2011). Patch-based graphs of landscape connectivity: A guide to construction, analysis and application for conservation. <em>Biological Conservation</em>, <em>144</em>, 44–55. <a href="https://doi.org/10.1016/j.biocon.2010.09.002" target="_blank">Link</a>
</li>
<li>
Houle, D., Mezey, J., Galpern, P., & Carter, A. (2003). Automated measurement of drosophila wings. <em>BMC Evolutionary Biology</em>, <em>3</em>, 1–3. <a href="https://doi.org/10.1186/1471-2148-3-25" target="_blank">Link</a>
</li>
<li>
Houle, D., Mezey, J., & Galpern, P. (2002). Interpretation of the results of common principal components analyses. <em>Evolution</em>, <em>56</em>, 433–440. <a href="https://doi.org/DOI:%2010.1111/j.0014-3820.2002.tb01356.x" target="_blank">Link</a>
</li>
</section></ol>
<div class="no-row-height column-margin column-container"><div class="">
<div id="fig-clake2024" class="quarto-figure quarto-figure-center quarto-float">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-clake2024-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="images/fig_clake2024.png" class="lightbox" data-glightbox="description: .lightbox-desc-1" data-gallery="quarto-lightbox-gallery-1"><img src="images/fig_clake2024.png" class="img-fluid figure-img"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-clake2024-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure 1: <span class="citation" data-cites="Clake2024">Clake, Rogers, and Galpern (2024)</span> describe a new cryptic species of bumble bee in the Rocky mountains, named <em>Bombus hibernus</em> determined using genomic analyses. This research was led by lab PhD student Dr. Danielle Clake.
</figcaption>
</figure>
</div>
</div><div class="">
<div id="fig-innes2024" class="quarto-figure quarto-figure-center quarto-float">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-innes2024-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="images/fig_innes2024.png" class="lightbox" data-glightbox="description: .lightbox-desc-2" data-gallery="quarto-lightbox-gallery-2"><img src="images/fig_innes2024.png" class="img-fluid figure-img"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-innes2024-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure 2: <span class="citation" data-cites="Innes2024">Innes, Neame, and Galpern (2024)</span> investigated the late-season spillover of crop pests from perennial vegetation into canola in Alberta, and showed that except for leafhoppers (shown), pests are not moving from these habitats into the fields at this time of year. Lab undergraduate Honors student Becca Innes led this paper.
</figcaption>
</figure>
</div>
</div><div class="">
<div id="fig-robinson2023" class="quarto-figure quarto-figure-center quarto-float">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-robinson2023-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="images/fig_robinson2023.png" class="lightbox" data-glightbox="description: .lightbox-desc-3" data-gallery="quarto-lightbox-gallery-3"><img src="images/fig_robinson2023.png" class="img-fluid figure-img"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-robinson2023-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure 3: <span class="citation" data-cites="Robinson2023">Robinson et al. (2023)</span> motivate the potential for <em>“precision ag”</em> field maps collected by combine harvesting machinery to enhance agricultural sustainability. Postdoc Dr. Sam Robinson, who pioneered our lab’s precision ag work, leads this demonstration of best practices (e.g., filter using several criteria).
</figcaption>
</figure>
</div>
</div><div class="">
<div id="fig-nguyen2022" class="quarto-figure quarto-figure-center quarto-float">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-nguyen2022-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="images/fig_nguyen2022.png" class="lightbox" data-glightbox="description: .lightbox-desc-4" data-gallery="quarto-lightbox-gallery-4"><img src="images/fig_nguyen2022.png" class="img-fluid figure-img"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-nguyen2022-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure 4: <span class="citation" data-cites="Nguyen2022">Nguyen, Robinson, and Galpern (2022)</span> determine the crop yield from 757 fields using remote sensing and precision data. They use this to show that non-crop vegetation (“messy places”) creates a positive yield halo in nearby canola. This work was led by lab postdoc Dr. Lan Nguyen,
</figcaption>
</figure>
</div>
</div><div class="">
<div id="fig-vickruck2021" class="quarto-figure quarto-figure-center quarto-float">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-vickruck2021-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="images/fig_vickruck2021.png" class="lightbox" data-glightbox="description: .lightbox-desc-5" data-gallery="quarto-lightbox-gallery-5"><img src="images/fig_vickruck2021.png" class="img-fluid figure-img"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-vickruck2021-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure 5: <span class="citation" data-cites="Vickruck2021">Vickruck et al. (2021)</span> set out principles for supporting wild bees in the Canadian Prairies. This diagram shows land management techniques with great potential for success. This review was a team effort led by lab postdoc Dr. Jess Vickruck.
</figcaption>
</figure>
</div>
</div><div class="">
<div id="fig-chubaty2020" class="quarto-figure quarto-figure-center quarto-float">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-chubaty2020-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="images/fig_chubaty2020.jpg" class="lightbox" data-glightbox="description: .lightbox-desc-6" data-gallery="quarto-lightbox-gallery-6"><img src="images/fig_chubaty2020.jpg" class="img-fluid figure-img"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-chubaty2020-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure 6: <span class="citation" data-cites="Chubaty2020">Chubaty, Galpern, and Doctolero (2020)</span> introduced <a href="https://cran.r-project.org/web/packages/grainscape/index.html" target="_blank"><em>grainscape</em></a>, new R software for landscape connectivity modelling. This team effort was led by visiting scientist Dr. Alex Chubaty and underwritten by lab undergraduate Sam Doctolero’s breathtakingly efficient C++ code.
</figcaption>
</figure>
</div>
</div><div class="">
<div id="fig-purvis2020" class="quarto-figure quarto-figure-center quarto-float">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-purvis2020-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="images/fig_purvis2020.png" class="lightbox" data-glightbox="description: .lightbox-desc-7" data-gallery="quarto-lightbox-gallery-7"><img src="images/fig_purvis2020.png" class="img-fluid figure-img"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-purvis2020-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure 7: <span class="citation" data-cites="Purvis2020">Purvis et al. (2020)</span> compared the diversity and the abundance of bees and the flowers at Alberta grassland-wetland sites of various times since restoration. This was analyzed by MSc student Emily Purvis, with sampling implemented by postdoc Dr. Jess Vickruck.
</figcaption>
</figure>
</div>
</div><div class="">
<div id="fig-ladle2018" class="quarto-figure quarto-figure-center quarto-float">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-ladle2018-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="images/fig_ladle2018.jpg" class="lightbox" data-glightbox="description: .lightbox-desc-8" data-gallery="quarto-lightbox-gallery-8"><img src="images/fig_ladle2018.jpg" class="img-fluid figure-img"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-ladle2018-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure 8: <span class="citation" data-cites="Ladle2018">Ladle, Galpern, and Doyle-Baker (2018)</span> brought wildlife ecological methods to urban landscape planning, proposing urban resource selection functions (RSFs). This work, led by lab postdoc Dr. Andrew Ladle, introduced how we can use “human radiocollars” (GPS-enabled smartphones) to understand how people use Calgary parks (pictured; green).
</figcaption>
</figure>
</div>
</div><div class="">
<div id="fig-galpern2012" class="quarto-figure quarto-figure-center quarto-float">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-galpern2012-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="images/fig_galpern2012.png" class="lightbox" data-glightbox="description: .lightbox-desc-9" data-gallery="quarto-lightbox-gallery-9"><img src="images/fig_galpern2012.png" class="img-fluid figure-img"></a>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-galpern2012-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure 9: <span class="citation" data-cites="Galpern2012">Galpern et al. (2012)</span> describes the <a href="https://cran.r-project.org/web/packages/allelematch/index.html" target="_blank">allelematch package for R</a>, which is software that matches DNA samples based on genomic profiles. This tool has had significant impact on conservation on the ground (or water) with hundreds of cited applications to at-risk populations of terrestrial mammals, plants, birds, fishes, and marine mammals. It is currently maintained by Todd Cross. An example of profile matching is shown.
</figcaption>
</figure>
</div>
</div></div></div>
<div class="hidden" aria-hidden="true">
<span class="glightbox-desc lightbox-desc-1">Figure 1: <span class="citation" data-cites="Clake2024">Clake, Rogers, and Galpern (2024)</span> describe a new cryptic species of bumble bee in the Rocky mountains, named <em>Bombus hibernus</em> determined using genomic analyses. This research was led by lab PhD student Dr. Danielle Clake.</span>
<span class="glightbox-desc lightbox-desc-2">Figure 2: <span class="citation" data-cites="Innes2024">Innes, Neame, and Galpern (2024)</span> investigated the late-season spillover of crop pests from perennial vegetation into canola in Alberta, and showed that except for leafhoppers (shown), pests are not moving from these habitats into the fields at this time of year. Lab undergraduate Honors student Becca Innes led this paper.</span>
<span class="glightbox-desc lightbox-desc-3">Figure 3: <span class="citation" data-cites="Robinson2023">Robinson et al. (2023)</span> motivate the potential for <em>“precision ag”</em> field maps collected by combine harvesting machinery to enhance agricultural sustainability. Postdoc Dr. Sam Robinson, who pioneered our lab’s precision ag work, leads this demonstration of best practices (e.g., filter using several criteria).</span>
<span class="glightbox-desc lightbox-desc-4">Figure 4: <span class="citation" data-cites="Nguyen2022">Nguyen, Robinson, and Galpern (2022)</span> determine the crop yield from 757 fields using remote sensing and precision data. They use this to show that non-crop vegetation (“messy places”) creates a positive yield halo in nearby canola. This work was led by lab postdoc Dr. Lan Nguyen,</span>
<span class="glightbox-desc lightbox-desc-5">Figure 5: <span class="citation" data-cites="Vickruck2021">Vickruck et al. (2021)</span> set out principles for supporting wild bees in the Canadian Prairies. This diagram shows land management techniques with great potential for success. This review was a team effort led by lab postdoc Dr. Jess Vickruck.</span>
<span class="glightbox-desc lightbox-desc-6">Figure 6: <span class="citation" data-cites="Chubaty2020">Chubaty, Galpern, and Doctolero (2020)</span> introduced <a href="https://cran.r-project.org/web/packages/grainscape/index.html" target="_blank"><em>grainscape</em></a>, new R software for landscape connectivity modelling. This team effort was led by visiting scientist Dr. Alex Chubaty and underwritten by lab undergraduate Sam Doctolero’s breathtakingly efficient C++ code.</span>
<span class="glightbox-desc lightbox-desc-7">Figure 7: <span class="citation" data-cites="Purvis2020">Purvis et al. (2020)</span> compared the diversity and the abundance of bees and the flowers at Alberta grassland-wetland sites of various times since restoration. This was analyzed by MSc student Emily Purvis, with sampling implemented by postdoc Dr. Jess Vickruck.</span>
<span class="glightbox-desc lightbox-desc-8">Figure 8: <span class="citation" data-cites="Ladle2018">Ladle, Galpern, and Doyle-Baker (2018)</span> brought wildlife ecological methods to urban landscape planning, proposing urban resource selection functions (RSFs). This work, led by lab postdoc Dr. Andrew Ladle, introduced how we can use “human radiocollars” (GPS-enabled smartphones) to understand how people use Calgary parks (pictured; green).</span>
<span class="glightbox-desc lightbox-desc-9">Figure 9: <span class="citation" data-cites="Galpern2012">Galpern et al. (2012)</span> describes the <a href="https://cran.r-project.org/web/packages/allelematch/index.html" target="_blank">allelematch package for R</a>, which is software that matches DNA samples based on genomic profiles. This tool has had significant impact on conservation on the ground (or water) with hundreds of cited applications to at-risk populations of terrestrial mammals, plants, birds, fishes, and marine mammals. It is currently maintained by Todd Cross. An example of profile matching is shown.</span>
</div>
<div style="font-size: 0.8rem; margin-top: 5rem; border-top: 1px solid lightgrey;
border-bottom: 1px solid lightgrey; line-height: 0.95rem; padding: 0.5rem;">
The ABC Lab is a collective project of <a href="./pgalpern.html">Dr. Paul Galpern</a>, <a href="./msummers.html">Dr. Mindi Summers</a>, and their students and trainees at University of Calgary, Alberta, Canada.<br>
<div style="font-size: 0.6rem; margin-top: 0.5rem; line-height: 0.7rem;">
Image content created by past or present lab members is credited; other images are licensed or are in the public domain; Lab logo and beetle line drawing by Tobyn Neame; Built with Quarto; Last content update: May 2024
</div>
</div></main> <!-- /main -->
<script id="quarto-html-after-body" type="application/javascript">
window.document.addEventListener("DOMContentLoaded", function (event) {
const toggleBodyColorMode = (bsSheetEl) => {
const mode = bsSheetEl.getAttribute("data-mode");
const bodyEl = window.document.querySelector("body");
if (mode === "dark") {
bodyEl.classList.add("quarto-dark");
bodyEl.classList.remove("quarto-light");
} else {
bodyEl.classList.add("quarto-light");
bodyEl.classList.remove("quarto-dark");
}
}
const toggleBodyColorPrimary = () => {
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
if (bsSheetEl) {
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
const isCodeAnnotation = (el) => {
for (const clz of el.classList) {
if (clz.startsWith('code-annotation-')) {
return true;
}
}
return false;
}
const clipboard = new window.ClipboardJS('.code-copy-button', {
text: function(trigger) {
const codeEl = trigger.previousElementSibling.cloneNode(true);
for (const childEl of codeEl.children) {
if (isCodeAnnotation(childEl)) {
childEl.remove();
}
}
return codeEl.innerText;
}
});
clipboard.on('success', function(e) {
// button target
const button = e.trigger;
// don't keep focus
button.blur();
// flash "checked"
button.classList.add('code-copy-button-checked');
var currentTitle = button.getAttribute("title");
button.setAttribute("title", "Copied!");
let tooltip;
if (window.bootstrap) {
button.setAttribute("data-bs-toggle", "tooltip");
button.setAttribute("data-bs-placement", "left");
button.setAttribute("data-bs-title", "Copied!");
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
customClass: "code-copy-button-tooltip",
offset: [0, -8]});
tooltip.show();
}
setTimeout(function() {
if (tooltip) {
tooltip.hide();
button.removeAttribute("data-bs-title");
button.removeAttribute("data-bs-toggle");
button.removeAttribute("data-bs-placement");
}
button.setAttribute("title", currentTitle);
button.classList.remove('code-copy-button-checked');
}, 1000);
// clear code selection
e.clearSelection();
});
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
// Inspect non-navigation links and adorn them if external
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
for (var i=0; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
// undo the damage that might have been done by quarto-nav.js in the case of
// links that we want to consider external
if (link.dataset.originalHref !== undefined) {
link.href = link.dataset.originalHref;
}
}
}
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
maxWidth: 500,
delay: 100,
arrow: false,
appendTo: function(el) {
return el.parentElement;
},
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start',
};
if (contentFn) {
config.content = contentFn;
}
if (onTriggerFn) {
config.onTrigger = onTriggerFn;
}
if (onUntriggerFn) {
config.onUntrigger = onUntriggerFn;
}
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
const ref = noterefs[i];
tippyHover(ref, function() {
// use id or data attribute instead here
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
if (note) {
return note.innerHTML;
} else {
return "";
}
});
}
const xrefs = window.document.querySelectorAll('a.quarto-xref');
const processXRef = (id, note) => {
// Strip column container classes
const stripColumnClz = (el) => {
el.classList.remove("page-full", "page-columns");
if (el.children) {
for (const child of el.children) {
stripColumnClz(child);
}
}
}
stripColumnClz(note)
if (id === null || id.startsWith('sec-')) {
// Special case sections, only their first couple elements
const container = document.createElement("div");
if (note.children && note.children.length > 2) {
container.appendChild(note.children[0].cloneNode(true));
for (let i = 1; i < note.children.length; i++) {
const child = note.children[i];
if (child.tagName === "P" && child.innerText === "") {
continue;
} else {
container.appendChild(child.cloneNode(true));
break;
}
}
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(container);
}
return container.innerHTML
} else {
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
return note.innerHTML;
}
} else {
// Remove any anchor links if they are present
const anchorLink = note.querySelector('a.anchorjs-link');
if (anchorLink) {
anchorLink.remove();
}
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
return note.innerHTML;
}
}
}
for (var i=0; i<xrefs.length; i++) {
const xref = xrefs[i];
tippyHover(xref, undefined, function(instance) {
instance.disable();
let url = xref.getAttribute('href');
let hash = undefined;
if (url.startsWith('#')) {
hash = url;
} else {
try { hash = new URL(url).hash; } catch {}
}
if (hash) {
const id = hash.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
if (note !== null) {
try {
const html = processXRef(id, note.cloneNode(true));
instance.setContent(html);
} finally {
instance.enable();
instance.show();
}
} else {
// See if we can fetch this
fetch(url.split('#')[0])
.then(res => res.text())
.then(html => {
const parser = new DOMParser();
const htmlDoc = parser.parseFromString(html, "text/html");
const note = htmlDoc.getElementById(id);
if (note !== null) {
const html = processXRef(id, note);
instance.setContent(html);
}
}).finally(() => {
instance.enable();
instance.show();
});
}
} else {
// See if we can fetch a full url (with no hash to target)
// This is a special case and we should probably do some content thinning / targeting
fetch(url)
.then(res => res.text())
.then(html => {
const parser = new DOMParser();
const htmlDoc = parser.parseFromString(html, "text/html");
const note = htmlDoc.querySelector('main.content');
if (note !== null) {
// This should only happen for chapter cross references
// (since there is no id in the URL)
// remove the first header
if (note.children.length > 0 && note.children[0].tagName === "HEADER") {
note.children[0].remove();
}
const html = processXRef(null, note);
instance.setContent(html);
}
}).finally(() => {
instance.enable();
instance.show();
});
}
}, function(instance) {
});
}
let selectedAnnoteEl;
const selectorForAnnotation = ( cell, annotation) => {
let cellAttr = 'data-code-cell="' + cell + '"';
let lineAttr = 'data-code-annotation="' + annotation + '"';
const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
return selector;
}
const selectCodeLines = (annoteEl) => {
const doc = window.document;
const targetCell = annoteEl.getAttribute("data-target-cell");
const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
const lines = annoteSpan.getAttribute("data-code-lines").split(",");
const lineIds = lines.map((line) => {
return targetCell + "-" + line;
})
let top = null;
let height = null;
let parent = null;
if (lineIds.length > 0) {
//compute the position of the single el (top and bottom and make a div)
const el = window.document.getElementById(lineIds[0]);
top = el.offsetTop;
height = el.offsetHeight;
parent = el.parentElement.parentElement;
if (lineIds.length > 1) {
const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
const bottom = lastEl.offsetTop + lastEl.offsetHeight;
height = bottom - top;
}
if (top !== null && height !== null && parent !== null) {
// cook up a div (if necessary) and position it
let div = window.document.getElementById("code-annotation-line-highlight");
if (div === null) {
div = window.document.createElement("div");
div.setAttribute("id", "code-annotation-line-highlight");
div.style.position = 'absolute';
parent.appendChild(div);
}
div.style.top = top - 2 + "px";
div.style.height = height + 4 + "px";
div.style.left = 0;
let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
if (gutterDiv === null) {
gutterDiv = window.document.createElement("div");
gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
gutterDiv.style.position = 'absolute';
const codeCell = window.document.getElementById(targetCell);
const gutter = codeCell.querySelector('.code-annotation-gutter');
gutter.appendChild(gutterDiv);
}
gutterDiv.style.top = top - 2 + "px";
gutterDiv.style.height = height + 4 + "px";
}
selectedAnnoteEl = annoteEl;
}
};
const unselectCodeLines = () => {
const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
elementsIds.forEach((elId) => {
const div = window.document.getElementById(elId);
if (div) {
div.remove();
}
});
selectedAnnoteEl = undefined;
};
// Handle positioning of the toggle
window.addEventListener(
"resize",
throttle(() => {
elRect = undefined;
if (selectedAnnoteEl) {
selectCodeLines(selectedAnnoteEl);
}
}, 10)
);
function throttle(fn, ms) {
let throttle = false;
let timer;
return (...args) => {
if(!throttle) { // first call gets through
fn.apply(this, args);
throttle = true;
} else { // all the others get throttled
if(timer) clearTimeout(timer); // cancel #2
timer = setTimeout(() => {
fn.apply(this, args);
timer = throttle = false;
}, ms);
}
};
}
// Attach click handler to the DT
const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
for (const annoteDlNode of annoteDls) {
annoteDlNode.addEventListener('click', (event) => {
const clickedEl = event.target;
if (clickedEl !== selectedAnnoteEl) {
unselectCodeLines();
const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
if (activeEl) {
activeEl.classList.remove('code-annotation-active');
}
selectCodeLines(clickedEl);
clickedEl.classList.add('code-annotation-active');
} else {
// Unselect the line
unselectCodeLines();
clickedEl.classList.remove('code-annotation-active');
}
});
}
const findCites = (el) => {
const parentEl = el.parentElement;
if (parentEl) {
const cites = parentEl.dataset.cites;
if (cites) {
return {
el,
cites: cites.split(' ')
};
} else {
return findCites(el.parentElement)
}
} else {
return undefined;
}
};
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
for (var i=0; i<bibliorefs.length; i++) {
const ref = bibliorefs[i];
const citeInfo = findCites(ref);
if (citeInfo) {
tippyHover(citeInfo.el, function() {
var popup = window.document.createElement('div');
citeInfo.cites.forEach(function(cite) {
var citeDiv = window.document.createElement('div');
citeDiv.classList.add('hanging-indent');
citeDiv.classList.add('csl-entry');
var biblioDiv = window.document.getElementById('ref-' + cite);
if (biblioDiv) {
citeDiv.innerHTML = biblioDiv.innerHTML;
}
popup.appendChild(citeDiv);
});
return popup.innerHTML;
});
}
}
});
</script>
</div> <!-- /content -->
<script>var lightboxQuarto = GLightbox({"loop":false,"selector":".lightbox","descPosition":"bottom","openEffect":"zoom","closeEffect":"zoom"});
window.onload = () => {
lightboxQuarto.on('slide_before_load', (data) => {
const { slideIndex, slideNode, slideConfig, player, trigger } = data;
const href = trigger.getAttribute('href');
if (href !== null) {
const imgEl = window.document.querySelector(`a[href="${href}"] img`);
if (imgEl !== null) {
const srcAttr = imgEl.getAttribute("src");
if (srcAttr && srcAttr.startsWith("data:")) {
slideConfig.href = srcAttr;
}
}
}
});
lightboxQuarto.on('slide_after_load', (data) => {
const { slideIndex, slideNode, slideConfig, player, trigger } = data;
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(slideNode);
}
});
};
</script>
</body></html>