-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathPKSimConstants.cs
More file actions
2589 lines (2216 loc) · 175 KB
/
PKSimConstants.cs
File metadata and controls
2589 lines (2216 loc) · 175 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OSPSuite.Assets.Extensions;
using OSPSuite.Core.Domain;
using OSPSuite.Utility.Extensions;
namespace PKSim.Assets
{
public static class PKSimConstants
{
public static class Warning
{
public const string RenalAndGFRSelected = "Renal plasma clearance should not be used in conjunction with GFR";
public const string HepaticAndSpecific = "Using hepatic plasma clearance in conjunction with metabolism processes might lead to more clearance than expected";
public const string ThisItNotATemplateBuildingBlock = "This is not the template building block!";
public const string FractionAbsorbedAndEHC = "Please note that, e.g. in the case of enterohepatic circulation, the calculated fraction of dose absorbed may exceed 1";
public const string BioAvailabilityAndFractionAbsorbed = "For proper calculation of the AUCinf (PO) it is recommended to simulate as long as total gastrointestinal transit takes.";
public const string PopulationFileFormatIsNotSupported = "Population file format is not supported.";
public const string InhibitorClearanceMustBeDefinedSeparately = "Please note that for the mechanism-based inactivator no clearance process is defined via the inactivation process by default. In theory, for every inactivated target molecule, also one inactivator molecule is cleared; this must be separately defined by the user in form of additional clearance processes for the inhibitor.";
public const string FractionAbsorbedSmallerThanOne = "Absorption seems to be incomplete or absorption process is not finished. Vd, Vss (or Vd/F and Vss/F), t1/2, MRT and AUC_inf should be compared with respective PK-parameters from an IV simulation.";
public const string ExpressionParametersWillBeReset = "Some expression values will be reset. Do you want to continue?";
public static string SystemicProcessAvailableInCompoundButWasNotSelected(string systemicProcessType)
{
return $"{systemicProcessType} is available in compound but was not activated.";
}
public static string ProteinAvailableButProcessNotSelected(string name) => $"No compound process selected for protein '{name}'.";
public static string NoTransporterTemplateFoundForTransporter(string transporterName, string transportType)
{
return $"The transporter '{transporterName}' was not found in the database. The transport direction is therefore set to the default setting '{transportType}'";
}
public static string ParameterWithPathNotFoundInBaseIndividual(string parameterPath) => $"Parameter '{parameterPath}' was not found in individual and will be ignored.";
public static string PKParameterAlreadyExistsAndWillBeOverwritten(string name, string quantityPath)
{
return $"PK-Parameter '{name}' for output '{quantityPath}' already exists in simulation and will be overwritten.";
}
public static string DerivedFieldWasSavedForAnotherField(string referencedFieldName, string dataField)
{
return $"Grouping field was defined for '{referencedFieldName}'. However you are trying to use it for '{dataField}'. Do you want to continue?";
}
public static string ParameterPathNotFoundInSimulationAndWillBeIgnored(string parameterPath) => $"Parameter '{parameterPath}' was not found in simulation and will be ignored";
public static string MissingSimulationParametersWereOverwritten(IEnumerable<string> missingParameters)
{
return $"These parameters were changed by the user. Because of a simulation reconfiguration, they will not be used for this simulation:\n\n{missingParameters.ToString("\n")}";
}
public static string StaticInhibitionRemovedFromApplication(string description)
{
var sb = new StringBuilder("WARNING: Static inhibition was removed with version 5.6 of the software. This process was converted automatically to a non inhibition process.");
sb.AppendLine();
sb.AppendLine();
sb.AppendLine(description);
return sb.ToString();
}
public static string StaticInhibitionRemovedFromSimulationMapping(IEnumerable<string> processes)
{
var sb = new StringBuilder("WARNING: Static inhibition was removed with version 5.6 of the software. The following process(es) won't be used when cloning or configuring the simulation.\n");
sb.AppendLine();
sb.AppendLine(processes.ToString("\n"));
sb.AppendLine();
sb.AppendLine("Please check/adjust process mapping in the PROCESSES Tab of the Clone/Configure dialog if needed.");
return sb.ToString();
}
public static string UnitNotFoundInDimensionForParameter(string unit, string dimension, string parameterName)
{
return $"Unit '{unit}' not found for parameter {parameterName} with dimension '{dimension}'";
}
public static string CannotUseExpressionProfilesDefinedForAnotherSpecies(string sourceIndividualSpecies, string targetIndividualSpecies)
{
return $"Expression profiles defined for '{sourceIndividualSpecies}' cannot be used for '{targetIndividualSpecies}' and will be removed.";
}
public static string ParameterRangeNotFoundInPopulation(string parameterName) => $"Parameter range '{parameterName}' was not found in population.";
}
public static class Command
{
public static readonly string CommandTypeConfigure = OSPSuite.Assets.Command.CommandTypeConfigure;
public static readonly string CommandTypeAdd = OSPSuite.Assets.Command.CommandTypeAdd;
public static readonly string CommandTypeEdit = OSPSuite.Assets.Command.CommandTypeEdit;
public static readonly string CommandTypeUpdate = OSPSuite.Assets.Command.CommandTypeUpdate;
public static readonly string CommandTypeDelete = OSPSuite.Assets.Command.CommandTypeDelete;
public static readonly string CommandTypeSwap = OSPSuite.Assets.Command.CommandTypeSwap;
public static readonly string CommandTypeReset = OSPSuite.Assets.Command.CommandTypeReset;
public static readonly string CommandTypeScale = "Scale";
public static readonly string ConfigureSimulationDescription = "Configure simulation";
public static readonly string ResetParametersDescription = "Reset parameters to their default values.";
public static string ScaleParametersDescription(double factor) => $"Scaling parameters with factor '{factor}'.";
public static readonly string SetParameterValueAndDisplayUnitDescription = "Value and unit updated for parameter.";
public static readonly string SetPercentileValueDescription = "Percentile of parameter '{0}' set from '{1}' to '{2}.";
public static readonly string SetParameterFormulaDescription = "Formula of parameter '{0}' was set.";
public static readonly string UpdateTableParameterFormula = "Table formula of parameter '{0}' was updated.";
public static readonly string CreateCompoundDescription = "Create and add compound to project";
public static readonly string UpdateBuildingBlockInfoCommandDescription = "Building block info updated in simulation.";
public static readonly string SetUsedBuildingBlockAlteredFlagCommandDescription = "Set altered flag for {0} '{1}' to {2} in simulation '{3}'";
public static readonly string SetUsedBuildingBlockVersionCommandDescription = "Set version for {0} '{1}' to {2} in simulation '{3}'";
public static readonly string PerformScalingDescription = "Scaling individual parameters";
public static readonly string CreateIndividualDescripton = "Create and add individual to project";
public static readonly string CreateBuildingBlockDescripton = "Create and add {0} to project";
public static readonly string CreateAdministrationProtocolDescripton = "Create and add administration protocol to project";
public static readonly string CreateFormulationDescription = "Create and add formulation to project";
public static readonly string CreateSimulationDescription = "Create and add simulation to project";
public static string SetSimpleProtocolDosingIntervalDescription(string oldDosingInterval, string newDosingInterval) => $"Dosing interval changed from '{oldDosingInterval}' to '{newDosingInterval}'";
public static string RenameEnzymeInPartialProcess(string processName, string name) => $"Enzyme name in process '{processName}' set to '{name}'";
public static string CloneEntity(string type, string sourceName, string cloneName) => $"Cloning {type} '{sourceName}' to '{cloneName}'";
public static readonly string AddSimulationIntervalToSimulationOutputDescription = "Output interval added to simulation output.";
public static readonly string RemoveSimulationIntervalFromSimulationOutputDescription = "Output interval removed from simulation output.";
public static readonly string ObservedDataDeletedFromProject = "Observed data deleted from project";
public static readonly string MetaDataAddedToDataRepositories = "Meta Data added to multiple repositories";
public static readonly string MetaDataRemovedFromDataRepositories = "Meta Data removed from multiple repositories";
public static readonly string MetaDataModifiedInDataRepositories = "Meta Data modified in multiple repositories";
public static readonly string ChartTemplate = "Chart Template";
public static string ProtocolModeChangingFrom(string oldProtocol, string newProtocol) => $"Protocol mode changing from '{oldProtocol}' to '{newProtocol}'";
public static string ProtocolModeChangedFrom(string oldProtocol, string newProtocol) => $"Protocol mode changed from '{oldProtocol}' to '{newProtocol}'";
public static string SetProtocolModeCommandDescription(string oldProtocol, string newProtocol) => $"Set administration protocol mode from '{oldProtocol}' to '{newProtocol}'";
public static string ObjectsDeletedFromProject(string objectType)
{
return $"{objectType.Pluralize()} deleted from project";
}
public static string SetPopulationSimulationResultsCommandDescription(string simulationName)
{
return $"Simulation results imported in simulation '{simulationName}'.";
}
public static string AddPKAnalysesToSimulationCommandDescription(string simulationName, string fileName)
{
return $"PK-Analyses imported in simulation '{simulationName}' from file '{fileName}'.";
}
public static string SetParameterValueDescription(string parameterName, string oldValue, string newValue)
{
return $"Value of parameter '{parameterName}' set from '{oldValue}' to '{newValue}'.";
}
public static string ResetParameterValueDescription(string parameterName, string oldValue, string newValue)
{
return $"Parameter '{parameterName}' reset from '{oldValue}' to '{newValue}'.";
}
public static string ScaleIndividualDescription(string originIndividual, string newIndividual)
{
return $"Scaling individual '{originIndividual}' to '{newIndividual}'";
}
public static string SetCompoundTypeParameterDescription(string parameterName, string oldType, string newType)
{
return $"'{parameterName}' set from '{oldType}' to '{newType}'.";
}
public static string SwitchAdvancedParameterDistributionTypeDescription(string parameterName, string oldType, string newType)
{
return $"Change distribution type for parameter '{parameterName}' from '{oldType}' to '{newType}'";
}
public static string RenameMoleculeInPartialProcessesCommandDescription(string moleculeName)
{
return $"Rename molecule '{moleculeName}";
}
public static string RenameEntityCommandDescripiton(string objectType, string oldName, string newName)
{
return $"{objectType} '{oldName}' renamed to '{newName}'.";
}
public static string UpdateUsedBuildingBlockParameterCommandDescription(string buildingBlockName, string buildingBlockType, string simulationName)
{
return string.Format("Update {0} parameters in simulation '{1}' from {0} '{2}'", buildingBlockType.ToLower(), simulationName, buildingBlockName);
}
public static string UpdateTemplateParameterCommandDescription(string buildingBlockName, string buildingBlockType, string simulationName)
{
return string.Format("Update {0} '{1}' from {0} parameters in simulation '{2}'", buildingBlockType.ToLower(), buildingBlockName, simulationName);
}
public static string SetParameterUnitDescription(string parameterName, string value, string oldUnit, string newUnit)
{
return string.Format("Value of parameter '{0}' set from '{1} {2}' to '{1} {3}'.", parameterName, value, oldUnit, newUnit);
}
public static string SetParameterDisplayUnitDescription(string parameterName, string oldUnit, string newUnit)
{
return $"Display unit of parameter '{parameterName}' set from '{oldUnit}' to '{newUnit}'.";
}
public static string SetApplicationSchemaItemApplicationTypeDescription(string oldApplicationType, string newApplicationType)
{
return $"Administration type changed from '{oldApplicationType}' to '{newApplicationType}'";
}
public static string SetApplicationSchemaItemFormulationKeyDescription(string oldFormulaKey, string newFormulaKey)
{
if (string.IsNullOrEmpty(newFormulaKey))
return $"Removing formulation {oldFormulaKey}";
if (string.IsNullOrEmpty(oldFormulaKey))
return $"Setting formulation to {newFormulaKey}";
return $"Formulation name changed from '{oldFormulaKey}' to '{newFormulaKey}'";
}
public static string SetApplicationSchemaItemTargetCompartment(string oldTargetCompartment, string newTargetCompartment)
{
return $"Target compartment changed from '{oldTargetCompartment}' to '{newTargetCompartment}'";
}
public static string SetApplicationSchemaItemTargetOrgan(string oldTargetOrgan, string newTargetOrgan)
{
return $"Target organ changed from '{oldTargetOrgan}' to '{newTargetOrgan}'";
}
public static string SwapBuildingCommandDescription(string buildingBlockType, string buildingBlockName)
{
return $"Update {buildingBlockType} '{buildingBlockName}'";
}
public static string UpdateBuildingBlockCommandDescription(string buildingBlockType, string buildingBlockName, string simulationName)
{
return $"{buildingBlockType} '{buildingBlockName}' updated in simulation '{simulationName}'.";
}
public static string UpdateTemplateBuildingBlockCommandDescription(string buildingBlockType, string buildingBlockName, string simulationName)
{
return $"{buildingBlockType} '{buildingBlockName}' updated from simulation '{simulationName}'.";
}
public static string EditEntityDescriptionCommandDescripiton(string entityType, string entityName)
{
return $"Description updated for {entityType} '{entityName}'";
}
public static string SwitchPartialProcessKineticType(string oldKinetic, string newKinetic)
{
return $"Switch kinetic from '{oldKinetic}' to '{newKinetic}'";
}
public static string SetSpeciesInSpeciesDependentEntityDescription(string objectType, string name, string oldSpecies, string newSpecies)
{
return $"Species in {objectType} '{name}' was set from '{oldSpecies}' to '{newSpecies}'";
}
public static string SetDefaultAlternativeParameterDescription(string groupDisplayName, string oldDefaultAlternative, string newDefaultAlternative)
{
return $"Default alternative for {groupDisplayName} was set from '{oldDefaultAlternative}' to '{newDefaultAlternative}'";
}
public static string AddCompoundParameterGroupAlternativeDescription(string alternativeName, string groupName)
{
return AddEntityToContainer(ObjectTypes.ParameterGroupAlternative, alternativeName, ObjectTypes.ParameterGroup, groupName);
}
public static string RemoveCompoundParameterGroupAlternativeDescription(string alternativeName, string groupName)
{
return RemoveEntityFromContainer(ObjectTypes.ParameterGroupAlternative, alternativeName, ObjectTypes.ParameterGroup, groupName);
}
public static string AddEntityToContainer(string entityType, string entityName, string containerType, string containerName)
{
var lowerEntityType = string.IsNullOrEmpty(entityType) ? entityType : entityType.ToLower();
var lowerContainerType = string.IsNullOrEmpty(containerType) ? containerType : containerType.ToLower();
return $"Add {lowerEntityType} '{entityName}' to {lowerContainerType} '{containerName}'";
}
public static string RemoveEntityFromContainer(string entityType, string entityName, string containerType, string containerName)
{
var lowerEntityType = string.IsNullOrEmpty(entityType) ? entityType : entityType.ToLower();
var lowerContainerType = string.IsNullOrEmpty(containerType) ? containerType : containerType.ToLower();
return $"Delete {lowerEntityType} '{entityName}' from {lowerContainerType} '{containerName}'";
}
public static string SetOntogenyInProteinDescription(string individualName, string proteinName, string oldOntogeny, string newOntogeny)
{
return string.Format("Set ontogeny for protein '{1}' in individual '{0}' from '{2}' to '{3}'", individualName, proteinName, oldOntogeny, newOntogeny);
}
public static string SetTransportTypeCommandDescription(string transporterName, string oldTransporterType, string newTransporterType)
{
return $"Transporter type for '{transporterName}' was changed from '{oldTransporterType}' to '{newTransporterType}'";
}
public static string SetTransportDirectionCommandDescription(string transporterName, string containerName, string oldTransportDirection, string newTransportDirection)
{
return $"Transport direction for '{transporterName}' in '{containerName}' was changed from '{oldTransportDirection}' to '{newTransportDirection}'";
}
public static string SetCompartmentTypeInAllContainerCommandDescription(string proteinName, string oldCompartmentName, string newCompartmentName)
{
return $"Compartment set for '{proteinName}' from '{oldCompartmentName}' to '{newCompartmentName}'";
}
public static string SetProteinMembraneLocationDescription(string oldMembraneLocation, string newMembraneLocation)
{
return $"Set protein membrane location from '{oldMembraneLocation}' to '{newMembraneLocation}'";
}
public static string SetProteinTissueLocationDescription(string oldTissueLocation, string newTissueLocation)
{
return $"Set protein tissue location from '{oldTissueLocation}' to '{newTissueLocation}'";
}
public static string RunSimulationDescription(string simulationName, string formattedTime)
{
return $"Run simulation '{simulationName}' in {formattedTime}";
}
public static string ObjectConvertedDescription(string buildingBlockName, string buildingBlockType, string fromVersion, string toVersion)
{
return string.Format("{1} '{0}' converted from version '{2}' to version '{3}'", buildingBlockName, buildingBlockType, fromVersion, toVersion);
}
public static string ProjectRenamedDescription(string oldName, string newName)
{
return RenameEntityCommandDescripiton(ObjectTypes.Project, oldName, newName);
}
public static string ProjectConvertedFrom(string projectFile)
{
return $"Project converted from '{projectFile}'";
}
public static string SetMetaboliteForProcess(string metaboliteName, string processName, string oldMetaboliteName)
{
if (!string.IsNullOrEmpty(oldMetaboliteName))
return $"Changing metabolite for process '{processName}' from '{oldMetaboliteName}' to '{metaboliteName}'";
return $"Adding metabolite '{metaboliteName}' to process '{processName}'";
}
public static string SetCalculationMethodFor(string entityName, string oldCalculationName, string newCalculationName)
{
return $"Changing calculation method for {entityName} from {oldCalculationName} to {newCalculationName}";
}
public static string AddChartTemplateToSimulation(string templateName, string simulationName)
{
return $"Adding template '{templateName}' to '{simulationName}'";
}
public static string RemoveChartTemplateFromSimulation(string templateName, string simulationName)
{
return $"Removing template '{templateName}' from '{simulationName}'";
}
public static string EditChartTemplatesFor(string simulationName)
{
return $"Editing templates in simulation '{simulationName}'";
}
public static string UpdateChartTemplate(string templateName, string simulationName)
{
return $"Updating chart template '{templateName}' in simulation '{simulationName}'";
}
public static string AddDefaultVariabilityToPopulation(string populationName)
{
return $"Add known molecule variability to molecules defined in '{populationName}'";
}
public static string RemoveAdvancedParametersForMoleculeInPopulation(string moleculeName, string populationName)
{
return $"Remove advanced parameters defined for molecule '{moleculeName}' in population '{populationName}'";
}
public static string ExtractingIndividualsDescription(string populationName)
{
return $"Extracting individuals from population '{populationName}'";
}
public static string SetParameterDefaultStateFrom(string parameterDisplayName, bool oldIsDefault, bool newIsDefault)
{
return $"Updating default state for '{parameterDisplayName}' from {oldIsDefault} to {newIsDefault}";
}
public static string LoadProjectFromSnapshotDescription(string snapshotFile, string version, string snapshotVersion)
{
return $"Project loaded from snapshot file '{snapshotFile}' which was created with version {snapshotVersion}. Project version is now {version}.";
}
}
public static class Error
{
public const string ValueIsRequired = "Value is required.";
public const string DescriptionIsRequired = "Description is required.";
public const string UnknownObserverBuilderType = "Observer builer type unknown.";
public const string AProjectSnapshotShouldOnlyContainOneSimuilationWhenUsedToRebuildAModule = "A project snapshot should only contain one simulation when used to rebuild a module";
public static string UnableToCreateIndividual(string constraints) => $"Could not create individuals with given constraint:\n{constraints}";
public static string UnableToCreatePopulation(string constraints) => $"Could not create population with given constraint:\n{constraints}";
public const string FactorShouldBeBiggerThanZero = "Factor should be bigger than 0.";
public const string UnableToCreateInstanceOfShell = "Unable to create an instance of the shell.";
public static string DistributionNotFound(string entityName, string data) => $"Cannot create distribution for '{entityName}' with the following data:\n{data}";
public static string DistributionUnknown(string distribution) => $"Distribution '{distribution}' is unknown.";
public const string NameIsRequired = "Name is required.";
public const string MoleculeIsRequired = "Molecule is required.";
public static readonly string CategoryIsRequired = $"{UI.ExpressionProfileCategory} is required.";
public const string SpeciesIsRequired = "Species is required.";
public const string DataSourceIsRequired = "Data source is required.";
public static string ProteinExpressionFactoryNotFound(string enzymeType) => $"Cannot retrieve enzyme expression factory for enzyme type '{enzymeType}'.";
public const string RenameSameNameError = "The new name is the same as the original one.";
public const string NoBuildingBlockTemplateSelected = "No template selected.";
public static string CannotCreateContainerOfType(string type) => $"Cannot create container of type '{type}'.";
public static string UnknownUsageInIndividualFlag(string flag) => $"'{flag}' is not valid flag for 'Usage in individual'.";
public static string CompoundParameterSelectionNeededFor(string parameterName) => $"Compound parameter selection is required for '{parameterName}'.";
public const string ContainerPathIsEmpty = "Given container path is empty.";
public const string CannotDeleteSchemaItem = "At least one schema item needs to be defined.";
public const string CannotDeleteSimulationInterval = "At least one interval needs to be defined.";
public const string CannotDeleteSchema = "At least one schema needs to be defined.";
public const string CannotDeleteDefaultParameterAlternative = "The default parameter alternative cannot be deleted.";
public const string CannotDeleteParameterAlternative = "At least one alternative needs to be defined.";
public static string CouldNotFindAdvancedParameterContainerForParameter(string parameterName) => $"Could not find advanced parameter container for parameter '{parameterName}'.";
public static string CouldNotFindAdvancedParameterInContainerForParameter(string containerName, string parameterName) => $"Could not find advanced parameter in container '{containerName}' for parameter '{parameterName}'.";
public static string CompoundProcessParameterMappingNotAvailable(string process, string parameter) => $"No compound process parameter mapping found for process='{process}' and parameter ='{parameter}'.";
public const string InvalidNumberOfBins = "Number of particle bins must be in [1..20].";
public const string InvalidParticleSizeDistribution = "Unknown particles size distribution passed.";
public const string FirstOrderActiveTransportsNotSupported = "First order active transports are not supported.";
public const string CannotSwitchToAdvancedProtocolWhenUsingUserDefinedApplication = "User defined administration cannot be used with an advanced administration protocol.";
public const string MolWeightNotAvailable = "Molecular Weight not available.";
public const string MolWeightNotAvailableForPopulationSimulationComparison = "Molecular Weight was not found or is not the same in all compared simulations.";
public const string EventGroupSubContainerHasInvalidType = "Subcontainer of event group must be of type event or event group.";
public static string NoStartTimeInEventBuilder(string eventName, string timeName) => $"Event group builder {eventName} does not contain parameter {timeName}.";
public static string ModelNotAvailableForSpecies(string model, string species) => $"Model {model} is not available for species {species}.";
public const string UnableToConverterIntestinalSecretion = "intestinal secretion directly into feces as a surrogate for luminal secretion and subsequent transport into faeces without re-absorption from the lumen is not supported any longer but can mechanistically be implemented.";
public static string ExtendedNeighborhoodNotAllowed(string neighborhood) => $"Neighborhood {neighborhood} is marked as EXTENDED which is not allowed.";
public const string FourCompModelCannotBeUsedWithLargeMolecule = "Model for small molecules cannot be used for a large molecule.\nPlease use the dedicated model for proteins and large molecules.";
public const string ProjectNeedsToBeSavedFirst = "Project needs to be saved first.";
public const string SimulationCloneOnlyAvailableWhenBuildingBlocksAreUptodate = "Cloning a simulation requires that all building blocks are consistent with the simulation (e.g. all have green checkmarks).";
public const string NoReportTemplateDefined = "Could not find any report templates. Please check your installation.";
public const string CompoundAndSimulationCannotShareTheSameName = "Compound and simulation cannot share the same name. Please rename your simulation.";
public const string IndividualMoleculesAnSimulationCannotShareTheSameName = "The simulation cannot share a name with any molecules defined in the individual.";
public const string ErrorWhileImportingPopulationAnalyses = "Some errors occured while importing the population analyses:";
public const string DifferentVectorLengths = "Vectors have different length!";
public const string MoBiNotFound = "MoBi was not found on current system. Please make sure that MoBi was installed using the provided setup. Alternatively, you can specify where MoBi is installed on your system under Utilities -> Options -> Application.";
public const string CannotExportAnImportedSimulation = "An imported simulation (e.g. from MoBi or pkml Format) cannot be exported.";
public const string AtLeastOneCompoundMustBeSelected = "At least one compound must be selected.";
public const string AtLeastOneFileRequiredToStartPopulationImport = "At least one file is required to perform the population import.";
public const string AtLeastOneProtocolRequiredToCreateSimulation = "Select at least one protocol for the administered compound(s).";
public const string AProtocolCanOnlyBeUsedOnceInASimulation = "Each administered compound must have a unique administration protocol.";
public const string CanOnlyCompareTwoObjectsAtATime = "Object comparison is only available for two objects at the same time.";
public const string AdvancedCommitNotAvailable = "Advanced commit is not supported.";
public const string KeywordsAndReplacementsSizeDiffer = "Keywords and replacementValues do not have the same length!";
public const string GenderAndOrPopulationMissingFromFile = "Gender and/or Population are not defined in the file to import.";
public const string FormulationShouldBeUsedAsTemplateOrAsSimulationBuildingBlock = "Formulation usage is inconsitent. Please use either the template formulation or the simulation formulation.";
public const string AtLeastOneIndividualIdRequiredToPerformPopulationExtraction = "At least one valid individual id is required to perform the population extraction.";
public static string SaturationEnabledCanOnlyBeUsedForOralApplicationUsingParticleDissolution(string compoundName) =>
$"Supersaturation is enabled for '{compoundName}'.\nEnabling supersaturation inactivates the limit of how much solute can be dissolved. It should always and only be allowed in combination with particle dissolution formulations; otherwise disabled.\nEnabling in case of other formulations results in a lack of the solubility limit and hence in infinitely soluble solutes.";
public static string DosePerBodySurfaceAreaProtocolCannotBeUsedWithSpeciesPopulation(string speciesPopulation) => $"Body surface area dosing cannot be used with species '{speciesPopulation}'.";
public static string PregnantPopulationCanOnlyBeUsedWithMoBiModel(string speciesPopulation) => $"Population based on '{speciesPopulation}' can only be used with pregnancy models imported from MoBi.";
public static string CouldNotFindOutputInSimulation(string outputFullPath, string simulationName) => $"Cannot find output '{outputFullPath}' in simulation '{simulationName}'";
public static string CouldNotFindParameterIdentification(string parameterIdentificationName) => OSPSuite.Assets.Error.CouldNotFind(OSPSuite.Assets.ObjectTypes.ParameterIdentification, parameterIdentificationName);
public static string TableFormulationRequiresAtLeastOnePoint(string formulation) => $"Table formulation '{formulation}' requires at least one point to be used in a simulation.";
public static string CouldNotFindSimulation(string simulationName) => OSPSuite.Assets.Error.CouldNotFind(OSPSuite.Assets.ObjectTypes.Simulation, simulationName);
public static string CannotCreateIdentificationParameter(string parameterPath, string parameterIdentificationName)
=> $"Cannot create identification parameter '{parameterPath}' for parameter identification '{parameterIdentificationName}'.";
public static string ParameterIsRequired(string parameterName) => OSPSuite.Assets.Error.CouldNotFind(OSPSuite.Assets.ObjectTypes.Parameter, parameterName);
public static string SimulationResultsFileDoesNotHaveTheExpectedFormat
{
get
{
var sb = new StringBuilder();
sb.AppendLine("Simulation result files does not have the expected format:");
sb.AppendLine(" - Column headers are required (e.g. IndividualId;Time;....)");
sb.AppendLine(" - The 1st column represents the individual id");
sb.AppendLine(" - The 2nd column represents the time values");
return sb.ToString();
}
}
public static string SimulationPKAnalysesFileDoesNotHaveTheExpectedFormat
{
get
{
var sb = new StringBuilder();
sb.AppendLine("Simulation pk-Analyses files does not have the expected format:");
sb.AppendLine(" - Column headers are required (e.g. IndividualId;Output;Parameter;Value;Unit)");
sb.AppendLine(" - The 1st column represents the individual id");
sb.AppendLine(" - The 2nd column represents the output for which the PK-Parameter was calculated");
sb.AppendLine(" - The 3rd column represents the Name of the PK-Parameter");
sb.AppendLine(" - The 4th column represents the Value of the PK-Parameter");
sb.AppendLine(" - The 5th column represents the Unit in which the value in the 4th column is saved");
return sb.ToString();
}
}
public const string CKDOnlyAvailableForAdult = "Chronic kidney disease model is only available for adult. Make sure the input age is greater than or equal to 18 years.";
public const string HIOnlyAvailableForAdult = "Hepatic impairment disease model is only available for adult. Make sure the input age is greater than or equal to 18 years.";
public const string EventTemplateNotDefined = "Event template not defined.";
public static string FormulationIsRequiredForType(string applicationType) => $"Formulation is required for type '{applicationType}'.";
public static string BuildingBlockNotDefined(string buildingBlock) => $"No {buildingBlock} defined. Please use create.";
public static string MissingColumnInView(string propertyName) => $"Property named {propertyName} not found.";
public static string ProjectFileIsCorrupt(string productName) => $"Project file is corrupted and unreadable or this is not a {productName} project file.";
public static string CannotCalculateDDIRatioFor(string parameterName) => $"Cannot calculate AUC Ratio: don't know how to handle parameter {parameterName}.";
public static string NoBatchFileFoundIn(string inputFolder) => $"No simulation file found in '{inputFolder}'.";
public static string TableFormulaWithOffsetMissingRefs(string rateKey, string ref1, string ref2) => $"Table formula with offset '{rateKey}' must contain references to '{ref1}' and '{ref2}'.";
public static string TableFormulaWithXReferenceMissingRefs(string rateKey, string ref1, string ref2) => $"Table formula with X-Reference '{rateKey}' must contain references to '{ref1}' and '{ref2}'.";
public static string ModelContainerNotAvailable(string containerName) => $"Model container '{containerName}' not available.";
public static string ProjectFileIsReadOnlyAndCannotBeRead(string fileFullPath)
{
return $"The file '{fileFullPath}' is readonly and cannot be read by the application. Please make the project writable and try again.";
}
public static string BuildingBlockVersionIsTooOld(int version)
{
return $"Work in progress.\nThe Building Block is too old (version {version}) and cannot be loaded.\nSorry :-(";
}
public static string CannotRenameCompoundUsedInSimulations(string compoundName, string simulationsList)
{
return $"{ObjectTypes.Compound} '{compoundName}' is used in simulations \n{simulationsList}\n and cannot be renamed.";
}
public static string CannotRenameCompoundUsedInSimulation(string buildingBlockName, string simulationName)
{
return $"{ObjectTypes.Compound} '{buildingBlockName}' is used in simulation '{simulationName}' and cannot be renamed.";
}
public static string CannotFindFormulationForMapping(string formulationId, string formulationKey, string simulationName)
{
return $"Cannot find formulation with id '{formulationId}' for formulation key '{formulationKey}' in simulation '{simulationName}'.";
}
public static string CannotFindObserverSetForMapping(string observerSet) => $"Cannot find observer set named '{observerSet}'.";
public static string NoPartialTemplateProcessFound(string processType) => $"No templates for partial process {processType} found.";
public static string BuildingBlockAlreadyExists(string buildingBlockType, string name) => $"{buildingBlockType} named '{name}' already exists in project.";
public static string NameAlreadyExistsInContainerType(string name, string containerType) => $"'{name}' already exists in {containerType}.";
public static string CompoundProcessDeclaredAsNotTemplate(string processName) => $"Compound process '{processName}' is not declared as a template.";
public static string ProjectFileDoesNotExist(string projectFile) => $"Project file '{projectFile}' has been deleted or is not accessible.";
public static string ProjectFileVersion4IsNotSupportedAnymore(string projectFile)
{
var sb = new StringBuilder();
sb.AppendLine("Support for project file of version 4.2 and older has ended with version 5.6 of the software.");
sb.AppendLine();
sb.AppendLine($"In order to convert the file '{projectFile}' to the latest PK-Sim version please proceed as follows:");
sb.AppendLine();
sb.AppendLine(" 1 - Install an earlier version of PK-Sim (version 5.5 or earlier) and open the file");
sb.AppendLine(" 2 - Save the file");
sb.AppendLine(" 3 - The file is now converted and can be open with any newer version of PK-Sim");
sb.AppendLine();
sb.AppendLine();
sb.AppendLine("Note: PK-Sim version 4.2 and 5.x or newer can be installed on the same computer without any issues.");
return sb.ToString();
}
public static string FileIsNotAPKSimFile(string projectFile, string productName) => $"File '{projectFile}' is not a {productName} project file.";
public static string FileIsNotASimulationFile(string simulationFile, string productName) => $"File '{simulationFile}' is not a {productName} simulation file.";
public static string NoTemplateAvailableForType(string templateType) => $"No template '{templateType}' available in the template databases.";
public static string UnableToUpdateParameterException(string parameterPath, string simulationName) => $"Unable to update parameter.\nParameter with path '{parameterPath}' not found in simulation '{simulationName}'.";
public static string FormulationCannotBeUsedWithRoute(string formulationName, string applicationRoute) =>
$"Formulation '{formulationName}' cannot be used with route '{applicationRoute}.";
public static string NoFormulationFoundForRoute(string protocolName, string applicationRoute) =>
$"No formulation found for route '{applicationRoute}' in administration protocol '{protocolName}'.";
public static string UnableToCreateSimulationWithMoleculesHavingSameName(string duplicateName)
{
return $"Simulation cannot be created. The selected configuration would result in having two molecules named '{duplicateName}' at the same place.";
}
public static string IntervalNotDefinedForParameter(string parameterName) => $"Interval not defined for parameter '{parameterName}'.";
public static string MoleculeNameCannotBeUsedAsItWouldCreateDuplicateProcesses(string moleculeName)
{
return $"Molecule cannot be renamed to '{moleculeName}'. Two or more processes would have the same name.";
}
public static string CannotSelectTheSamePartialProcessMoreThanOnce(string processName) =>
$"'{processName}' cannot be selected more than once.";
public static string CouldNotFindSpecies(string species, IEnumerable<string> availableSpecies)
{
return $"Could not find species '{species}'.\nAvailable species are:\n{availableSpecies.ToString("\n")}";
}
public static string CouldNotFindPopulationForSpecies(string population, string species, IEnumerable<string> availablePopulations)
{
return $"Could not find population '{population}' for species '{species}'.\nAvailable populations are:\n\t{availablePopulations.ToString("\n\t")}";
}
public static string CouldNotFindGenderForPopulation(string gender, string population, IEnumerable<string> availableGenders)
{
return $"Could not find gender '{gender}' for population '{population}'.\nAvailable genders are:\n\t{availableGenders.ToString("\n\t")}";
}
public static string CannotFindDiseaseState(string diseaseState, string population)
{
return $"Could not find disease state '{diseaseState}' for population '{population}'.";
}
public static string CouldNotFindCalculationMethodInCategory(string calculationMethod, string category, IEnumerable<string> availableCategories)
{
return $"Could not find calculation method '{calculationMethod}' in category '{category}'.\nAvailable calculation methods are:\n\t{availableCategories.ToString("\n\t")}";
}
public static string CalculationMethodNotDefinedForSpecies(string calculationMethod, string category, string species)
{
return $"Calculation method '{calculationMethod}' in category '{category}' is not defined for species '{species}'.";
}
public static string CalculationMethodNotFound(string calculationMethod) => $"Calculation method '{calculationMethod}' was not found.";
public static string SimulationHasNoResultsAndCannotBeUsedInComparison(string simulationName) => $"Simulation '{simulationName}' needs to be run first before being used in a comparison.";
public static string CouldNotCreatePartialProcessFor(string moleculeName, string processType)
{
return $"Could not create partial process '{processType}' for molecule '{moleculeName}'.";
}
public static string CannotExportResultsPleaseRunSimulation(string simulationName)
{
return $"Run simulation '{simulationName}' first before exporting the results to {UI.Excel}.";
}
public static string CannotExportPKAnalysesPleaseRunSimulation(string simulationName)
{
return $"Run simulation '{simulationName}' first before exporting the PK-Analyses to CSV.";
}
public static string ProjectWillBeOpenedAsReadOnly(string errorMessage)
{
return $"{errorMessage}\nAny change made to the project will not be saved.";
}
public static string CouldNotFindTransporterFor(string containerName, string membrane, string transportType)
{
return $"Could not find a transporter template for container '{containerName}' location '{membrane}' and type '{transportType}'.";
}
public static string CannotCreateAgingSimulationWithInvalidPercentile(string parameterPath, double percentile)
{
return $"Cannot create aging simulation: The percentile for parameter '{parameterPath}' is invalid. (percentile = {percentile}).";
}
public static string FileDoesNotExist(string fileFullPath) => $"File '{fileFullPath}' does not exist.";
public static string NoDataFieldFoundFor(string name) => $"No data field found for '{name}'.";
public static string DuplicatedIndividualResultsForId(int individualId)
{
return $"Individual results for individual with id '{individualId}' were defined more than once!";
}
public static string NumberOfIndividualsInResultsDoNotMatchPopulation(string populationName, int expectedCount, int importedCount)
{
return $"The simulation '{populationName}' has '{expectedCount}' individuals. The imported results however contain values for '{importedCount}' individuals.";
}
public static string TimeArrayLengthDoesNotMatchFirstIndividual(int id, int expectedLength, int currentLength)
{
return $"Time array for individual '{id}' does not have the expected length ({expectedLength} vs {currentLength}).";
}
public static string TimeArrayValuesDoesNotMatchFirstIndividual(int id, int index, float expectedValue, float currentValue)
{
return $"Time array for individual '{id}' does not have the expected value in row '{index}' ({expectedValue} vs {currentValue}).";
}
public static string IndividualResultsDoesNotHaveTheExpectedQuantity(int individualId, IReadOnlyList<string> expectedQuantities, IReadOnlyList<string> foundQuantities)
{
var sb = new StringBuilder();
sb.AppendLine($"Individual results for individual '{individualId}' does not have the expected results:");
sb.AppendLine($"Expected: {expectedQuantities.ToString(",")}");
sb.AppendLine($"Found: {foundQuantities.ToString(",")}");
return sb.ToString();
}
public static string CouldNotFindQuantityWithPath(string quantityPath) => $"Could not find quantity with path '{quantityPath}'.";
public static string NotEnoughPKValuesForParameter(string parameterName, string quantityPath, int expectedValue, int currentValue)
{
var sb = new StringBuilder();
sb.AppendLine($"Number of imported values for PK-Parameter '{parameterName}' in '{quantityPath}' does not have the expected length:");
sb.AppendLine($"Expected: {expectedValue}");
sb.AppendLine($"Found: {currentValue}");
return sb.ToString();
}
public static string IndividualIdDoesNotMatchTheValueLength(int individualId, int count)
{
return $"Individual Id '{individualId}' does not match the expected number of individual '{count}'. A reason could be that the results were imported starting with an id of 1 instead of 0.";
}
public static string GroupingCannotBeCreatedForField(string fieldName)
{
return $"Not enough valid values for '{fieldName}' to create a grouping.";
}
public static string GroupingCannotBeUsedWithFieldOfType(Type fieldType, string grouping)
{
return $"Grouping '{grouping}' cannot be used with field of type '{fieldType}'.";
}
public static string QuantityNotFoundWillBeRemovedFromAnalysis(string quantityPath)
{
return $"Quantity '{quantityPath}' was not found and will be removed.";
}
public static string PKParameterWasNotCalculatedForQuantity(string pkParameter, string quantityPath)
{
return $"PK-Parameter '{pkParameter}' was not calculated for quantity '{quantityPath}' and will be removed.";
}
public static string ParameterNotFoundWillBeRemovedFromAnalysis(string parameterPath)
{
return $"Parameter '{parameterPath}' was not found and will be removed.";
}
public static string CovariateNotFoundWillBeRemovedFromAnalysis(string covariate)
{
return $"Covariate '{covariate}' was not found and will be removed.";
}
public static string OutputFieldCannotBeUsedInAnalysis(string outputName)
{
return $"Output '{outputName}' cannot be used in this analysis and will be removed.";
}
public static string InconsistentCurveData(int yValuesCount, int xValuesCount)
{
return $"Length of y values = {yValuesCount} != {xValuesCount} = length of x values.";
}
public static string InconsistentXValuesLength(int xValuesCount, int requiredXValuesCount)
{
return $"Length of x values = {xValuesCount} != {requiredXValuesCount}.";
}
public static string CouldNotFindDimensionWithUnit(string unit)
{
return $"Could not find dimension containing unit '{unit}'.";
}
public static string UnitIsNotDefinedInDimension(string unit, string dimension)
{
return $"Unit '{unit}' is not defined in dimension '{dimension}'.";
}
public static string DerivedFieldCannotBeUsedForFieldOfType(string derivedField, string dataField, Type dataType)
{
return $"Grouping '{derivedField}' cannot be used for field '{dataField}' of type '{dataType.Name}'.";
}
public static string CouldNotLoadSimulationFromFile(string pkmlFileFullPath)
{
return $"Could not load simulation from file '{pkmlFileFullPath}'.";
}
public static string CouldNotLoadObserverFromFile(string pkmlFileFullPath, string elementName)
{
return $"Could not load observer from file '{pkmlFileFullPath}'.\nThis seems to be a file for '{elementName}'. Make sure that the selected file contains a SINGLE observer only.";
}
public static string CannotAddOutputFieldBecauseOfDimensionMismatch(string outputName, IEnumerable<string> allowedDimensions, string currentDimension)
{
return cannotAddToAnalysisBecauseOfDimensionMismatch("output", outputName, allowedDimensions, new[] {currentDimension});
}
public static string CannotAddObservedDataBecauseOfDimensionMismatch(string observedDataName, IEnumerable<string> allowedDimensions, IEnumerable<string> usedDimensions)
{
return cannotAddToAnalysisBecauseOfDimensionMismatch(UI.ObservedData, observedDataName, allowedDimensions, usedDimensions);
}
private static string cannotAddToAnalysisBecauseOfDimensionMismatch(string objectType, string objectName, IEnumerable<string> allowedDimensions, IEnumerable<string> usedDimensions)
{
var sb = new StringBuilder();
sb.AppendLine($"The {objectType} '{objectName}' cannot be added to the analysis.");
sb.AppendLine();
sb.AppendLine($"Its dimension '{usedDimensions.ToString(", ")}' is not in the list of possible dimension(s):");
sb.Append(allowedDimensions.ToString("\n"));
return sb.ToString();
}
public static string ComparisonWithTemplateNotSupportedForBuildingBlockOfType(string buildingBlockType)
{
return $"Comparison with template building block is not supported for {buildingBlockType}.";
}
public static string ComparisonBetweenBuildingBLocksNotSupportedForBuildingBlockOfType(string buildingBlockType)
{
return $"Comparison between building blocks is not supported for {buildingBlockType}.";
}
public static string CannotExtractIndividualFrom(string objectType) => $"Individual extraction is not available for '{objectType}'.";
public static string SnapshotParameterNotFoundInContainer(string parameterName, string container) => $"Snapshot parameter '{parameterName}' was not found in '{container}'.";
public static string SnapshotParameterNotFound(string parameterName) => $"Snapshot parameter '{parameterName}' was not found.";
public static string MoleculeTypeNotSupported(string moleculeType) => $"Molecule type '{moleculeType}' not supported.";
public static string RelativeExpressionContainerNotFound(string containerName) => $"Relative expression container '{containerName}' not found.";
public static string CannotCreateDescriptorSnapshotFor(string type) => $"Cannot create descriptor snapshot for descriptor of type '{type}'.";
public static string CannotCreateObserverFromSnapshot(string type) => $"Cannot create observer from snapshot with type '{type}'.";
public static string CannotCreateDescriptorFromSnapshotFor(string type) => $"Cannot create descriptor from snapshot for type '{type}'.";
public static string SnapshotProcessNameNotFound(string processName) => $"Snapshot process '{processName}' not found in the PK-Sim database.";
public const string PopulationSnapshotOnlySupportedForRandomPopulation = "Population snapshot can only be created for randomized population.";
public const string SimulationSubjectUndefinedInSnapshot = "Simulation subject (Individual or Population) is not defined in snapshot.";
public static string SimulationTemplateBuildingBlockNotFoundInProject(string buildingBlockName, string buildingBlockType) => $"{buildingBlockType} '{buildingBlockName} not found in project.";
public static string ProcessNotFoundInCompound(string processName, string compound) => $"Process '{processName}' was not found in compound '{compound}'";
public static string OnlyPKSimSimulationCanBeExportedToSnapshot(string simulationName, string origin) => $"Snapshot export is not supported for {origin} simulation '{simulationName}'.";
public static string CannotLoadRelatedItemAsObjectAlreadyExistInProject(string objectType, string objectName) => $"Cannot load related item into project. A {objectType.ToLower()} named '{objectName}' already exists.";
public static string CompoundGroupNotFoundFor(string compoundGroup, string compoundName) => $"Cannot find compound group '{compoundGroup}' for compound '{compoundName}'";
public static string CompoundAlternativeNotFoundFor(string alternativeName, string defaultAlternativeName, string compoundGroup, string compoundName) => $"Cannot find alternative '{alternativeName}' in compound group '{compoundGroup}' for compound '{compoundName}'. Default alternative '{defaultAlternativeName}' will be used instead";
public static string CannotLoadSimulation(string simulationName) => $"Cannot load {ObjectTypes.Simulation} '{simulationName}'";
public static string UnableToLoadQualificationConfigurationFromFile(string fileFullPath) => $"Unable to read configuration from file '{fileFullPath}'";
public static string CannotFindBuildingBlockInSnapshot(string buildingBlockType, string buildingBlockName, string project) => $"Could not find {buildingBlockType} '{buildingBlockName}' in snapshot '{project}'.";
public static string CannotFindSimulationInSnapshot(string simulationName, string project) => CannotFindBuildingBlockInSnapshot(ObjectTypes.Simulation, simulationName, project);
public static string SimulationUsedInPlotsAreNotExported(IReadOnlyList<string> simulationNames, string project)
=> $"{ObjectTypes.Simulation.PluralizeIf(simulationNames)} {simulationNames.ToString(", ", "'")} used in plots {"is".PluralizeIf(simulationNames)} not found in the list of exported simulations for {ObjectTypes.Project} {project}";
public static string CannotFindSimulationParameterInSnapshot(string parameterPath, string simulationName, string project) =>
$"Could not find {ObjectTypes.Parameter} with path '{parameterPath}' in {ObjectTypes.Simulation} '{simulationName}' defined in snapshot {project}.";
public static string CannotLoadSnapshotFromFile(string fileFullPath) => $"Cannot load snapshot from file '{fileFullPath}'. Please make sure that the file exists and that it is a valid snapshot file.";
public static string AlteredBuildingBlockNotFoundInSimulation(string simulationName, string buildingBlockName, string buildingBlockType) =>
$"Could not update the altered flag for {buildingBlockType} building block '{buildingBlockName}' as it is not used in {ObjectTypes.Simulation} '{simulationName}'.";
public static string CannotCreateTransportProcessWithKinetic(string processName, string compoundProcess) =>
$"The kinetic used in compound process '{compoundProcess}' cannot be used with '{processName}'. Please select another process type in your compound.";
public static string CannotDownloadTemplateLocatedAt(string url) =>
$"Cannot download template located at '{url}'";
public static string NoProteinExpressionDatabaseAssociatedTo(string speciesName) =>
$"No protein expression database available for species '{speciesName}'";
public static string MultipleOperatorFoundForContainer(int containerId, string parameterName) =>
$"Multiple operator values found for container id '{containerId}' and parameter '{parameterName}'";
public static string ExpressionProfileForMoleculeNotFound(string molecule, string buildingBlockName, string buildingBlockType) =>
$"Expression profile for molecule '{molecule}' was not found in the project. Please delete this molecule from {buildingBlockType.ToLower()} '{buildingBlockName}'.";
public static string CouldNotFindMoleculeType(string moleculeType) =>
$"Could not find the molecule type {moleculeType}";
public static string SnapshotDuplicateEntryByName(string name, string type) =>
$"Another {type} named '{name}' already exists in the project. Snapshot file is corrupted.";
}
public static class Information
{
public static readonly string Formula = "Formula";
public static readonly string ParameterDescription = "Description";
public static readonly string Description = "Description";
public static readonly string ParameterIsAFormulaWithOverridenValue = "Parameter value is a formula that was overwritten.";
public static readonly string ParameterIsAFormula = "Parameter value is a formula. Overwriting the value might lead to cross-dependency loss.";
public static readonly string ParameterIsDefinedIn = "Parameter is defined in";
public static readonly string NoParametersInIndividualSelection = "<B>Note:</B> Default Anatomy and physiology for selected species is preset.\nTo change click on the desired item in the tree view (left part) and change the values in the appearing table in this window";
public static readonly string NoParametersInSimulationSelection = "<B>Note:</B> Default Anatomy and physiology for selected species is preset.\nTo change click on the desired item in the tree view (left part) and change the values in the appearing table in this window";
public static string InitializingPKSim(string productName, string version) => $"Initializing {productName} {version}";
public static string IndividualExpressionInfo
{
get
{
var sb = new StringBuilder();
sb.AppendLine("Enter all relevant enzyme, transport, and protein binding settings of the individual by a right click on the selected item in the tree view (left part)");
sb.AppendLine();
sb.AppendLine(" If a <I>metabolizing enzyme</I> is defined, the drug can react to its metabolism product within the specified localizations.");
sb.AppendLine(" If a <I>transport protein</I> is defined, the drug can be transported between specified compartments in the specified directions.");
sb.AppendLine(" If a <I>protein binding partner</I> is defined, the drug can reversibly bind to the partner within the specified localizations.");
sb.AppendLine();
sb.AppendLine("<B>Note:</B> The processes will be effective within a simulation, if the enzymes/transporters/binding partners defined for the individual are linked to the respective proteins defined for the biological properties of the compound. This linking is done while creating a simulation.");
return sb.ToString();
}
}
public static string SimulationComparisonInfo => "<B>Drag-and-drop the simulations to compare and select curves in data browser of chart editor.</B>";
public static string NoParameterAvailableForScaling => "No parameter was changed in the base individual. Default Scaling configuration will be used.";
public static string BuildingBlockSettingsDoNotMatchWithTemplate(string buildingBlockType)
{
return $"{buildingBlockType} settings were changed compared to template {buildingBlockType.ToLower()}";
}
public static string ProjectNeedsToBeConverted(string projectFile)
{
return $"This project was built with an old version of PK-Sim and needs to be converted.\nOne backup copy of the original project file will be created under {projectFile}_backup.";
}
public static string RenamingBuildingBlock(string buildingBlockType)
{
return $"Renaming {buildingBlockType.ToLower()}...";
}
public static string NoSystemicProcessDefinedInCompoundForType(string systemicProcessType)
{
return $"{systemicProcessType} is not defined in compound.";
}
public static string NoProcessDefinedInCompoudFor(string name)
{
return $"No process defined in compound for '{name}'";
}
public static string NewVersionIsAvailable(string newerVersion, string downloadPage)
{
return $"Version <b>{newerVersion}</b> is available for download. Visit our download page at <u>{downloadPage}</u>";
}
public static readonly string FollowingPKParametersWereSuccessfulyImported = $"Following {UI.PKParameters} were successfully imported:";
public static string FollowingOutputsWereSuccessfulyImported(int numberOfIndividuals)
{
return $"Simulation results for {numberOfIndividuals} individuals were successfully imported for the following quantities:";
}
public static string PopulationSimulationSuccessfullyImported(string simulationName, int numberOfIndividuals)
{
return $"Population simulation '{simulationName}' was successfully created with '{numberOfIndividuals}' individuals";
}
public static readonly string CompoundProcessesInfo = "Enter all relevant properties of the compound by a right click on the selected item in the tree view (left part).\n<B>Note:</B> In the simulation process, these compound properties will be linked to enzymatic, transport, and binding settings defined for the selected individual/species";
public static readonly string ObjectReferences = "References";
public static readonly string DoNotShowVersionUpdate = "Ignore this update";
public static string XAsTooltip(string x)
{
return $"X = {x}";
}
public static string BoxWhiskerYAsTooltip(string lowerWhisker, int lowerWiskerIndividualId, string lowerBox, int lowerBoxIndividualId, string median, int medianIndividualId, string upperBox, int upperboxIndividualId, string upperWhisker,int upperWhiskerIndividualId, string[] outliers, int[] outlierIndividualIds)
{
var sb = new StringBuilder();
sb.AppendLine(percentilWithIndividualId("95", upperWhisker, upperWhiskerIndividualId));
sb.AppendLine(percentilWithIndividualId("75", upperBox, upperboxIndividualId));
sb.AppendLine(percentilWithIndividualId("50", median, medianIndividualId));
sb.AppendLine(percentilWithIndividualId("25", lowerBox, lowerBoxIndividualId));
sb.AppendLine(percentilWithIndividualId("5", lowerWhisker, lowerWiskerIndividualId));
if (outliers.Length > 0 && outliers.Length == outlierIndividualIds.Length)