Molecular basis of phenotypic plasticity in a marine ciliate