Machine Learning Methods For The Analysis Of Single-Cell And Spatially Resolved Transcriptomics Data