Domain adaptation in small-scale and heterogeneous biological datasets