Modeling and analysis of ecological and epidemiological systems