Phototoxicity of flavoprotein miniSOG induced by bioluminescence resonance energy transfer in genetically encoded system NanoLuc-miniSOG is comparable with its LED-excited phototoxicity.