failed to import PyQt4.QtGui

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

**** failed to import PyQt4.QtGui ****
PyQt4 must be installed to run the GUI
→ see the output of: -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?


We don’'t recommend using to set up an analysis—it is much better to to start from an existing code example from an help example:
or a publication, such as one of the ones here:
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. depends on PyQt4, which isn’t really distributed anymore, either. However, the main reason we haven’t recommended using is that there are many more options in than 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.


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:

Here are Bootcamp videos about resting state FMRI from our MIT Bootcamp (videos 30 and 31):
… and AFNI Bootcamp handouts go with those:
(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:
… which has informed a lot of the AFNI processing.

And the examples for resting state have commentary/suggestions/descriptions with them:
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:
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:
there are some specific notes/commentaries/tools mentioned, as well.