-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '28-add-result-annotations-to-nightsky-api' into 'master'
Resolve "add result Annotations to Nightsky API" Closes #47 and #28 See merge request bright-giant/sirius/sirius-frontend!17
- Loading branch information
Showing
22 changed files
with
593 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...src/main/java/de/unijena/bioinf/ms/middleware/model/annotations/ConsensusAnnotations.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* | ||
* This file is part of the SIRIUS library for analyzing MS and MS/MS data | ||
* | ||
* Copyright (C) 2013-2020 Kai Dührkop, Markus Fleischauer, Marcus Ludwig, Martin A. Hoffman, Fleming Kretschmer and Sebastian Böcker, | ||
* Chair of Bioinformatics, Friedrich-Schilller University. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License along with SIRIUS. If not, see <https://www.gnu.org/licenses/lgpl-3.0.txt> | ||
*/ | ||
|
||
package de.unijena.bioinf.ms.middleware.model.annotations; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Setter | ||
@SuperBuilder | ||
abstract class ConsensusAnnotations { | ||
|
||
/** | ||
* Molecular formula of the consensus annotation | ||
* Might be null if no consensus formula is available. | ||
*/ | ||
protected String molecularFormula; | ||
|
||
/** | ||
* Compound classes (predicted with CANOPUS) corresponding to the molecularFormula | ||
* Might be null if no fingerprints or compound classes are available. | ||
*/ | ||
protected CompoundClasses compoundClasses; | ||
|
||
/** | ||
* FeatureIds where the topAnnotation supports this annotation. | ||
*/ | ||
protected List<String> supportingFeatureIds; | ||
} |
64 changes: 64 additions & 0 deletions
64
.../main/java/de/unijena/bioinf/ms/middleware/model/annotations/ConsensusAnnotationsCSI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* | ||
* This file is part of the SIRIUS library for analyzing MS and MS/MS data | ||
* | ||
* Copyright (C) 2013-2020 Kai Dührkop, Markus Fleischauer, Marcus Ludwig, Martin A. Hoffman, Fleming Kretschmer and Sebastian Böcker, | ||
* Chair of Bioinformatics, Friedrich-Schilller University. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License along with SIRIUS. If not, see <https://www.gnu.org/licenses/lgpl-3.0.txt> | ||
*/ | ||
|
||
package de.unijena.bioinf.ms.middleware.model.annotations; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Getter | ||
@Setter | ||
@SuperBuilder | ||
public class ConsensusAnnotationsCSI extends ConsensusAnnotations { | ||
public enum Criterion { | ||
MAJORITY_STRUCTURE, | ||
CONFIDENCE_STRUCTURE, | ||
SINGLETON_STRUCTURE, | ||
MAJORITY_FORMULA, | ||
TOP_FORMULA, | ||
SINGLETON_FORMULA | ||
} | ||
|
||
|
||
/** | ||
* Null if this is a custom selection | ||
*/ | ||
protected Criterion selectionCriterion; | ||
|
||
/** | ||
* Database structure candidate (searched with CSI:FingerID), that also defines the molecularFormula | ||
* Might be null if no consensus structure is available. | ||
*/ | ||
protected StructureCandidate csiFingerIdStructure; | ||
|
||
/** | ||
* Confidence value that represents the certainty that reported consensus structure is exactly the measured one | ||
* If multiple features support this consensus structure the maximum confidence is reported | ||
*/ | ||
protected Double confidenceExactMatch; | ||
|
||
/** | ||
* Confidence value that represents the certainty that the exact consensus structure or a very similar | ||
* structure (e.g. measured by Maximum Common Edge Subgraph Distance) is the measured one. | ||
* If multiple features support this consensus structure the maximum confidence is reported | ||
*/ | ||
protected Double confidenceApproxMatch; | ||
} |
44 changes: 44 additions & 0 deletions
44
...in/java/de/unijena/bioinf/ms/middleware/model/annotations/ConsensusAnnotationsDeNovo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* | ||
* This file is part of the SIRIUS library for analyzing MS and MS/MS data | ||
* | ||
* Copyright (C) 2013-2020 Kai Dührkop, Markus Fleischauer, Marcus Ludwig, Martin A. Hoffman, Fleming Kretschmer and Sebastian Böcker, | ||
* Chair of Bioinformatics, Friedrich-Schilller University. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License along with SIRIUS. If not, see <https://www.gnu.org/licenses/lgpl-3.0.txt> | ||
*/ | ||
|
||
package de.unijena.bioinf.ms.middleware.model.annotations; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Getter | ||
@Setter | ||
@SuperBuilder | ||
public class ConsensusAnnotationsDeNovo extends ConsensusAnnotations{ | ||
public enum Criterion { | ||
MAJORITY_FORMULA, | ||
TOP_FORMULA, | ||
SINGLETON_FORMULA | ||
} | ||
|
||
protected Criterion selectionCriterion; | ||
|
||
// /** | ||
// * DeNovo Structure candidate (predicted with MSNovelist) corresponding to the molecularFormula | ||
// * Might be null if no consensus structure is available. | ||
// */ | ||
// protected StructureCandidate structureMsNovelist; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.