I'm sorry for your situation.Am a transgender woman in Nigeria my neighbor find out am trans on social media since then have been receiving death threats
My life is in danger
It's not possible for you to claim asylum in Canada from Nigeria.
You would need to obtain a TRV (tourist visa) to Canada, fly to Canada, and then claim asylum once you are here.