The study of the relation of an organism with its environment is called
Bionomics
The comprehensive study of an organism and its relation to its environment is called bionomics.
The study of interactions between species in communities is called synecology.
The branch of ecology dealing with the biological relationship between an individual organism or an individual species and its environment is called autecology.
The study of amphibians and reptiles is called herpetology.