@@ -143,7 +143,7 @@ function IntroPopup({ onDataLoad, onLoadingStart, closePopup, isLoading, isDark
143143 ( f . includes ( "_metrics.tsv" ) && ! f . toLowerCase ( ) . includes ( "pca" ) ) ||
144144 ( f . startsWith ( "tedana_20" ) && f . endsWith ( ".tsv" ) ) ||
145145 ( f . includes ( "_mixing.tsv" ) && ! f . toLowerCase ( ) . includes ( "pca" ) && ! f . toLowerCase ( ) . includes ( "orth" ) ) ||
146- ( f . includes ( "stat-z_components .nii.gz" ) && f . toLowerCase ( ) . includes ( "ica" ) ) ||
146+ ( f . includes ( "_components .nii.gz" ) && f . toLowerCase ( ) . includes ( "ica" ) && ! f . includes ( "stat-z ") ) ||
147147 f === "betas_OC.nii.gz" ||
148148 f . includes ( "_mask.nii" ) ||
149149 f . includes ( "CrossComponent_metrics.json" ) ||
@@ -261,8 +261,8 @@ function IntroPopup({ onDataLoad, onLoadingStart, closePopup, isLoading, isDark
261261 setLoadingProgress ( ( prev ) => ( { ...prev , current : prev . current + 1 } ) ) ;
262262 }
263263
264- // ICA stat-z components NIfTI
265- if ( ( filename . includes ( "stat-z_components .nii.gz" ) && filename . toLowerCase ( ) . includes ( "ica" ) ) || filename === "betas_OC.nii.gz" ) {
264+ // ICA components NIfTI
265+ if ( ( filename . includes ( "_components .nii.gz" ) && filename . toLowerCase ( ) . includes ( "ica" ) && ! filename . includes ( "stat-z ") ) || filename === "betas_OC.nii.gz" ) {
266266 const response = await fetch ( `/${ filepath } ` ) ;
267267 niftiBuffer = await response . arrayBuffer ( ) ;
268268 setLoadingProgress ( ( prev ) => ( { ...prev , current : prev . current + 1 } ) ) ;
@@ -408,7 +408,7 @@ function IntroPopup({ onDataLoad, onLoadingStart, closePopup, isLoading, isDark
408408 ( f . name . startsWith ( "tedana_20" ) && f . name . endsWith ( ".tsv" ) ) ||
409409 // New files for Niivue integration
410410 ( f . name . includes ( "_mixing.tsv" ) && ! f . name . toLowerCase ( ) . includes ( "pca" ) && ! f . name . toLowerCase ( ) . includes ( "orth" ) ) ||
411- ( f . name . includes ( "stat-z_components .nii.gz" ) && f . name . toLowerCase ( ) . includes ( "ica" ) ) ||
411+ ( f . name . includes ( "_components .nii.gz" ) && f . name . toLowerCase ( ) . includes ( "ica" ) && ! f . name . includes ( "stat-z ") ) ||
412412 f . name === "betas_OC.nii.gz" ||
413413 f . name . includes ( "_mask.nii" ) ||
414414 f . name . includes ( "CrossComponent_metrics.json" ) ||
@@ -519,8 +519,8 @@ function IntroPopup({ onDataLoad, onLoadingStart, closePopup, isLoading, isDark
519519 setLoadingProgress ( ( prev ) => ( { ...prev , current : prev . current + 1 } ) ) ;
520520 }
521521
522- // ICA stat-z components NIfTI (4D brain maps for Niivue)
523- if ( ( filename . includes ( "stat-z_components .nii.gz" ) && filename . toLowerCase ( ) . includes ( "ica" ) ) || filename === "betas_OC.nii.gz" ) {
522+ // ICA components NIfTI (4D brain maps for Niivue)
523+ if ( ( filename . includes ( "_components .nii.gz" ) && filename . toLowerCase ( ) . includes ( "ica" ) && ! filename . includes ( "stat-z ") ) || filename === "betas_OC.nii.gz" ) {
524524 niftiBuffer = await readFileAsArrayBuffer ( file ) ;
525525 setLoadingProgress ( ( prev ) => ( { ...prev , current : prev . current + 1 } ) ) ;
526526 }
0 commit comments