add swap argument to getSingleCellExpression method