Improve Study Info formatting

This commit is contained in:
2024-08-04 22:19:36 -04:00
parent 868e61d64f
commit 68dea8ecb4

View File

@@ -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,8 +1984,8 @@ 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:
@@ -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)