public void Update(Individual sourceIndividual, Individual targetIndividual) { var sourceSpecies = sourceIndividual.Species; var targetSpecies = targetIndividual.Species; //Uses expression profile but not the same species. We show a warning if (sourceIndividual.AllExpressionProfiles().Any() && !Equals(sourceSpecies, targetSpecies)) { _dialogCreator.MessageBoxInfo(PKSimConstants.Warning.CannotUseExpressionProfilesDefinedForAnotherSpecies(sourceSpecies.DisplayName, targetSpecies.DisplayName)); return; } sourceIndividual.AllExpressionProfiles().Each(x => _moleculeExpressionTask.AddExpressionProfile(targetIndividual, x)); }
public void should_have_added_the_newly_created_expression_profile_as_reference_in_the_individual() { _individual.AllExpressionProfiles().ShouldContain(_expressionProfileEnzyme, _expressionProfileTransporter); }
public void should_have_added_the_newly_created_expression_profile_as_reference_in_the_individual() { _individual.AllExpressionProfiles().ShouldContain(_expressionProfileCYP3A4, _expressionProfileCYP2C8); }