You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
order=self.traverse_tree() ## order is a list of tips recovered from a tree traversal to make sure they're plotted in the correct order along the vertical tree dimension
drawn={} ## drawn keeps track of what's been drawn
379
+
forkinorder: ## iterate over tips
380
+
x=k.height## x position is height
381
+
y_idx=name_order[k.name] ## assign y index
382
+
y=sum(skips[y_idx:])-skips[y_idx]/2.0## sum across skips to find y position
383
+
384
+
k.x=x## set x and y coordinates
385
+
k.y=y
386
+
drawn[k.index]=None## remember that this objects has been drawn
387
+
388
+
ifpad_nodes!=None: ## will be padding nodes
389
+
forninpad_nodes: ## iterate over nodes whose descendants will be padded
390
+
idx=sorted([name_order[lf] forlfinn.leaves]) ifn.is_node() else [order.index(n)] ## indices of all tips to be padded
391
+
fori,kinenumerate(order): ## iterate over all tips
392
+
393
+
ifi<idx[0]: ## tip below clade
394
+
k.y+=pad_nodes[n] ## pad
395
+
396
+
if (i-1)<idx[-1]: ## tip above clade
397
+
k.y+=pad_nodes[n] ## pad again
398
+
399
+
all_ys=filter(None,self.getParameter('y')) ## get all y positions in tree that aren't None
400
+
minY=min(all_ys) ## get min
401
+
forkinself.getExternal(): ## reset y positions so tree starts at y=0.5
402
+
k.y-=minY-0.5
403
+
386
404
assertlen(self.getExternal())==len(order),'Number of tips in tree does not match number of unique tips, check if two or more collapsed clades were assigned the same name.'
387
405
storePlotted=0
388
-
drawn={} ## drawn keeps track of what's been drawn
406
+
389
407
whilelen(drawn)!=len(self.Objects): # keep drawing the tree until everything is drawn
minYrange=min([min(child.yRange) ifchild.branchType=='node'elsechild.yforchildink.children]) ## get lowest y coordinate across children
415
-
maxYrange=max([max(child.yRange) ifchild.branchType=='node'elsechild.yforchildink.children]) ## get highest y coordinate across children
416
-
setattr(k,'yRange',[minYrange,maxYrange]) ## assign the maximum extent of children's y coordinates
419
+
minYrange=min([min(child.yRange) ifchild.branchType=='node'elsechild.yforchildink.children]) ## get lowest y coordinate across children
420
+
maxYrange=max([max(child.yRange) ifchild.branchType=='node'elsechild.yforchildink.children]) ## get highest y coordinate across children
421
+
setattr(k,'yRange',[minYrange,maxYrange]) ## assign the maximum extent of children's y coordinates
417
422
418
423
iflen(self.Objects)>len(drawn):
419
-
assertlen(drawn)>storePlotted,'Got stuck trying to find y positions of objects (%d branches drawn this iteration, %d branches during previous iteration out of %d total)'%(len(drawn),storePlotted,len(self.Objects))
420
-
storePlotted=len(drawn)
421
-
self.ySpan=sum(skips)
424
+
assertlen(drawn)>storePlotted,'Got stuck trying to find y positions of objects (%d branches drawn this iteration, %d branches during previous iteration out of %d total)'%(len(drawn),storePlotted,len(tree.Objects))
425
+
storePlotted=len(drawn) ## remember how many branches were drawn this iteration
426
+
427
+
yvalues=[k.yforkinself.Objects] ## all y values
428
+
self.ySpan=max(yvalues)-min(yvalues)+min(yvalues)*2## determine appropriate y axis span of tree
422
429
423
430
ifself.root.branchType=='node':
424
431
self.root.x=min([q.x-q.lengthforqinself.root.childrenifq.x!=None]) ## set root x and y coordinates
Copy file name to clipboardExpand all lines: docs/publications.rst
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,18 +8,30 @@ Publications using baltic
8
8
9
9
baltic was used in the following publications:
10
10
11
-
- Miller D, Martin MA, Harel N, Kustin T, Tirosh O, Meir M, Sorek N, ..., Kopelman N, Huppert A, Koelle K, Stern A, 2020. _Full genome viral sequences inform patterns of SARS-CoV-2 spread into and within Israel, `medRxiv`: 2020.05.21.20104521; `doi <https://doi.org/10.1101/2020.05.21.20104521>`__.
11
+
- Muller N, Kunze M, ..., Zeitlmann N, and Corman VM, 2021. _Severe Acute Respiratory Syndrome Coronavirus 2 Outbreak Related to a Nightclub, Germany, 2020_, `Emerging Infectious Diseases` 27(2): 645-648; `doi <https://doi.org/10.3201/eid2702.204443>`__.
12
+
- Washington NL, Gangavarapu K, Zeller M, Bolze A, ..., Chiu C, Suchard MA, Lu JT, Lee W, Andersen KG, 2021. _Genomic epidemiology identifies emergence and rapid transmission of SARS-CoV-2 B.1.1.7 in the United States_, `medRxiv` 2021.02.06.21251159; `doi <https://doi.org/10.1101/2021.02.06.21251159>`__.
13
+
- Alpert T, Lasek-Nesselquist E, Brito AF, ..., Lauring AS, St. George K, MacCannell DR, Grubaugh ND, 2021. _Early introductions and community transmission of SARS-CoV-2 variant B.1.1.7 in the United States_, `medRxiv` 2021.02.10.21251540; `doi <https://doi.org/10.1101/2021.02.10.21251540>`__.
14
+
- Zeller M, Gangavarapu K, Anderson C, Smither AR, ..., Kamil JP, Garry RF, Suchard MA, Andersen KG, 2021. _Emergence of an early SARS-CoV-2 epidemic in the United States_, `medRxiv` 2021.02.05.21251235; `doi <https://doi.org/10.1101/2021.02.05.21251235>`__.
- Hodcroft EB, Domman DB, Oguntuyo K, ..., Cooper VS, Kamil JP, 2021. _Emergence in late 2020 of multiple lineages of SARS-CoV-2 Spike protein variants affecting amino acid position 677_, `medRxiv` 2021.02.12.21251658; `doi <https://doi.org/10.1101/2021.02.12.21251658>`__.
17
+
- Moreno GK, Braun KM, Riemersma KK, ..., Kawaoka Y, Koelle K, O’Connor DH, Friedrich TC, 2020. _Revealing fine-scale spatiotemporal differences in SARS-CoV-2 introduction and spread_, `Nature Communications` 11, 5558; `doi <https://doi.org/10.1038/s41467-020-19346-z>`__.
18
+
- Miller D, Martin MA, Harel N, Kustin T, Tirosh O, Meir M, Sorek N, ..., Kopelman N, Huppert A, Koelle K, Stern A, 2020. _Full genome viral sequences inform patterns of SARS-CoV-2 spread into and within Israel_, `Nature Communications` 11, 5518; `doi <https://doi.org/10.1038/s41467-020-19248-0>`__.
19
+
- Moncla LH, Black A, DeBolt C, Lang M, Graff NR, Perez-Osorio AC, Mueller NF, Haselow D, Lindquist S, Bedford T, 2020. _Repeated introductions and intensive community transmission fueled a mumps virus outbreak in Washington State_, `medRxiv`: 2020.10.19.20215442; `doi <https://doi.org/10.1101/2020.10.19.20215442>`__.
20
+
- Ladner JT, Larsen BB, Bowers JR, Hepp CM, ..., Worobey M, Keim P, 2020. _An Early Pandemic Analysis of SARS-CoV-2 Population Structure and Dynamics in Arizona_, `mBio` 11 (5): e02107-20; `doi <https://doi.org/10.1128/mBio.02107-20>`__.
21
+
- Brito AF, Lais Machado C, ..., da Fonseca BAL, Wallau GL, Grubaugh ND, 2020. _Lying in wait: the resurgence of dengue virus after the Zika epidemic in Brazil_, `medRxiv` 2020.08.10.20172247; `doi <https://doi.org/10.1101/2020.08.10.20172247>`__.
22
+
- Alm E, Broberg EK, Connor T, Hodcroft EB, Komissarov AB, Maurer-Stroh S, Melidou A, Neher RA, O’Toole Á,
23
+
- Pereyaslov D, 2020. _Geographical and temporal distribution of SARS-CoV-2 clades in the WHO European Region, January to June 2020_, `Euro Surveillance` 25(32):pii=2001410; `doi <https://doi.org/10.2807/1560-7917.ES.2020.25.32.2001410>`__.
12
24
- Pawestri HA, Nugraha AA, Han AX, Pratiwi E, Parker E, Richard M, van der Vliet S, Fouchier RAM, Muljono DH, de Jong MD, Setiawaty V, Eggink D, 2020. _Genetic and antigenic characterization of influenza A/H5N1 viruses isolated from patients in Indonesia, 2008–2015. `Virus Genes` 56(4): 417-429. `doi <https://doi.org/10.1007/s11262-020-01765-1>`__.
13
-
- Ladner JT, Larsen BB, Bowers JR, Hepp CM, ..., Worobey M, Keim P, 2020. _Defining the Pandemic at the State Level: Sequence-Based Epidemiology of the SARS-CoV-2 virus by the Arizona COVID-19 Genomics Union (ACGU), __medRxiv__: 2020.05.08.20095935; `doi <https://doi.org/10.1101/2020.05.08.20095935>`__.
14
25
- Sikkema RS, Pas S, Nieuwenhuijse DF, O'Toole A, ..., Munnink BBO, Kluytmans M, Koopmans MPG, 2020. _COVID-19 in health-care workers in three hospitals in the south of the Netherlands: a cross-sectional study, `Lancet Infect Dis`; `doi <https://doi.org/10.1016/S1473-3099(20)30527-2>`__.
15
26
- Munnink BBO, Nieuwenhuijse DF, Stein M, O'Toole A, Haverkarte M, ..., Meijer A, Rambaut A, van Dissel J, Sikkema R, Timen A, Koopmans M, 2020. _Rapid SARS-CoV-2 whole genome sequencing for informed public health decision making in the Netherlands, `Nature Medicine`; `doi <https://doi.org/10.1038/s41591-020-0997-y>`__.
16
27
- Müller NF, Stolz U, Dudas G, Stadler T, Vaughan TG, 2020. _Bayesian inference of reassortment networks reveals fitness benefits of reassortment in human influenza viruses, `PNAS`: 117 (29) 17104-17111; `doi <https://doi.org/10.1073/pnas.1918304117>`__.
17
28
- Venkatesh D, Brouwer A, Ellis R, Goujgoulova G, Seekings J, Brown IH, Lewis NS, 2020. _Regional transmission and reassortment of 2.3.4.4b highly pathogenic avian influenza (HPAI) viruses in Bulgarian poultry 2017/18, `Viruses` 12(6): 605; `doi <https://dx.doi.org/10.3390/v12060605>`__.
18
29
- Suárez-Esquivel M, Hernández-Mora G, Ruiz-Villalobos N, ..., Thomson NR, Moreno E, Guzmán-Verri C, 2020. _Persistence of Brucella abortus lineages revealed by genomic characterization and phylodynamic analysis, `PLOS Neglected Tropical Diseases` 14(4): e0008235; `doi <https://doi.org/10.1371/journal.pntd.0008235>`__.
19
30
- Moncla LH, Bedford T, Dussart P, ..., Guan Y, Friedrich TC, Horwood PF, 2020. _Quantifying within-host evolution of H5N1 influenza in humans and poultry in Cambodia, `PLOS Pathogens` 16(1): e1008191; `doi <https://doi.org/10.1371/journal.ppat.1008191>`__.
20
31
- Dudas G, Bedford T, 2020. The ability of single genes vs full genomes to resolve time and space in outbreak analysis. `BMC Evolutionary Biology` 19, 232; `doi <https://doi.org/10.1186/s12862-019-1567-0>`__.
21
-
- Wiley R, Fakoli L, Letizia AG, Welch SR, Ladner JT, Albariño CG, Fallah M, Palacios G, 2019. _Lassa virus circulating in Liberia: a retrospective genomic characterisation, `Lancet Infect Dis`
- Theys K, Lemey P, Vandamme AM, Baele G, 2019. _Advances in Visualization Tools for Phylogenomic and Phylodynamic Studies of Viral Diseases, `Front. Public Health`, 7: 208; `doi <https://doi.org/10.3389/fpubh.2019.00208>`__.
34
+
- Grubaugh ND, Saraf S, Gangavarapu K, Watts A, ..., Isern S, Michael SF, Andersen KG, 2019. _Travel Surveillance and Genomics Uncover a Hidden Zika Outbreak during the Waning Epidemic_. `Cell` 178(5): 1057-1071; `doi <https://doi.org/10.1016/j.cell.2019.07.018>`__.
23
35
- Müller NF, Dudas G, Stadler T, 2019. _Inferring time-dependent migration and coalescence patterns from genetic sequence and predictor data in structured populations, `Virus Evolution`, 5(2): vez030; `doi <https://doi.org/10.1093/ve/vez030>`__.
24
36
- Mbala-Kingebeni P, Aziza A, Di Paola N, Wiley MR, ..., Peeters M, Palacios G, Ahuka-Mundeke S, 2019. _Medical countermeasures during the 2018 Ebola virus disease outbreak in the North Kivu and Ituri Provinces of the Democratic Republic of the Congo: a rapid genomic assessment, `Lancet Infect Dis` 19(6): 648-657; `doi <https://doi.org/10.1016/S1473-3099(19)30118-5>`__.
25
37
- Work TM, Dagenais J, Stacy BA, Ladner JT, ..., Rameyer RA, Taylor DR, Waltzek TB, 2019. _A novel host-adapted strain of Salmonella Typhimurium causes renal disease in olive ridley turtles (Lepidochelys olivacea) in the Pacific, `Scientific Reports` 9: 9313; `doi <https://doi.org/10.1038/s41598-019-45752-5>`__.
0 commit comments