-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made helper funcs for checking timestamp and added constants to dals/…
…constants.js, removed trailing spaces.
- Loading branch information
1 parent
d0fdb9a
commit 8b8a088
Showing
4 changed files
with
119 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export const GRN_DATABASE_NAMESPACE = "gene_regulatory_network_new"; | ||
export const GRN_DATABASE_NAMESPACE_OLD = "gene_regulatory_network"; | ||
export const PPI_DATABASE_NAMESPACE = "protein_protein_interactions_new"; | ||
export const PPI_DATABASE_NAMESPACE_OLD = "protein_protein_interactions"; | ||
export const DATABASE_TIMESTAMP_CUTOFF = new Date("2025-01-01"); | ||
|
||
export const timestampNamespace = function(timestamp, namespace, oldNamespace) { | ||
return timestamp < new Date("2025-01-01") ? namespace : oldNamespace; | ||
}; | ||
|
||
export const timestampOld = function(timestamp) { | ||
return timestamp < DATABASE_TIMESTAMP_CUTOFF; | ||
} | ||
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