synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
590 lines (589 loc) • 15.8 kB
JavaScript
import { past30DaysDownloadMetricsTable as o, generalStatsMetricsTable as n, synapseInActionTable as r, featuredDatasetsTable as s, searchAutocompleteTable as a } from "../../components/SynapseHomepageV2/SynapseHomepageV2.js";
import { registerTableQueryResult as e } from "../msw/handlers/tableQueryService.js";
const t = {
concreteType: "org.sagebionetworks.repo.model.table.QueryResultBundle",
queryResult: {
concreteType: "org.sagebionetworks.repo.model.table.QueryResult",
queryResults: {
concreteType: "org.sagebionetworks.repo.model.table.RowSet",
tableId: "syn61597084",
etag: "DEFAULT",
headers: [
{
name: "last_updated",
columnType: "DATE",
id: "215940"
},
{
name: "PROJECT_ID",
columnType: "ENTITYID",
id: "84937"
},
{
name: "N_UNIQUE_USERS",
columnType: "INTEGER",
id: "215948"
},
{
name: "LAST_ACTIVITY",
columnType: "DATE",
id: "215953"
},
{
name: "ESTIMATED_PROJECT_SIZE_IN_GIB",
columnType: "DOUBLE",
id: "217429"
},
{
name: "PROJECT_DESCRIPTION",
columnType: "STRING",
id: "237740"
}
],
rows: [
{
rowId: 1,
versionNumber: 0,
values: [
"1738454400000",
"syn2580853",
"584",
"1738281600000",
"863412.373",
"Alzheimer's Disease Knowledge Portal"
]
},
{
rowId: 2,
versionNumber: 0,
values: [
"1738454400000",
"syn3193805",
"186",
"1738281600000",
"124.503",
null
]
},
{
rowId: 3,
versionNumber: 0,
values: [
"1738454400000",
"syn51364943",
"165",
"1738281600000",
"8736.523",
"UKB-PPP: UK Biobank Pharma Proteomics Project"
]
},
{
rowId: 4,
versionNumber: 0,
values: [
"1738454400000",
"syn7222066",
"131",
"1738281600000",
"26.378",
"AACR Project GENIE"
]
},
{
rowId: 5,
versionNumber: 0,
values: [
"1738454400000",
"syn51156910",
"127",
"1738281600000",
"178.076",
"International Brain Tumor Segmentation (BraTS) 2023 challenge"
]
},
{
rowId: 6,
versionNumber: 0,
values: [
"1738454400000",
"syn53708249",
"99",
"1738281600000",
"286.878",
"International Brain Tumor Segmentation (BraTS) 2024 challenge"
]
},
{
rowId: 7,
versionNumber: 0,
values: [
"1738454400000",
"syn26710600",
"62",
"1738281600000",
"37790.013",
"Arthritis and Autoimmune and Related Diseases Knowledge Portal"
]
},
{
rowId: 8,
versionNumber: 0,
values: [
"1738454400000",
"syn26451327",
"57",
"1738281600000",
"0.01",
"Neurofibromatosis Data Portal"
]
},
{
rowId: 9,
versionNumber: 0,
values: [
"1738454400000",
"syn49637038",
"53",
"1738281600000",
"22403.122",
null
]
},
{
rowId: 10,
versionNumber: 0,
values: [
"1738454400000",
"syn50614194",
"39",
"1738195200000",
"32.626",
"FACED: Finer-grained Affective Computing EEG Dataset"
]
}
]
}
}
}, i = {
concreteType: "org.sagebionetworks.repo.model.table.QueryResultBundle",
queryResult: {
concreteType: "org.sagebionetworks.repo.model.table.QueryResult",
queryResults: {
concreteType: "org.sagebionetworks.repo.model.table.RowSet",
tableId: "syn61588163",
etag: "DEFAULT",
headers: [
{
name: "last_updated",
columnType: "DATE",
id: "215940"
},
{
name: "total_data_size_in_pib",
columnType: "DOUBLE",
id: "215937"
},
{
name: "active_users_last_month",
columnType: "INTEGER",
id: "215941"
},
{
name: "total_downloads_last_month",
columnType: "INTEGER",
id: "215942"
}
],
rows: [
{
rowId: 1,
versionNumber: 0,
values: ["1719902813000", "3.219719125", "5655", "5089860"]
}
]
}
}
}, l = {
concreteType: "org.sagebionetworks.repo.model.table.QueryResultBundle",
queryResult: {
concreteType: "org.sagebionetworks.repo.model.table.QueryResult",
queryResults: {
concreteType: "org.sagebionetworks.repo.model.table.RowSet",
tableId: "syn61670075",
etag: "1c1c44ef-5c81-45ff-96d9-12aa16848025",
headers: [
{
name: "friendlyName",
columnType: "STRING",
id: "188120"
},
{
name: "title",
columnType: "STRING",
id: "117361"
},
{
name: "description",
columnType: "STRING",
id: "216102"
},
{
name: "tags",
columnType: "STRING_LIST",
id: "216103"
},
{
name: "image",
columnType: "FILEHANDLEID",
id: "127219"
},
{
name: "logo",
columnType: "FILEHANDLEID",
id: "132752"
}
],
rows: [
{
rowId: 1,
versionNumber: 6,
values: [
"BSMN Portal",
"Advancing mental health and development",
"Exploring genetic changes in the brain is key to understanding neuropsychiatric conditions We provide in-depth sequencing datasets and computational tools to find new interventions for Bipolar Disorder, Schizophrenia, and Autism Spectrum Disorder.",
'["Schizophrenia", "Autism"]',
"144330224",
"144330422"
]
},
{
rowId: 2,
versionNumber: 6,
values: [
"AD Knowledge Portal",
"Halting Neurodegeneration",
"Growing datasets, and the connections between them, offer fresh hope in the treatment of Alzheimer’s disease and related dementias. The AD Knowledge Portal is a one-of-a-kind community platform for insights into the aging brain. The portal is helping researchers to identify new biomarkers and drug targets for Alzheimer’s, as well as better ways to understand patient symptoms.",
'["Alzheimer’s Disease"]',
"144330219",
"144330430"
]
},
{
rowId: 3,
versionNumber: 6,
values: [
"NF Portal",
"Solving the mystery of rare diseases",
"Understudied conditions like neurofibromatosis (NF) and schwannomatosis have little to no treatment options. We offer a hub for research tools, experimental data, and community initiatives that can generate breakthroughs.",
'["Neurofibromatosis"]',
"144330210",
"144330440"
]
}
]
}
}
}, u = {
concreteType: "org.sagebionetworks.repo.model.table.QueryResultBundle",
queryResult: {
concreteType: "org.sagebionetworks.repo.model.table.QueryResult",
queryResults: {
concreteType: "org.sagebionetworks.repo.model.table.RowSet",
tableId: "syn61609402",
etag: "e8d57a89-5545-433e-9a29-0d70cf79b458",
headers: [
{
name: "id",
columnType: "ENTITYID",
id: "81721"
},
{
name: "isFeatured",
columnType: "BOOLEAN",
id: "121541"
},
{
name: "community",
columnType: "STRING",
id: "216210"
},
{
name: "name",
columnType: "STRING",
id: "85359"
},
{
name: "description",
columnType: "MEDIUMTEXT",
id: "194033"
},
{
name: "contributors",
columnType: "STRING",
id: "216211"
},
{
name: "keywords",
columnType: "STRING_LIST",
id: "116273"
},
{
name: "individuals",
columnType: "STRING",
id: "216212"
},
{
name: "image",
columnType: "FILEHANDLEID",
id: "127219"
},
{
name: "size",
columnType: "DOUBLE",
id: "111683"
},
{
name: "sizeUnit",
columnType: "STRING",
id: "216213"
},
{
name: "dimensions",
columnType: "STRING",
id: "216214"
}
],
rows: [
{
rowId: 3,
versionNumber: 24,
values: [
"syn52623570",
"true",
"Arthritis and Autoimmune and Related Diseases",
"AMP RA/SLE Phase II Single Cell CyTOF PBMC Profiling Data",
"This dataset includes single cell CyTOF data from the AMP RA/SLE Phase II study, profiling PBMCs across five panels (B cell, T cell, Myeloid, NK cell, and Granulocyte) from individuals with autoimmune conditions and controls. ",
"Accelerating Medicines Partnership",
'["Rheumatoid Arthritis", "Systemic Lupus Erythematosus"]',
"331",
null,
"353",
"GB",
null
]
},
{
rowId: 4,
versionNumber: 24,
values: [
"syn53132831",
"true",
"Neurofibromatosis",
"Whole exome sequencing of Johns Hopkins NF1 Biospecimen Repository cohort",
"Whole exome sequencing of 68 patients, with seven labeled primary tumor types and control samples.",
"Johns Hopkins Medical Institute",
'["preclinical therapeutics", "rare disease"]',
"68",
null,
"1.16",
"TB",
null
]
},
{
rowId: 6,
versionNumber: 24,
values: [
"syn55234548",
"true",
"GENIE",
"GENIE Release 15.1-public",
"Latest release of the data within GENIE shared with the global research community. The database currently contains CLIA-/ISO-certified genomic data obtained during the course of routine practice at multiple international institutions",
"AACR Project GENIE",
'["real-world data", "clinical-grade"]',
"171957",
null,
"1.8",
"GB",
null
]
},
{
rowId: 13,
versionNumber: 25,
values: [
"syn51732482",
"true",
"Alzheimer's Disease",
"The Accelerating Medicines Partnership Alzheimer's Disease Diverse Cohorts Study",
"This study provides post-mortem whole genome sequencing and brain bulk RNA sequencing data from over 850 individuals, including 288 Black or African American individuals and 330 Hispanic individuals representing the spectrum of Alzheimer’s Disease phenotypes.",
"AMP-AD Consortium",
'["Alzheimer’s Disease", "genomics", "diversity"]',
null,
null,
null,
null,
null
]
},
{
rowId: 14,
versionNumber: 26,
values: [
"syn4993293",
"true",
"Digital Health",
"mPower Mobile Parkinson Disease Study",
"mPower is a large, longitudinal study which piloted new approaches to monitoring key indicators of Parkinson disease progression and diagnosis incorporating traditional behavioral symptom measurements along with novel metrics gleaned from sensor-rich mobile devices.",
"Sage Bionetworks",
`["neurology", "Parkinson's"]`,
"8320",
null,
null,
null,
null
]
}
]
}
}
}, d = {
concreteType: "org.sagebionetworks.repo.model.table.QueryResultBundle",
queryResult: {
concreteType: "org.sagebionetworks.repo.model.table.QueryResult",
queryResults: {
concreteType: "org.sagebionetworks.repo.model.table.RowSet",
tableId: "syn61670515",
etag: "DEFAULT",
headers: [
{
name: "last_updated",
columnType: "DATE",
id: "215940"
},
{
name: "top_searched",
columnType: "STRING",
id: "216105"
}
],
rows: [
{
rowId: 1,
versionNumber: 0,
values: ["1720470893000", "rosmap"]
},
{
rowId: 2,
versionNumber: 0,
values: ["1720470893000", "brats"]
},
{
rowId: 3,
versionNumber: 0,
values: ["1720470893000", "genie"]
},
{
rowId: 4,
versionNumber: 0,
values: ["1720470893000", "htan"]
},
{
rowId: 5,
versionNumber: 0,
values: ["1720470893000", "alzheimer"]
},
{
rowId: 6,
versionNumber: 0,
values: ["1720470893000", "ukb"]
},
{
rowId: 7,
versionNumber: 0,
values: ["1720470893000", "amp-ad"]
},
{
rowId: 8,
versionNumber: 0,
values: ["1720470893000", "msbb"]
},
{
rowId: 9,
versionNumber: 0,
values: ["1720470893000", "mpower"]
},
{
rowId: 10,
versionNumber: 0,
values: ["1720470893000", "parkinson"]
}
]
}
}
};
function p() {
e(
{
sql: `SELECT *
FROM ${o}`,
sort: [
{
column: "last_updated",
direction: "DESC"
},
{
column: "N_UNIQUE_USERS",
direction: "DESC"
}
]
},
t
), e(
{
sql: `SELECT *
FROM ${n}`,
sort: [
{
column: "last_updated",
direction: "DESC"
}
]
},
i
), e(
{
sql: `SELECT *
FROM ${r}`,
sort: [
{
column: "order",
direction: "ASC"
}
]
},
l
), e(
{
sql: `SELECT *
FROM ${s}`,
sort: []
},
u
), e(
{
sql: `SELECT *
FROM ${a}`
},
d
);
}
export {
u as mockHomepageFeaturedDatasetsQueryResultBundle,
i as mockHomepageGeneralStatsQueryResultBundle,
d as mockHomepageSearchAutocompleteQueryResultBundle,
l as mockHomepageSynapseInActionQueryResultBundle,
t as mockHomepageTrendingQueryResultBundle,
p as registerSynapseHomepageMockQueries
};
//# sourceMappingURL=mockHomepageQueryResultData.js.map