-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade dependencies to latest version
- Loading branch information
Showing
44 changed files
with
3,624 additions
and
1,331 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Assay } from "unipept-web-components"; | ||
|
||
export default interface AssayManager { | ||
/** | ||
* Read all peptides and metadata for this assay from the datasource given in the constructor of this class. If the | ||
* given assay does not exist yet, an error will be thrown. | ||
* | ||
* @param assayName Name of the assay that should be read. If no file with the associated name exists in the | ||
* provided directory, an error will be thrown. | ||
* @throws { Error } If no assay with the given name exists or could be find using the information provided. | ||
*/ | ||
loadAssay( | ||
assayName: string | ||
): Promise<Assay>; | ||
|
||
/** | ||
* Write all peptides and metadata for this assay to the datasource given in the constructor of this class. If the | ||
* given assay already exists, it will be overwritten. | ||
* | ||
* @param assay Assay object for which all information should be persistently stored. | ||
*/ | ||
writeAssay( | ||
assay: Assay | ||
): Promise<void>; | ||
|
||
/** | ||
* Remove all peptides and metadata for this assay from the datasource given in the constructor of this class. If no | ||
* assay with the given name exists, nothing will happen. | ||
* | ||
* @param assayName Name of the assay object that should be removed. | ||
*/ | ||
removeAssay( | ||
assayName: string | ||
): Promise<void>; | ||
} |
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,9 @@ | ||
import Study from "@common/study/Study"; | ||
|
||
export default class Project { | ||
constructor( | ||
public readonly name: string, | ||
public readonly location: string, | ||
public readonly studies: Study[], | ||
) {} | ||
} |
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,11 @@ | ||
export default class RecentProject { | ||
public readonly name: string; | ||
public readonly path: string; | ||
public lastOpened: Date; | ||
|
||
constructor(name: string, path: string, lastOpened: Date) { | ||
this.name = name; | ||
this.path = path; | ||
this.lastOpened = lastOpened; | ||
} | ||
} |
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,14 @@ | ||
export default class SearchConfiguration { | ||
constructor( | ||
public equateIl: boolean = true, | ||
public filterDuplicates: boolean = true, | ||
public enableMissingCleavageHandling: boolean = false, | ||
public id?: string | ||
) {} | ||
|
||
public toString() { | ||
return [this.equateIl, this.filterDuplicates, this.enableMissingCleavageHandling].map( | ||
t => t.toString() | ||
).join(","); | ||
} | ||
} |
Oops, something went wrong.