Added functionality to split by cell types in splitProjectsBy.