Getting started
Installing AUSAXS¶
Install AUSAXS on any platform by opening a terminal and typing:
python -m pip install "pyausaxs[all]"
ausaxs command, together with the optional plotting and graphical interface dependencies. Check that it works by running:
ausaxs --version
If something goes wrong, see the troubleshooting page.
Terminal says ausaxs is not found?
The folder pip installed ausaxs into is not on your PATH. This mostly happens on Windows, and sometimes on macOS. Add the folder to your PATH by running the commands for your platform, then open a new terminal and try ausaxs --version again:
In PowerShell:
$dir = python -c "from importlib.metadata import files; print(next(f.locate().resolve().parent for f in files('pyausaxs') if f.stem == 'ausaxs'))"
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$dir", "User")
dir=$(python -c "from importlib.metadata import files; print(next(f.locate().resolve().parent for f in files('pyausaxs') if f.stem == 'ausaxs'))")
echo "export PATH=\"\$PATH:$dir\"" >> ~/.zshrc
dir=$(python -c "from importlib.metadata import files; print(next(f.locate().resolve().parent for f in files('pyausaxs') if f.stem == 'ausaxs'))")
echo "export PATH=\"\$PATH:$dir\"" >> ~/.bashrc
The rest of this documentation assumes ausaxs is on your PATH. If you would rather not change it, python -m pyausaxs works in place of ausaxs in every command, e.g. python -m pyausaxs --version.
Next steps¶
- Why use AUSAXS at all? See what sets AUSAXS apart.
- Use a GPU. AUSAXS runs only on the CPU out of the box. To use your GPU, you will have to install the GPU driver first.
- Learn by example. The tutorials walk through complete analyses of real data, from fitting protein structures to validating EM maps.
- Learn what AUSAXS calculates. See the pages on SAXS, SANS, crystals and nanoparticles and powder diffraction.
- Look up an option. Every argument of the command-line tools is listed in the documentation.
Other ways to install¶
If you cannot use Python, you can instead download a precompiled executable or compile AUSAXS from source.
Getting started