Plotting Module (CLI)

Plotting Module (CLI)#

After completing the analysis with the calculation module, the next step is to generate the visual reports. Below are the methods to run the plotting module.

Automatic Mode#

Once the calculation module has completed the analysis, the terminal will ask you if Do you want to run the MEGqc plotting module on the MEGqc results? (y/n). Entering y will automatically start the plotting module.

Then the terminal will display where can you find your calculation derivatives folder. It should look like this:

/path/to/your/dataset/derivatives/Meg_QC/calculation

Manual Mode#

To run the plotting module manually, use the following command in your terminal including a filepath to the root of your dataset folder. MEGqc will find the derivatives folder within the dataset, so you just need the path to the dataset, not the derivatives.

run-megqc-plotting --inputdata </path/to/your/dataset/>

Which reports will be created?

MEGqc will create reports of all the derivatives it founds within the /calculation folder of your dataset’s derivatives. This means, all subjects, sessions, tasks, runs, metrics and sensors you have analyzed before. Be aware of this before you run the plotting module!

Congratulations!#

You’re done’! The HTML reports are now available in the derivatives folder of your dataset (next to the calculation derivatives):

/path/to/your/dataset/derivatives/Meg_QC/reports/subject

Open these reports in Chrome or Firefox to explore the interactive plots and visualize of the quality control analysis of your dataset!