Skip to content

Confusion about configfile usage in GGIR #1473

@javierlealmartin

Description

@javierlealmartin

Hi community!

I would like to ask for some clarification and share a possible improvement regarding the explanation of the configfile parameter in the GGIR documentation (https://wadpac.github.io/GGIR/articles/chapter2_Pipeline.html#configuration-file-).

Image

From my reading of the first paragraph of the Configuration file section, I find it somewhat unclear whether configfile is used to specify an alternative directory for saving a new (re-run) config.csv file (to avoid overwriting an annotated version), or to retrieve GGIR parameter settings so that explicit calls in the R source or console can be avoided. The second paragraph of the section helped clarify this somewhat, pointing toward the second interpretation, but the overall explanation still feels a bit blurred to me.

Based on my interpretation, I suggest the section’s paragraphs could be clarified as follows (amendments are shown in bold and italic):

GGIR stores all the parameter values in a csv-file named config.csv. The file is stored after each run of GGIR in the root of the output folder, overwriting any existing config.csv file. So, if you would like to add annotations in the file, for example in the fourth column, then you will need to store it somewhere outside the output folder to avoid overwriting and preserve those changes. The config.csv file can also be used to run GGIR with the parameter settings it contains, so that explicit parameter calls in the R source or console are not needed. This can be done by specifying the path to the config.csv file using the configfile parameter. Note that the datadir and outputdir parameters discussed below always need to be specified directly and are not part of the configfile.
library(GGIR)

The practical value of this is that it eases the replication of the analysis, because instead of having to share you R script with colleagues, sharing your config.csv file will be sufficient for GGIR to retrieve the suitable parameter settings. Please make sure you have the same GGIR and R version installed when using this for reproducibility. See here for guidance on how to install older package versions.

Please let me know if this change makes sense to you, or if you see it differently.

Thank you very much in advance!

Best
Javier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions