Command for structure factor calculation

Hi,
I wish to calculate liquid structure factor S(q) which is the Fourier transformation of {g(r)-1} [g(r) is radial distribution function] between two atoms/groups in ionic liquid.
I am doing this by writing the command gmx saxs -f nvt.trr -s nvt.gro -n index.ndx -ng 2 -sq filename.xvg
Is it correct command or there is something else?

Hi
I am not an expert in the calculation of ionic liquid structure S(q). Maybe one of the following tools can help you.
gmx rdf calculates the rdf (then you can script the transformation to S(q) ) gmx rdf — GROMACS 2021 documentation
gmx sans calculate SANS spectra using Debye formula. and it ouput also S(q) gmx sans — GROMACS 2021 documentation
gmx saxs use Cromer’s method gmx sans — GROMACS 2021 documentation
I hope it helps
Alessandra

Thanks alevilla