Skip to content

Commit

Permalink
partially address #1290
Browse files Browse the repository at this point in the history
Since biological sex is a common one, we can at least be consistent.
  • Loading branch information
ppavlidis committed Nov 15, 2024
1 parent 51a6bde commit 728f829
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public class BaselineSelection {
"untreated",
"wild type control",
"wild type genotype",
"wild type"
"wild type",
"female" // alphabetically before male.
);
/**
* Ontology terms we treat as baseline. Checked: 2024-08-12
Expand All @@ -73,7 +74,8 @@ public class BaselineSelection {
"http://purl.org/nbirn/birnlex/ontology/BIRNLex-Investigation.owl#birnlex_2201", // control group, old
"http://mged.sourceforge.net/ontologies/MGEDOntology.owl#wild_type", // retired
"http://ontology.neuinfo.org/NIF/DigitalEntities/NIF-Investigation.owl#birnlex_2001", // normal control_group (retired)
"http://ontology.neuinfo.org/NIF/DigitalEntities/NIF-Investigation.owl#birnlex_2201" // control_group, new version (retired)
"http://ontology.neuinfo.org/NIF/DigitalEntities/NIF-Investigation.owl#birnlex_2201", // control_group, new version (retired)
"http://purl.obolibrary.org/obo/PATO_0000383" // female
);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ public static Map<ExperimentalFactor, FactorValue> getBaselineLevels( List<BioMa
for ( FactorValue bfv : bm.getFactorValues() ) {
if ( fv.equals( bfv ) ) {
arbitraryBaselineFV = fv;
// FIXME: consider gathering up all of the eligible factorvalues,
// and choosing one in a deterministic way i.e. alphabetically or some other convention.
break;
}
}
Expand Down

0 comments on commit 728f829

Please sign in to comment.