A semi-supervised approach for cell phenotypic and functional estimation in tissue microenvironment