Analysis of genetic signatures of tumor microenvironment yields insight into mechanisms of resistance to immunotherapy