From 4d7c086aecf1069fbbb9a702ced5c447513b16c8 Mon Sep 17 00:00:00 2001 From: Jacob Clark Date: Wed, 22 Nov 2023 16:45:56 -0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20Updated=20samples=20table?= =?UTF-8?q?=20headers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/guided-mode/guided-curate-dataset.js | 12 ++++++++---- sections/guided_mode/guided_curate_dataset.html | 14 +++++++------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/scripts/guided-mode/guided-curate-dataset.js b/scripts/guided-mode/guided-curate-dataset.js index 8e8eb93e8..1b160888c 100644 --- a/scripts/guided-mode/guided-curate-dataset.js +++ b/scripts/guided-mode/guided-curate-dataset.js @@ -10241,14 +10241,14 @@ const renderSubjectSampleAdditionTable = (subject) => { - Enter a unique sample ID for each sample taken from subject ${subject.subjectName} + Samples taken from ${subject.subjectName} @@ -11638,9 +11638,13 @@ const guidedOpenEntityAdditionSwal = async (entityName) => { }); } }; - + `${entityNameSingular} addition`; const additionConfirmed = await Swal.fire({ - title: `${entityNameSingular} addition`, + title: `${ + entityName.startsWith("sub-") + ? `Add samples taken from ${entityName}` + : `${entityNameSingular} addition` + }`, html: `

Enter a unique ${entityNameSingular} ID and press enter or the diff --git a/sections/guided_mode/guided_curate_dataset.html b/sections/guided_mode/guided_curate_dataset.html index 259be2020..1eeb88b93 100644 --- a/sections/guided_mode/guided_curate_dataset.html +++ b/sections/guided_mode/guided_curate_dataset.html @@ -1362,17 +1362,17 @@

src="assets/img/subjects-samples-spreadseet-example.png" />

- Subject ID column: For each subject in your dataset, enter the subject's - name prefaced with 'sub-'. + Subject ID column: Type each subject's name here, starting with 'sub-'. + Avoid using special characters or spaces.

- Sample ID column: For each sample taken from a subject in your dataset, - enter the sample's name prefaced with 'sam-'. All sample names must be unique. + Sample ID column: Type each sample's name here, starting with 'sam-'. + Make sure each sample has a unique name. All sample names must be different. + Avoid using special characters or spaces.

- Note: If the subjects in your dataset contain multiple samples, the - subject ID can be duplicated in the 'Subject ID' column with each sample taken - from the subject listed in the 'Sample ID' column. + Note: If a subject has more than one sample, repeat the subject's name + in the 'Subject ID' column for each sample.