Megaselia nigra is a species of scuttle fly (also called hump-backed flies) in the family Phoridae. Megaselia species are common pests of mushroom cultivation, attracted by the aroma of developing fungal mycelium. The larvae feed on the developing mycelium of the mushroom, ultimately damaging both the mycelium and gill tissues.Johal and Disney. 1994. https://www.cambridge.org/core/journals/bulletin-of-entomological-research/article/phoridae-diptera-as-pests-of-cultivated-oyster-mushrooms-agaricales-pleurotaceae-in-india/A359F7DB172139D00414524C179AE7D3
Megaselia nigra can be infected by the symbiotic bacteria Spiroplasma, which may protect its fly host from attack by parasites.Ballinger et al. 2018. https://academic.oup.com/gbe/advance-article/doi/10.1093/gbe/evy272/5255877
See also
Megaselia halterata Megaselia scalaris
References