failed to import PyQt4.QtGui

Hi there;
i am using WSL Ubuntu 20.04 for resting-state fmri analysis.
when i type uber_subject.py command i get this output:

osman@DESKTOP-A849Q2J:~$ uber_subject.py
**** failed to import PyQt4.QtGui ****
PyQt4 must be installed to run the uber_subject.py GUI
→ see the output of: uber_subject.py -help_install

and when i type apt-get install python-qt4 i get:

osman@DESKTOP-A849Q2J:~$ apt-get install python-qt4
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Howdy-

We don’'t recommend using uber_subject.py to set up an analysis—it is much better to to start from an existing code example from an afni_proc.py help example:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/programs/afni_proc.py_sphx.html#examples-options-can-be-provided-in-any-order
or a publication, such as one of the ones here:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/codex/main_toc.html
or from one of the demos we have (e.g., @Install_MACAQUE_DEMO, @Install_MACAQUE_DEMO_REST, @Install_APMULTI_Demo1_rest, …), depending on the kinds of subjects and data you have.

uber_subject.py depends on PyQt4, which isn’t really distributed anymore, either. However, the main reason we haven’t recommended using uber_subject.py is that there are many more options in afni_proc.py than uber_subject.py had.

It is better to start with an existing example, and add to it with whatever considerations/specifications you have.

And you are more than welcome to ask about your example command here, too.

–pt

is there any tutorial or example of resting-state fmri analysis.
i did not find a useful thing over the internet

The AFNI Academy channel has a lot of processing information, which includes aspects important to resting state FMRI:
https://www.youtube.com/c/afnibootcamp

Here are Bootcamp videos about resting state FMRI from our MIT Bootcamp (videos 30 and 31):
https://cbmm.mit.edu/afni
… and AFNI Bootcamp handouts go with those:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/educational/handouts.html#download-specific-afni-handout-s
(see the PDFs with ‘rest’ in their name; if you have installed the Bootcamp data, CD.tgz, then you have those in your afni_handouts/ directory already).

A very useful paper paper by Hang Joon Jo:
https://www.hindawi.com/journals/jam/2013/935154/
… which has informed a lot of the AFNI processing.

And the afni_proc.py examples for resting state have commentary/suggestions/descriptions with them:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/programs/afni_proc.py_sphx.html#examples-options-can-be-provided-in-any-order
There is still a lot of variety in the data people have and what outputs they might want, so there are many examples; seeing the ‘modern’ ones is useful.

This paper is about task FMRI data specifically, but many aspects apply for resting state, too:
https://www.biorxiv.org/content/10.1101/308643v1.abstract
FMRI processing with AFNI: Some comments and corrections on “Exploring the Impact of Analysis Software on Task fMRI Results”

And if you search for ‘rest’ on this page:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/published/citations.html
there are some specific notes/commentaries/tools mentioned, as well.

–pt