Introduction

According to the biological species concept, a ‘species’ is defined as one or more groups of interbreeding natural populations that are reproductively isolated from other such groups that occupy a specific ecological niche (Mayr 1942). In such a context, genetic information can be transmitted only within a species. For some reasons, this concept does not hold for fungi, which has been discussed by, e.g., Taylor et al. (2000) and Cai et al. (2011).

Although ecology as a biological discipline was formed on the basis of plant and animal studies, it is the uniqueness of fungal biology that can help to understand the complex ecological relationships. Some fungal characters are widely known and understood, while some others are still under discussion and yet to become widely studied. The hypha, with its unusual type of cell organization unknown among other living organisms, belongs to the former group, while among the latter, in fungi it is difficult to define an individual, which is a highly important character when comparing fungi and macroeukaryotes. Also, fungi are capable of performing anastomosis, the fusion of encountering vegetative hyphae, resulting in heterokaryosis, i.e., the advantage of having two genomes instead of a single one (Chagnon 2014; Strom and Bushley 2016). Furthermore, fungal reproduction is quite unusual. In contrast to plants and animals, the fungal nuclei can exchange DNA by parasexual processes resulting in increased variation in the genotype while avoiding the costs of sexual reproduction, as observed specifically in basidiomycetes. Parasexuality, primarily discovered for fungi (Pontecorvo 1956), is sharing with many microeukaryotes (Speijera et al. 2015; Sterkers et al. 2014; Weedall and Hall 2015; Tekle et al. 2014), but not with macroeukaryotes, so the results of fungal heterokaryosis have a greater impact on the environment. Parasexual processes are observed throughout the fungal kingdom. It has been confirmed to occur in different strains of a single species, e.g., Metarhizium strains inside individual insect hosts(Figueirêdo and Silva 2001). Heterokaryotic fungi produce spores which can be multikaryotic, i.e., those of Glomales and Entomophthorales (Chagnon 2014; Burnett 2003). In addition, the primary spores of some Entomophthorales give rise to secondary spores with diverse characteristics (Wieloch et al. 2004), while several different strains can be obtained from a single Mucor mucedo asexually produced sporangium (Burnett 2003). Thus, using methods and terms derived from animal ecology can be a questionable way of characterizing diversity of fungal communities and population sizes. The frequency of asexual reproduction and parasexual episodes often makes it difficult to define the boundaries not only for individuals but also for species. Resolving this with molecular tools is based on the detection of discontinuities rather than being specified by a fixed percentage of sequence similarity (Guo 2010).

One of the mechanisms that circumvent reproductive isolation is interspecific hybridization. Generally, hybridization can be treated as a sudden, dramatic increase in heterozygosity. In some cases, hybridization of pathogenic species has increased virulence, extended host ranges, and facilitated the occupation of new niches (Kroon et al. 2012). Hybridization is not always beneficial, though, as a newly established hybrid species may be affected by a strong population bottleneck, especially when the population size is small (Stukenbrock et al. 2011). Hybrids with increased virulence and extended host ranges can emerge rapidly as a consequence of human activity. Co-evolution of pathogens and plants has forced the latter to develop specific defense systems. The introduction of a hybrid pathogen to an environment interferes with pre-existing environmental balances, which may result in outbreak events (Brasier 2003, 2008).

The other essential issue is horizontal gene transfer (HGT). Horizontal transfer of functional genes and transposable elements between genomes of parasitic fungi and their hosts has already been documented for plant-associated species (Wijayawardena et al. 2013; Qiu et al. 2016), as well as for fungi and bacteria (Richards et al. 2011; Lacroix and Citovsky 2016). HGT is currently known to be more common than earlier assumed, as well as highly important in fungal evolution (Richards et al. 2011; Fitzpatrick 2012; Qiu et al. 2016). Many episodes of acceleration appear to have followed ecological shifts and the occupation of new environments (Lumbsch et al. 2008). Lutzoni and Pagel (1997) have demonstrated the case of accelerated evolution as a consequence of transition to mutualism.

Finally, an essential difference between fungi and other eukaryotes is the flexibility in shifting ecological status in the face of modifications of abiotic/biotic factors. At least a part of fungal plasticity can be explained by the acquisition of bacterial or eukaryotic genes, gene clusters or entire chromosomes, including supernumerary ones (Fitzpatrick 2012). This phenomenon is the best studied in the case of genes associated with fungal pathogenesis and virulence (Richards et al. 2011; Lacroix and Citovsky 2016; Qiu et al. 2016).

In this review, several examples of fungal plasticity in relation to other organisms are highlighted. At a larger, ecological scale they could be considered as manifestations of the buffering effect of fungi and their amazing ability to survive under varying conditions and to make maximum use of available niches. We specifically focus on the following issue: examples highlighting the role of fungi in the environment after unexpected changes of biotic and abiotic factors and fungi modifying their ecological status during ontogeny, as well as reciprocal relationships of fungi and prokaryotes/eukaryotes, including the adaptability driven by HGT.

Fungal associations with bacteria

Conventionally, lichens are well known as an example of dual mutualistic symbiosis involving fungal and photosynthetic partners. The intimate trait of a majority of lichen symbioses is the production of secondary metabolites with numerous biological roles, such as photoprotection, metal homeostasis, and pollution tolerance of lichen thalli (Molnár and Farkas 2010; Zedda and Rambold 2015). They also have allelochemical, antiviral, antibacterial, antiherbivoral, anti-oxidant, and antitumor properties. Although the nature of the relationships in lichens is still the subject of debate, it is widely accepted that it ranges from mutualism to controlled parasitism and changes dynamically over time (e.g., Ahmadjian and Jacobs 1981; Nash 1996; Richardson 1999). The definition of a lichen is further complicated by the presence of diverse, thallus-associated eukaryotic and prokaryotic entities (Zedda and Rambold 2015), including fungi (parasites, saprotrophs, and parasymbionts; Hawksworth 1982, 2015; Lawrey and Diederich 2003; Selbmann et al. 2013), non-symbiotic algae (diatoms; Lakatos et al. 2004), terrestrial and aquatic invertebrates (arthropods, nematodes, Alveolata, Metazoa, Rhizaria; Bates et al. 2012), protists (Šatkauskienė 2012), as well as bacterial communities (Bates et al. 2011; Aschenbrenner et al. 2016). Providing favorable conditions for other organisms, the lichen thallus appears to constitute an ecological niche (Hawksworth 1982) or even a miniature, intricate ecosystem (Aschenbrenner et al. 2016), as already postulated in the 1970s (Farrar 1976). Its complexity is further increased by the high variety of genotypes of eukaryotes and prokaryotes coexisting within a single species or even a single thallus. Although this phenomenon is known for myco- and photobionts, the level of genetic diversity is still largely unexplored, except for cyanobacteria (Zedda and Rambold 2015, and literature cited therein).

Most probably, lichen microbiomes are vertically transmitted together with vegetative propagules. It has been suggested that they receive a ‘bacterial starter community’ from parental symbiosis that partly differs in composition from the parental community present in parental symbiosis (Aschenbrenner et al. 2016). The role of those bacteria in nutrient supply, the biosynthesis of vitamins and hormones, and detoxification has been revealed in studies of Lobaria pulmonaria-associates. The lichen-associated bacteria also assist in the protection against stress of biotic (including pathogens) and abiotic (desiccation) origin (Cernava et al. 2015). Being a non-host-specific reservoir of bacteria, lichen symbiosis has been perceived as a source of both pathogenic and beneficial strains, including plant growth-promoting bacteria (Cernava et al. 2015; Aschenbrenner et al. 2016; Vilhelmsson et al. 2016). The question of wherever the lichen microbiomes may constitute a gene pool available for horizontal genetic exchange is still to be addressed.

Environmental plasticity of lichen-forming species is primarily reflected by the elementary ability to switch the fungal nutrition mode from saprotrophic to symbiotic. This was first confirmed by Wedin et al. (2004) for the Stictis–Conotrema complex from boreal aspen stands; the authors regarded such optional lichenization as an overlooked strategy in fungi which broadens the species ecological amplitude and facilitates the exploitation of different niches during ecosystem succession.

Lichen microbiome plasticity and its buffering effect on macro-ecosystems is based on niche-providing phenomena and the diversity and role of secondary metabolites, as well as HGT. Molecular studies suggest that the ancient episodes of gene transfer between fungi (donor) and algae (recipient) took place before the first events of lichen symbiosis (Beck et al. 2015). Additionally, it is hypothesized that such a gene exchange could have played a pre-dispositional role in the symbiosis origin (Beck et al. 2015). The great role of HGT is also emphasized in the evolution of ‘classical’ partners of the lichen symbiosis: cyanobacteria, green algae and fungi (Tunjič and Korač 2013). Separately evolving symbionts, adapting to environment and partners, may be advantageous for lichen symbiosis.

Bacteria-induced change in the ecological status of fungi was reported in the case of, e.g., the OryzaRhizopus–Burkholderia tripartite system by Partida-Martinez and Hertweck (2005). They demonstrated the pathogenic impact of various strains of common Rhizopus saprotrophs on rice seedlings caused by Burkholderia bacteria living inside the fungal hyphae. The recently disputed role of bacteria in the formation of Tuber ascocarps (Le Tacon et al. 2016) relies on bacterial help in the shifting of the nutrition mode of developing ascocarps from mycorrhizal to saprotrophic. The presence of prokaryotes in hyphae could be a common and powerful source of physiological variation.

Endophytes, invertebrates and winter desiccation

The unexpected changes in circadian air temperatures when the roots are still dormant might be the primary cause of the strong winter desiccation injury of whole Scots pine Pinus sylvestris branches. Tranquillini (1982) and Sierota et al. (1998) described how low (−1 °C and lower) or freezing temperatures can reduce or completely interrupt water transport from the roots, as well as injure needles, new shoots, and buds. The low temperatures interrupted the mechanisms of frost resistance, which was followed by damage to the cell membrane structure of the needles, which released sugars to protect thylakoids, as described by Santarius (1973). What is the role of fungi in this process?

This cold-based phenomenon appears to be simple, but it was complicated by the common presence of the endophytes Cenangium ferruginosum and Scoleconectria cucurbitula observed on a mass scale (Sierota et al. 1998). Both species had been isolated earlier by Kowalski (1982, 1993) and Kowalski and Zych (2002) from needles of Pinus nigra in industrial regions or from necrotic plant tissue of shoots with needles damaged by the gall midge Thecodiplosis brachyntera (Kowalski 1998). Increased nutrient levels (i.e., an excess supply of nutrients) had increased the “attractiveness” of needles for endophytes which then overcame the plants’ defense.

Symbiotic endophytes effectively switched to biotrophic, not parasitic, behavior. In the Scots pine case, frost was the destructive agent while fungi provided a buffering role. Low night temperatures and high day temperatures caused Pinus sylvestris destruction of tissues, and the available carbohydrates were utilized by endophytes. The presence of Pinus sylvestris European pine needle midge Contarinia (= Cecidomyia) baerii Prell. decreased with the increasing occurrence of non-systemic endophytic fungi (Sierota et al. 1998), which is in accordance with the findings of Clay (1987) regarding systemic, grass-associated endophytes and herbivores.

Minor changes in air temperature may result sometimes also in sudden and unpredictable collapse of invertebrate populations (Manion 1981). This may greatly influence animal population (size and density of mature insects or feeding larvae) because of the simultaneous increase of infestations by fungi, e.g., Beauveria bassiana (Jaworski and Hilszczañski 2013; Grodzki and Kosibowicz 2015). The progress of fungal infestation in the disease or decay process is determined by many factors, including susceptibility of a host, favorability of environmental conditions, and the period of time that has elapsed (White et al. 1996; Manion 1981; Hatcher and Paul 2001; Elliott et al. 2002).

Transcriptome studies in two time points should be performed to understand the dynamics of interaction between individuals, as proposed by Małagocka et al. (2015) for interactions between fungi and insects. Such an approach is desirable to understand the mechanisms of changes. Fungal endophytes are often commensals, but can also be mutualists that provide anti-insect resistance and are even considered an element of “acquired plant defenses” in cases of systemic endophytes (Cheplick et al. 1989; Clay 1991). Faeth and Fagan (2002) demonstrated the potentially negative effect of endophytes on hosts in nitrogen-rich environments with low risks of insect herbivory. Endophytes can produce extracellular oxidases and cause dieback of plant tissue (Butin and Kowalski 1992). Their presence has also been confirmed in dead tissue, the endophytes having passed from weak parasitism to a saprobic lifestyle. This is not the first example of a fungus switching its lifestyle. Phialocephala spp. are considered root endophytes and mutualists, but they are also observed on dead wood as saprotrophs (Pirttilä and Wäli 2009). Lee Sun et al. (2014) described the impact of Cenangium as endophyte and saprotroph on pines. Fungi with such changing lifestyles can be considered as “ecological regulators” or “ecological buffers”.

Individually, both insects and fungi can have harsh impacts on host plants, but together their deleterious effects are reduced (Hatcher 1995). Still, this insurance is a trade-off between benefits and losses.

Ambivalent role of fungi infecting arthropods

Many fungi are pathogens of pests (e.g., Brixey 1997; Fătu et al. 2015) but only a few have the potential to kill a wide spectrum of hosts. Entomopathogens with broad host ranges (generalists) exhibit relatively low virulence in comparison with specialists (Goettel 1995). The most specific fungal pathogens are within the Laboulbeniales order; some of these species are restricted to certain parts of the host’ carapace (Kaur and Mukerji 2006). This unusual specificity is surprising, but it may be explained by precise and unique modes of spore dispersal. A recent study by Konrad et al. (2015) demonstrated a potential advantage of infection by a specialized pathogen: resistance to a second, typically generalist fungus. Konrad et al. (2015) tested the effects of Laboulbenia formicarum infection on the invasive garden ant Lasius neglectus. The fitness consequences of this pathogen on its hosts were context-dependent, and even massive Laboulbenia infestations were beneficial during concurrent infections with another, lethal pathogen, namely Metarhizium brunneum. The fitness of ants parasitized by Laboulbenia decreased in starvation, but higher levels of Laboulbenia infection increased host survival under M. brunneum exposure. The benefits of Laboulbenia are probably due to stimulation of the immune system and an intensification of grooming behaviors. Konrad et al. (2015) also demonstrated that starvation of an insect host is a factor that can convert fungal commensals to weak pathogens.

The multifaceted Trichoderma

Trichoderma fungi (Hypocreales) are microorganisms regarded as antagonistic to many plant pathogens and used to induce resistance against them, and to reduce the severity of plant diseases in biological crop protection (Butt and Copping 2000; Chetan et al. 2014). Trichoderma asperellum, T. viride, T. harzianum, and T. atroviride are the main species used in biological preparations as effective bio-pesticides against pathogenic Fusarium, Pythium, Phytophthora, Alternaria, Sclerotinia, Botrytis, and others (Regliński et al. 2012; Minchin et al. 2012). Although their effectiveness has been confirmed (Sierota 1976; Howell 2006; Tucci et al. 2011; Patil et al. 2012), some authors (e.g., Kredics et al. 2003) dispute the unambiguous antagonistic properties of Trichoderma against pathogens. The role of the environmental context, such as the soil C:N ratio, the abundance of phosphorus and carbon, moisture level, pH, temperature, UV radiation, and the presence of other microorganisms is highlighted.

The mechanisms of competition with other organisms that are based on the production of harzianic acid, glovirin, alamenthicin, and other siderophores, as well as antibiotics and enzymes used by some Trichoderma species, rely on the colonization of free niches during the infection process. A plant immune system is induced (via both acquired and induced systemic resistance), as reported for plants experimentally conditioned with Trichoderma (Sobolewski et al. 2013). Metabolic activity of hypocrealean fungi is also referred to as an important component in the co-evolutionary transition between host and pathogen, during which Trichoderma assumes the role of ‘armed tenant’ (Bettiol and Morandi 2008).

The expansive colonization of physio-chemically diverse environments and resistance to toxic pesticides (including strategies to increase mycelium division and the transfer of the ABC transporter, even following exposure to sub-lethal doses of plant protection compounds) can evolve in extreme ecological niches of Trichoderma (Benítez et al. 2004; Harman et al. 2004). In addition, some Trichoderma species use mycorrhizal fungi as a gateway to colonize plant tissues, and therefore they are isolated as intercellular colonizers of plant roots. Trichoderma fungi are thus symbionts, but they fulfil this role as opportunists (Harman et al. 2004). The transition of these fungi from mutualism (biotrophy) to commensalism appears labile. Recent comparative genomic studies confirm the evolutionary changes in the lifestyle of Trichoderma species. The comparison of their gene pool with other pathogenic ascomycetes indicates that reciprocal transfer of genetic information and protein effectors was very likely. These horizontally transferred genetic elements could push nutrition from saprotrophic towards a more pathogenic mode by stimulating the host cell reactions (Druzhinina et al. 2011).

Trichoderma species can be interpreted as saprotrophs with strong ability of antagonistic interactions. The production of broad-spectrum enzymes and antibiotics conducive to their opportunistic nature facilitates its expansion within an environment.

Pathogenic fungus as a selection factor

The process of hybridization gives a powerful illustration of the buffering role of fungi. The hybrid poplar rust Melampsora × columbiana (M. medusae × M. occidentalis) replaced its progenitors as the dominant poplar pathogen and was a massive threat to poplar plantations in the United States in the 1980s. Compared to the hybrid, the progenitors were less virulent and had distinct host ranges. It is worth noting that poplar hybrid Populus deltoides × P. trichocarpa which were designedly bred to achieve resistance toward M. occidentalis, were infected with the newly emerged fungal hybrid, M. × columbiana. Symptoms of the diseases were also found earlier on both parental poplar species, P. deltoides and P. trichocarpa (Newcombe et al. 2000). If the poplars were not a cultivated species, the impact of fungal parasites in plant monocultures could be considered a restoration of the natural balance and the damage would have been negligible. In such a case, massive appearance of Melampsora hybrids on poplars could be treated as homeostasis recovery provided by the fungus that is restoring a more complex ecosystem in an area changed profoundly by human activity.

The fungus causing Dutch elm dieback that occurred twice in the past century in Europe is another example of hybridization of pathogenic species. For the first outbreak, the pathogenic ascomycete Ophiostoma ulmi was responsible (Gibbs 1978). In the 1940s, the second outbreak was caused by its more aggressive relative Ophiostoma novo-ulmi, which consists of two subtaxa: O. novo-ulmi subsp. novo-ulmi (Brasier 1979) and O. novo-ulmi subsp. americana (Brasier and Gibbs 1973). Both of these subspecies originated in Asia and were introduced into Europe by humans, most likely with the transport of infected elm logs. In the new territory, the previously isolated pathogens started to rapidly hybridize, and new O. novo-ulmi subsp. novo-ulmi × americana hybrid emerged. It had a high growth rate and virulence and until the end of 1980s it comprised about 80% of the total population of O. novo-ulmi (Brasier and Kirk 2010).

Adapting the species concept to include hybridization is a more general problem also, emphasized in cases of oomycotan fungal analogues (Husson et al. 2015). Recently, Husson et al. (2015) have described the hybridization between two subspecies with different ploidies and the appearance of a new hybrid subspecies. The authors found that the new hybrid DNA was equal to half the sum of the parental DNAs, but one parental genome was tetraploid while the second was diploid. The resulting hybrid is an allotriploid, containing half of the genome of each parental subspecies. Such a situation is far from common in breeding and demands both the use of new terms and a reconsideration of oomycete ecology.

Conclusions

The innate human need for systematization, categorization and classification of mechanisms governing nature and its components paradoxically biases the knowledge of nature functioning. Fungi, being extremely adaptive eukaryotes, are the prime example enabling one to realize that paradox. Within short time scales, we are restricted to the terms mutualist, pathogen, and commensal when describing fungi. However, it is unclear which environmental factors can shift a fungal pathogen to a mutualist or the converse. Moreover, the pathogen can improve the host fitness in the face of attack from another pathogen as revealed in the studies of Laboulbeniales fungi (Konrad et al. 2015). Also, recognition of Armillaria species as only pathogens is an oversimplification (Baumgartner et al. 2010; Marҫais and Wargo 2000) in the sense of distinguishing between the categorization of a given interaction. The ‘pigeonholing’ of an organism as, e.g., saprotrophic (including pyrophilic, commensalistic), biotrophic (including mutualistic, neutral, and diverse antagonistic relationships) might be convenient but is faulty in the case of an organism that is able to perform more than one such type of interaction. The ecology of the fungi is a real mine of examples of extended phenotypes (Dawkins 1989). Thus, the role of a fungus primarily referred to as a pathogen is not unambiguous. We emphasize the necessity to avoid simplifications while using terms standard in ecology, e.g., parasite, pathogen, mutualist, etc., as they are not valid for fungi which dynamically change their status. Instead, fungal function in symbiotic continuum should be stressed.

The multifaceted nature of fungi is still not completely clear, and without large environmental analyses and collaboration between researchers, the conclusions from future studies may also be strongly biased by both narrow perspectives and small time scales. At a long time scale, the stabilizing role of fungi in the environment can be observed or deduced. Fungi, as organisms which are exceptionally abundant in ecosystems, are likely to be drivers of natural restoration in disturbed biocoenoses. The flexible nature of fungi, their nuclear state, genetic properties, efficiency of new gene acquisition, and hyphal structure underlie theie high adaptive abilities and unique buffering status. They serve as environmental “special services” that may help to establish a new ecological balance after many types of disturbances.