Quick Start
This guide will help you get started with NMRAnalysis.jl, even if you're new to Julia.
Installation
If you don't already have Julia installed, download Julia from https://julialang.org/install/ and install according to the instructions on this page.
Verify installation by opening a terminal/command prompt and typing:
juliaYou should see the Julia REPL (interactive prompt) with version information.
Once Julia is installed, you need to add the NMRAnalysis package:
- Enter package mode by pressing
](you'll see the prompt change topkg>) - Add the package by typing:
add NMRAnalysis - Wait for installation - Julia will automatically download and install NMRAnalysis and all its dependencies
- Exit package mode by pressing Backspace
- Enter package mode by pressing
Activate the installation by typing:
using NMRAnalysisYou should see an information message listing the available analysis routines.
The first time you install NMRAnalysis, it may take several minutes to download and compile all dependencies. This is normal and only happens once.
Basic Usage
Navigate to your data directory:
cd("/path/to/your/nmr/data") # Replace with your actual data pathFor example:
cd("/Users/chris/NMR/my_experiment")Load the package:
using NMRAnalysisGet help on any function:
?diffusion # Shows help for diffusion analysis ?r1rho # Shows help for R1ρ analysis
Some examples of analysing 1D experiments:
using NMRAnalysis
# Diffusion analysis - analyzes DOSY experiments
diffusion("106") # Analyze experiment in folder "106"
# TRACT analysis - for rotational correlation times
tract() # Prompt to select experiment folders
# R1ρ relaxation dispersion
r1rho() # Show file selection dialog
r1rho(["11", "12"]) # Analyze experiments 11 and 12
r1rho(["11", "12"], minvSL=500) # Filter low spin-lock strengths2D experiments can be analysed with the interactive graphical interface:
# Relaxation analysis (T1, T2)
relaxation2d(
"expno", # Processed spectra as pseudo-3d
[0.01, 0.03, 0.05] # Relaxation delays (s)
)
# Heteronuclear NOE analysis
hetnoe2d(
["reference/pdata/1", "saturated/pdata/1"], # Reference and saturated spectra
[false, true] # Saturation states
)File formats
NMRAnalysis works with standard Bruker data formats:
# Single experiment (TopSpin experiment number)
diffusion("106")
# Multiple experiments
r1rho(["11", "12", "13"])
# Processed data directories
hetnoe2d(["reference/pdata/1", "saturated/pdata/1"], [false, true])
# Full paths (if data is elsewhere)
diffusion("/Users/chris/NMR/project_data/106")Next Steps
- Check the Analyses section for guides on specific experiment types
- Explore the Tutorials for step-by-step examples
Getting Help
- Use the built-in help system with
?function_name - Please report any problems or suggestions at https://github.com/waudbygroup/NMRAnalysis.jl/issues