-
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.
Merge pull request #159 from unipept/fix/export-results-not-available
Fix/export results not available
- Loading branch information
Showing
10 changed files
with
453 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,4 @@ | ||
/* | ||
NOOP since nothing has changed to the database structure itself between these versions, only a change to the | ||
encoding of data in the database has been performed. | ||
*/ |
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,58 @@ | ||
CREATE TABLE studies ( | ||
id TEXT PRIMARY KEY, | ||
name TEXT NOT NULL | ||
); | ||
|
||
CREATE TABLE assays ( | ||
id TEXT PRIMARY KEY, | ||
name TEXT NOT NULL, | ||
study_id TEXT NOT NULL, | ||
configuration_id INT NOT NULL, | ||
/* | ||
Endpoint that was last selected for this assay. This endpoint does not necessarily need to be the same as the one | ||
selected for the storage_metadata table. This endpoint is only used to detect whether the assay needs to be | ||
recomputed or not. | ||
*/ | ||
endpoint TEXT, | ||
FOREIGN KEY(study_id) REFERENCES studies(id), | ||
FOREIGN KEY(configuration_id) REFERENCES search_configuration(id) | ||
); | ||
|
||
CREATE TABLE search_configuration ( | ||
id INTEGER PRIMARY KEY, | ||
equate_il INT NOT NULL, | ||
filter_duplicates INT NOT NULL, | ||
missing_cleavage_handling INT NOT NULL | ||
); | ||
|
||
CREATE TABLE peptide_trust ( | ||
assay_id TEXT NOT NULL, | ||
missed_peptides TEXT NOT NULL, | ||
matched_peptides INT NOT NULL, | ||
searched_peptides INT NOT NULL, | ||
PRIMARY KEY(assay_id) | ||
); | ||
|
||
CREATE TABLE storage_metadata ( | ||
assay_id TEXT NOT NULL, | ||
configuration_id INT NOT NULL, | ||
endpoint TEXT, | ||
/* | ||
Unique fingerprint hash for the data that has been stored on the hard drive for this specific combination of | ||
assay configuration properties. | ||
*/ | ||
fingerprint TEXT, | ||
/* | ||
Hash of the files that are stored on the local filesystem. This hash can be used to verify the integrity of the | ||
files containing the offline result data on the filesystem. Value for this column is the concatenation of | ||
the hash for both the data buffer and index buffer files. | ||
*/ | ||
data_hash TEXT, | ||
analysis_date TEXT, | ||
PRIMARY KEY(assay_id), | ||
FOREIGN KEY(configuration_id) REFERENCES search_configuration(id) | ||
); | ||
|
||
CREATE TABLE database_metadata ( | ||
application_version TEXT NOT NULL | ||
); |
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 BufferUtils { | ||
public static bufferToSharedArrayBuffer(buf: Buffer): SharedArrayBuffer { | ||
const ab = new SharedArrayBuffer(buf.length); | ||
const view = new Uint8Array(ab); | ||
for (let i = 0; i < buf.length; ++i) { | ||
view[i] = buf[i]; | ||
} | ||
return ab; | ||
} | ||
|
||
public static arrayBufferToBuffer(buffer: ArrayBuffer): Buffer { | ||
return Buffer.from(buffer); | ||
} | ||
} |
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.