I study pharmacy. Sometimes in pharmacy we use animals like rats and mouses to test things in the laboratory. It could be how much oxygen their cells produce. For this we would have to kill it and use its brain.
Is this halal?
Does any marja allow this?

No problem in doing so, as long this serves the science to save lives.