|
122 | 122 | {% assign age_range_has_semicolon = true %} |
123 | 123 | {% endif %} |
124 | 124 |
|
| 125 | + {% assign n_subject = row["N_subject"] | default: page.sample_size %} |
| 126 | + {% assign n_mr_session = row["N_MR_session"] | default: page.number_of_sessions %} |
| 127 | + {% assign n_subject_has_semicolon = false %} |
| 128 | + {% if n_subject and n_subject != "" and n_subject contains ";" %} |
| 129 | + {% assign n_subject_has_semicolon = true %} |
| 130 | + {% endif %} |
| 131 | + {% assign n_mr_session_has_semicolon = false %} |
| 132 | + {% if n_mr_session and n_mr_session != "" and n_mr_session contains ";" %} |
| 133 | + {% assign n_mr_session_has_semicolon = true %} |
| 134 | + {% endif %} |
| 135 | + {% assign age_show_complete_note = false %} |
| 136 | + {% if n_subject_has_semicolon == false and n_mr_session_has_semicolon == false and n_subject != "" and n_mr_session != "" %} |
| 137 | + {% assign n_subject_num = n_subject | plus: 0 %} |
| 138 | + {% assign n_mr_session_num = n_mr_session | plus: 0 %} |
| 139 | + {% if n_subject_num < n_mr_session_num %} |
| 140 | + {% assign age_show_complete_note = true %} |
| 141 | + {% endif %} |
| 142 | + {% endif %} |
| 143 | + |
125 | 144 | {% if age_mean_sd and age_mean_sd != "" %} |
126 | 145 | <tr> |
127 | | - <th style="font-weight:bold; width:250px;">Age (mean ± SD)</th> |
| 146 | + <th style="font-weight:bold; width:250px;">Age (mean ± SD) |
| 147 | + {% if age_show_complete_note %} |
| 148 | + <br> |
| 149 | + <span style="font-weight:normal;">(Baseline)</span> |
| 150 | + {% endif %} |
| 151 | + </th> |
128 | 152 | <th style="font-weight:normal">{{ age_mean_sd }}</th> |
129 | 153 | <th style="font-weight:normal"></th> |
130 | 154 | </tr> |
131 | 155 | {% endif %} |
132 | 156 |
|
133 | 157 | {% if age_range and age_range != "" and age_range_has_semicolon == false %} |
134 | 158 | <tr> |
135 | | - <th style="font-weight:bold; width:250px;">Age Range</th> |
| 159 | + <th style="font-weight:bold; width:250px;">Age Range |
| 160 | + {% if age_show_complete_note %} |
| 161 | + <br> |
| 162 | + <span style="font-weight:normal;">(Baseline)</span> |
| 163 | + {% endif %} |
| 164 | + </th> |
136 | 165 | <th style="font-weight:normal">{{ age_range }}</th> |
137 | 166 | <th style="font-weight:normal"></th> |
138 | 167 | </tr> |
|
147 | 176 | {% endif %} |
148 | 177 |
|
149 | 178 | {% comment %}=== Standard rendering for all datasets (single-row values) ==={% endcomment %} |
150 | | - {% assign n_subject = row["N_subject"] | default: page.sample_size %} |
151 | | - {% assign n_mr_session = row["N_MR_session"] | default: page.number_of_sessions %} |
152 | 179 | {% assign cubic_path = row["CUBIC"] | default: page.cubic_path %} |
153 | 180 |
|
154 | 181 | {% if cubic_path and cubic_path != "" %} |
|
165 | 192 | <th style="font-weight:normal"></th> |
166 | 193 | </tr> |
167 | 194 |
|
168 | | - {% assign n_subject_has_semicolon = false %} |
169 | | - {% if n_subject and n_subject != "" and n_subject contains ";" %} |
170 | | - {% assign n_subject_has_semicolon = true %} |
171 | | - {% endif %} |
172 | | - {% assign n_mr_session_has_semicolon = false %} |
173 | | - {% if n_mr_session and n_mr_session != "" and n_mr_session contains ";" %} |
174 | | - {% assign n_mr_session_has_semicolon = true %} |
175 | | - {% endif %} |
176 | | - |
177 | 195 | {% if n_subject and n_subject != "" and n_subject_has_semicolon == false %} |
178 | 196 | <tr> |
179 | 197 | <th style="font-weight:bold; width:250px;">N Subjects</th> |
|
292 | 310 | {% assign xcpd_version = row["XCP-D_version"] %} |
293 | 311 | {% assign xcpd_complete = row["XCP-D_N_ses_completed"] %} |
294 | 312 | {% assign xcpd_command = row["XCP-D_command"] %} |
| 313 | + {% assign t1_n_ses = row["T1_N_ses"] %} |
| 314 | + {% assign fl_n_ses = row["FL_N_ses"] %} |
295 | 315 | {% assign nonimaging_raw = row["nonimaging_raw"] %} |
296 | 316 | {% assign nonimaging_data_dictionary = row["Data_Dictionary"] %} |
297 | 317 | {% assign nonimaging_consolidated_v2 = "/cbica/projects/ISTAGING/Pipelines/ISTAGING_Data_Consolidation_2020/v2.0/istaging.csv" %} |
|
374 | 394 | {% endif %} |
375 | 395 | {% endfor %} |
376 | 396 | {% endif %} |
| 397 | + |
| 398 | + {% assign section_t1_n_ses = t1_n_ses %} |
| 399 | + {% if t1_n_ses and t1_n_ses contains "=" %} |
| 400 | + {% assign section_t1_n_ses = "" %} |
| 401 | + {% assign t1_n_ses_parts = t1_n_ses | split: ";" %} |
| 402 | + {% for part in t1_n_ses_parts %} |
| 403 | + {% assign part_stripped = part | strip %} |
| 404 | + {% if part_stripped contains key_prefix %} |
| 405 | + {% assign section_t1_n_ses = part_stripped | replace_first: key_prefix, "" | strip %} |
| 406 | + {% endif %} |
| 407 | + {% endfor %} |
| 408 | + {% endif %} |
| 409 | + |
| 410 | + {% assign section_fl_n_ses = fl_n_ses %} |
| 411 | + {% if fl_n_ses and fl_n_ses contains "=" %} |
| 412 | + {% assign section_fl_n_ses = "" %} |
| 413 | + {% assign fl_n_ses_parts = fl_n_ses | split: ";" %} |
| 414 | + {% for part in fl_n_ses_parts %} |
| 415 | + {% assign part_stripped = part | strip %} |
| 416 | + {% if part_stripped contains key_prefix %} |
| 417 | + {% assign section_fl_n_ses = part_stripped | replace_first: key_prefix, "" | strip %} |
| 418 | + {% endif %} |
| 419 | + {% endfor %} |
| 420 | + {% endif %} |
377 | 421 | {% else %} |
378 | 422 | {% assign section_age_range = age_range %} |
379 | 423 | {% assign section_n_subject = n_subject %} |
380 | 424 | {% assign section_n_mr_session = n_mr_session %} |
| 425 | + {% assign section_t1_n_ses = t1_n_ses %} |
| 426 | + {% assign section_fl_n_ses = fl_n_ses %} |
381 | 427 | {% endif %} |
382 | 428 |
|
| 429 | + {% assign section_age_show_complete_note = false %} |
| 430 | + {% if section_n_subject != "" and section_n_mr_session != "" %} |
| 431 | + {% assign section_n_subject_num = section_n_subject | plus: 0 %} |
| 432 | + {% assign section_n_mr_session_num = section_n_mr_session | plus: 0 %} |
| 433 | + {% if section_n_subject_num < section_n_mr_session_num %} |
| 434 | + {% assign section_age_show_complete_note = true %} |
| 435 | + {% endif %} |
| 436 | + {% endif %} |
383 | 437 | {% if section_age_range and section_age_range != "" and age_range_has_semicolon %} |
384 | 438 | <tr> |
385 | | - <th style="font-weight:bold; width:250px;">Age Range</th> |
| 439 | + <th style="font-weight:bold; width:250px;">Age Range |
| 440 | + {% if section_age_show_complete_note %} |
| 441 | + <br> |
| 442 | + <span style="font-weight:normal;">(Baseline)</span> |
| 443 | + {% endif %} |
| 444 | + </th> |
386 | 445 | <th style="font-weight:normal">{{ section_age_range }}</th> |
387 | 446 | <th style="font-weight:normal"></th> |
388 | 447 | </tr> |
|
672 | 731 | {% endif %} |
673 | 732 | {% endif %} |
674 | 733 |
|
| 734 | + {% comment %}Denominator for complete note: DLMUSE/RAVENS use T1_N_ses, DLWMLS uses FL_N_ses, others use N_MR_session{% endcomment %} |
| 735 | + {% assign p_n_ses = section_n_mr_session %} |
| 736 | + {% if p_key == "DLMUSE" or p_key == "RAVENS" %} |
| 737 | + {% if section_t1_n_ses and section_t1_n_ses != "" %} |
| 738 | + {% assign p_n_ses = section_t1_n_ses %} |
| 739 | + {% endif %} |
| 740 | + {% elsif p_key == "DLWMLS" %} |
| 741 | + {% if section_fl_n_ses and section_fl_n_ses != "" %} |
| 742 | + {% assign p_n_ses = section_fl_n_ses %} |
| 743 | + {% endif %} |
| 744 | + {% endif %} |
| 745 | + |
675 | 746 | <tr> |
676 | 747 | <th style="font-weight:bold; width:250px;"> |
677 | 748 | {% if p_key == "DLMUSE" %} |
|
684 | 755 | {% if p_version and p_version != "" %} |
685 | 756 | <span style="font-weight:normal;">({{ p_version }})</span> |
686 | 757 | {% endif %} |
687 | | - {% if p_complete and p_complete != "" and section_n_mr_session and section_n_mr_session != "" %} |
| 758 | + {% if p_complete and p_complete != "" and p_n_ses and p_n_ses != "" %} |
688 | 759 | <br> |
689 | | - <span style="font-weight:normal;">({{ p_complete }}/{{ section_n_mr_session }} complete)</span> |
| 760 | + <span style="font-weight:normal;">({{ p_complete }}/{{ p_n_ses }} complete)</span> |
690 | 761 | {% endif %} |
691 | 762 | </th> |
692 | 763 | <th style="font-weight:normal"> |
|
0 commit comments