Recently we wrote a guest blog post in Molecular Ecologist (with an online poll) to find out what folks think of solicited submissions based on preprints. See the link below and take the poll!
Our paper about using epidemiological techniques to better understand big cat attacks in Tanzania and India is now out in the Journal of Applied Ecology: https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/1365-2664.13311 …
This is one of the most rewarding papers I have been involved with (and my first last author paper!). Attacks on humans represent not only a public health concern but also a major conservation challenge to these species. We really wanted to know (i) if patterns of attacks were species-specific, and (ii) in what landscapes were clusters of attacks found in? To address these questions, we were able to assemble long-term man-eating attack data for leopards, lions and tigers from two continents and used spatio-temporal models to look for clusters of attacks in space and time. We found that lion clusters were larger, involved more human fatalities and occurred over longer periods of time compared to leopards and tigers. This possibly indicates that, as lions form social groups called prides, the idea of eating humans may be ‘transmitted’ amongst pride mates making attacks last longer. Most lions get killed post-attack so it is not the same individual committing all of the attacks. These attack clusters did not happen randomly in the landscape either with residential woodlands being particularly high risk for attack clusters. Tree loss was also important for lion attacks with attacks more common in areas with recent forest loss.
We hope that approaches such as this one can be used to better manage and understand attacks not just of these species, but others as well. We used SatScan to do the analysis and provide some easy to follow instructions that allow users to conduct this type of analysis themselves. Plus SatScan is freely available which is always good.
Big thanks to Craig Packer for getting the data together and making this happen.
Recently I had the pleasure to hang out with Matt Silk from the University of Exeter: https://biosciences.exeter.ac.uk/staff/index.php?web_id=Matthew_Silk
It was great chatting about badgers, puma and network models over a few beers. His work summarizing statistical network models in Methods in Ecology and Evolution is particularly useful (see below).
After reading this you’ll know what ERGMS, TERGMs, REMs & SAOMs are and how they can answer network/disease questions. The only potentially useful addition I can see is generalized dissimilarity models (GDMs) as a robust way to test for covariate effects on network structure (as I did in my JAE 2017 paper). Anyway, this paper is certainly a good starting point for entering the world of statistical network analysis.
Methods in Ecology and Evolution have put together a really exciting special issue on microbiome methods: https://besjournals.onlinelibrary.wiley.com/hub/microbiome.
I’ve read a few of these papers already and there are certainly some really useful ideas and methods here. At a glance, Creer et al’s field ecologists guide to microbial ecology seems particularly useful – looking forward to reading in more depth!
This year I was lucky enough to be awarded a NEON-ESA early career scholar award to help fund my first trip to ESA. I’ve been to large ecology conferences before, but I was particularly excited to expand my understanding of NEON (National Science Foundation’s National Ecological Observatory Network), meet some great ecologists and learn some new analytical tools. Still recovering from Jetlag (I had got too steamy New Orleans after 35 hours of travelling from Tasmania).
I was thrust into it at 8 am Sunday morning with a workshop on how to use generalized joint attribute modelling with Jim Clark. The flexibility of this tool and robust way it deals with messy community data makes it something I want to use on the microbiome data I’ve got coming in. For those interested, the vignette is super useful too: https://cran.rproject.org/web/packages/gjam/vignettes/gjamVignette.html.
Immediately following the GJAM workshop, we started a NEON focussed workshop on how to access and use NEON data. I was super impressed with just how integrated NEON is with R and how well documented the data is. I felt like you could get to know a particular location and precisely what data was collected there. From a disease ecology perspective, it is really exciting to have disease/microbiome data matched with extensive environmental data. The opportunities to ask continental-scale questions with fine resolution data are enormous. It was great to continue the discussion at a restaurant t after – NEON people are my type of people! Monday was another NEON-orientated day where we got to see what people have been doing with NEON data. I also got to meet Mike Kaspari which was great – I’ve been admiring his work for years.
The rest of my time at ESA was a haze of presenting my work on puma disease dynamics and going to as many disease ecology talks as possible. Two (and sometimes three) parallel disease ecology sessions were pretty neat. Our NSF puma project also had quite a few people presenting too – it was great to see all of this population genomic/disease ecology work coming together. Overall, it had been a huge week, but one that I hope will lead to exciting future collaborations!
Recently I have been working on massive long-term group-group networks for both the Serengeti lions and Yellowstone wolves. We have tracked territory size, average pack/pride size, the number (and strength) of between pack/pride contacts every year from 1971-until today. Basically a series of time series in which we want to know which one is dependent on which. Not being particularly familiar with time series analysis I didn’t know where to start.
After doing a heap of reading I decided that vector auto-regression was the way to go. Vector autoregression (VAR) are stochastic process models that capture linear dependencies between multivariate time series. Mostly used for economic forecasting, the method seems pretty robust and quite straightforward to implement in the R package ‘vars’. However, finding out all of the steps/assumptions required to run the model was tricky so here is my adapted code to fill the gap:
rm(list = ls())
data1 <- read.csv(“Data.csv”, head=T)
############detrend with regression#######################
m1 <- lm(model~0+Year, data=data1) #lm with no intercept
m1resid <- residuals(m1)
#make a datframe again
dataResid <- cbind(m1resid)
#make a ts object – Freq here is how many obs per year.
ts.obj <- ts(dataResid,frequency=1, start = 1997, end = 2016); str(ts.obj)
#test for the most appropriate lag for your data (eg., does a 2 year time lag best predict the next years connectivity.
VARselect(ts.obj, lag.max=3, type=”const”)$selection
# ‘p’ below is the the lag factor to test.
varLag1 <- VAR(ts.obj, p=1, type=”const”) #p is is the lag factor
#testing normality (has to be ‘insignificant’ at alpha 0.05 to trust the results)
serial.test(varLag1, lags.pt=10, type=”PT.asymptotic”)
arch.test(varLag1) #test for heteroskedasticity. Error terms are fine if p>0.05
roots(varLag1) #have to be under 1 to trust model results.
#extensive list of summary results.
#links nicely to the forcast package to predict the future
fcstL1 <- forecast(varLag1)
It was a great privilege to be highly commended for the Journal of Animal Ecology Elton Prize for outstanding papers by early career researchers. It also gave me an opportunity to write a blog about said paper which you can find here: https://journalofanimalecology.wordpress.com/2018/05/23/disease-ecology-the-lions-share/?platform=hootsuite
Adding animal silhouettes to figures seems to be increasingly on trend in ecology. I have no empirical evidence to back up this claim, but it seems like every article in a high impact journal has at least one figure that incorporates silhouettes of species. I too am guilty of adding them – I find them a useful visual tool, but in the past, I’ve had to create them myself using photoshop. No more! PhyloPic (http://www.phylopic.org/about/) provides an easy to search collection reusable silhouette images of organisms from beetles to dinosaurs.
Resources like this are truly great!
It’s increasingly recognized that multiparasitism (being infected by multiple parasites at the same time) is commonplace and what particular set of parasites you are infected with can have direct implications for health (and are interesting in their own right). However, quantifying the complex interactions between co-occurring parasites is tricky. For example, are the co-occurrence of particular parasites just related to age i.e. as you get older you simply accrue more infection? Or are the parasites (via the immune system) facilitating (or prohibiting) the invasion of others or is it another reason entirely? Answering these questions is important but choosing the appropriate analytical solution is a little daunting. Species co-occurrence patterns have been studied of other organisms for a long time so there are many approaches.
So what are the options? Broadly, I recognize three distinct approaches: 1. Network-based models. 2. Probabilistic models and 3. Joint species distribution models. Each I will talk a little bit about and point out briefly some pros and cons about each approach. See the resources below for links to some of the methods/papers that use the method.
Co-occurrence networks are networks of pathogens connected by edges (the connecting lines) which represent when those particular infections were sampled together. These methods look at the network structure by, for example, examining how connected certain pathogens are (i.e. degree) or by assessing which pathogens in the network cluster together more often than expected by chance (i.e. how modular the network is). Pros: relatively straightforward to analyze, a good way to view co-infection patterns (iGraph in R is great), not restricted to assessing just pairs of pathogens. Cons: difficult to overlay potentially confounding factors (e.g., age, but see the new and exciting MRFcov package from Nick Clark), hard to test for associations between pathogens across scales & difficult to incorporate trait or phylogenetic information.
Null and probabilistic models
Basically, these methods ask do two species co-occur more or less often by chance. There is a large number of methods in this category and much debate to how robust these methods are (see Gotelli 2000), but the Veech 2013 method is my favorite as its distribution free. Pros: Easy to interpret, fast to run with low error rates. Cons: Can only assess pairs (exception: the screening approach of Vaumorin but you have to have < 10 pathogens) and can’t control for confounding effects or test for associations between pathogens across scales, null models can have extreme Type I errors (see Harris, 2016) .
Joint distribution modeling
The last category and one I have used the most! Basically, this method quantifies the distribution of each parasite in your data to environmental (and host) variables using Bayesian hierarchical mixed modeling and then explores between-parasite relationships in the residual variation. There are nice packages in R to help you apply this approach (BORAL and HMSC are my favorites). Pros: Enables you to assess co-occurrence patterns after controlling for confounding factors and to assess these patterns easily across scales, they are flexible and can deal with parasite abundance data (i.e more than just presence/absence of a parasite) & you get useful niche models as a bonus. Also can easily incorporate parasite phylogenetic and functional trait data. Cons: an only assess pairs, &and it doesn’t provide coefficients for the strength of the co-occurrence patterns (just significantly different from zero).
Elise Vaumourin has a nice review article: https://parasitesandvectors.biomedcentral.com/articles/10.1186/s13071-015-1167-9
Interesting paper: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3973251/.
The Nick Clark MRFCov approach: https://github.com/nicholasjclark/MRFcov
Harris, 2016 for Markov networks: https://esajournals.onlinelibrary.wiley.com/doi/full/10.1002/ecy.1605
Probabilistic models – The Veech paper: http://ecology.wp.txstate.edu/files/2013/11/Veech_2013_GEB.pdf. Vaumourin et al (2014) https://www.ncbi.nlm.nih.gov/pubmed/24860791
Joint distribution modeling
Cool papers using the approach: https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/1365-2656.12708
The new Journal of Animal Ecology special issue focuses on animal host-microbe interactions (often in a disease context) looks like a must read. All the articles look interesting but there a few which particularly stand out . Most I’ve seen in preprint form but it is nice to see them all together. In no particular order:
Mihaljevic et al on parasite metacommunities – this looks like an interesting technique!
Keiser et al on queen presence and disease – ants are always interesting.
Raulo et al on social behaviour and gut microbiota.
Becker et al on resource provisioning and host traits in detrmining host-parasite interactions.
Looking forward to reading these articles and the others in more detail!