Enabling QC buttons in QC HTML

AFNI version info (afni -ver): Precompiled binary macos_13_ARM: Feb 20 2025 (Version AFNI_25.0.06 'Severus Alexander')

While trying to rate/comment in the QC HTML file, the QC buttons are inactive. Hovering over the "RATE" button shows that automatic saving is off. How can I turn it on?

Thanks,
Parth

Hi, Parth-

Firstly, you have to use open_apqc.py to open the HTML file(s). If you have done that but don't see the buttons working, then you probably need the Flask and Flask-cors Python modules. Is that what the text in the terminal tells you when you run:

open_apqc.py -infiles <PATH>/index.html

? Also note that you can have more than one HTML listed there, and open up multiple ones simultaneously.

We list these as part of the Miniconda install instructions here. Specifically, the current Python package dependencies you should have for using AFNI (though, future readers, this might adapt over time) are:

  - python
  - "matplotlib>=2.2.3"       # minimal ver for 'pythonic' APQC HTML
  - numpy
  - scipy
  - "flask>=2.1.2"            # for local server for APQC HTML 
  - "flask-cors>=3.0.10"      # for local server for APQC HTML 

Note that you do not have to regenerate the APQC HTML or anything. It should just work.

More descriptions of the APQC HTML are provided:

--pt

Thank you for your detailed response, Paul. I was not using open_apqc.py, but then I got reminded of that while looking at the QC talk you did for the recent AFNI Bootcamp. Everything is working now!

It might be helpful for you to know that this command is not mentioned on the AFNI tutorial on QC (12.4. APQC: afni_proc.py quality control — AFNI, SUMA and FATCAT: v25.0.07) and the (older) AFNI Bootcamp video (https://www.youtube.com/watch?v=mPSH5UROt98&list=PL_CD549H9kgq-_HSwvH5KhFl8A15u6d71&index=46) on the AFNI Academy YouTube channel, which talk about browser restrictions due to security and (in)ability to save local files, and used afni_open -b.

Thanks again,
Parth

Hi, Parth-

Those are good suggestions, and we will update the docs, thanks for those pointers!

--pt

1 Like

That's a good reminder about the docs. The youtube video you reference is about a year older than open_apqc.py, and is due for a remaking...

-rick

1 Like