From 68dea8ecb427e83410fc23277b5a216319fc1ce2 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Sun, 4 Aug 2024 22:19:36 -0400 Subject: [PATCH] Improve Study Info formatting --- workflow/qhtcp-workflow | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/workflow/qhtcp-workflow b/workflow/qhtcp-workflow index 99a9c61d..6bc80f0d 100755 --- a/workflow/qhtcp-workflow +++ b/workflow/qhtcp-workflow @@ -1973,7 +1973,7 @@ get_studies() { next_study_entry="$empty_study,$PROJECT_SUFFIX,NA,NA,$INITIALS" - echo "${underline}Study Info${nounderline}" + echo "${underline}Study Info File${nounderline}" if [[ ! -f $1 ]]; then echo "Creating default $1" @@ -1984,12 +1984,12 @@ get_studies() { # Print current studies cat <<-EOF - Give each experiment labels to be used for the plots and specific files. - Enter the desired Experiment names and order them in the way you want them to appear in the REMc heatmaps + * Give each experiment labels to be used for the plots and specific files. + * Enter the desired Experiment names and order them in the way you want them to appear in the REMc heatmaps Current study info file: - ${underline}$1${nounderline} + ${underline}$1${nounderline} $(cat "$1") EOF @@ -1997,9 +1997,17 @@ get_studies() { # Allow user to add/edit the study info file if ! ((YES)); then for ((i=1; i<2; i++)); do - echo "Auto-entry suggestion: $next_study_entry" - echo "Would you like to (a)dd the auto-entry, (e)dit the StudyInfo.csv file in nano, or (c)ontinue?" - read -r -p "Hit [Enter] or c to continue: " response + cat <<-EOF + "Next entry suggestion: $next_study_entry" + + "Would you like to: + * (a)dd the suggested entry + * (e)dit the StudyInfo.csv file manually in nano + * (c)ontinue?" + + EOF + read -r -p "(c): " response + echo "" [[ -z $response ]] && break case $response in a)