Skip to content

Commit

Permalink
Merge pull request #105 from MDAnalysis/0.4
Browse files Browse the repository at this point in the history
Enhanced plotting and visualization.
  • Loading branch information
orionarcher authored May 9, 2024
2 parents c7022aa + e485c5c commit c9957d6
Show file tree
Hide file tree
Showing 18 changed files with 4,660 additions and 377 deletions.
27 changes: 21 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ SolvationAnalysis
---

Solvation analysis implements a robust, cohesive, and fast set of methods
for analyzing the solvation structure of a liquid. It seamlessly integrates with
[MDAnalysis](https://www.mdanalysis.org/), making use of the core AtomGroup
and Universe data structures to parse solvation information. If you are interested
in understanding the solvation structure of a liquid, this package is for you!
for analyzing the solvation structure of a liquid. It integrates with
[MDAnalysis](https://www.mdanalysis.org/) to seamlessly calculate, query,
and visualize solvation information.


Find documentation and tutorials on [readthedocs].
Find documentation and tutorials on [readthedocs](https://solvation-analysis.readthedocs.io/en/latest/).

### Installing SolvationAnalysis

Expand All @@ -35,6 +33,23 @@ pip install solvation-analysis
conda install -c conda-forge solvation_analysis
```

### Solvation Analysis Summarized

![summary](docs/tutorials/images/summary_figure.png)


### Visualization

With just a few lines of code, solvation analysis can calculate detailed
properties within and between solvent systems. A few examples are shown below.

![solvation_analysis.plotting.compare_coordination_numbers](docs/tutorials/images/coordination_plot.png)

![solvation_analysis.plotting.plot_speciation](docs/tutorials/images/speciation_plot.png)

![solvation_analysis.plotting.plot_rdfs](docs/tutorials/images/rdf_plot.png)


### Contributing

Contributions, both issues and PRs, are welcome. If you'd like to contribute, we ask that you
Expand Down
1 change: 1 addition & 0 deletions docs/getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"- Multi Atom Solutes: generalize to solutes with many atoms\n",
"- Visualization: use `nglview` to visualize structures\n",
"- Residence and Networking: calculate residence times and solute-solvent networks\n",
"- Plotting and Comparing: generate illustrative plots of solvation properties\n",
"- RDF Fitting: See how solvation-analysis finds solvation cutoffs\n",
"\n",
"For a full catalog of the properties calculated, read through the API documentation. Solvation-analysis is a powerful tool that calculates a wide range of properties, but it will take some time to master. If you ever have any questions, or encounter any bugs, please raise an issue on [GitHub](https://github.com/MDAnalysis/solvation-analysis).\n"
Expand Down
3,939 changes: 3,864 additions & 75 deletions docs/tutorials/basics_tutorial.ipynb

Large diffs are not rendered by default.

Binary file added docs/tutorials/images/coordination_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tutorials/images/rdf_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tutorials/images/speciation_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tutorials/images/summary_figure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
174 changes: 136 additions & 38 deletions docs/tutorials/plotting_tutorial.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion solvation_analysis/_column_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
NETWORKED = "networked"

# for speciation
COUNT = "count"
COUNT = "fraction"
2 changes: 1 addition & 1 deletion solvation_analysis/coordination.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Coordination:
Parameters
----------
solvation_data : pandas.DataFrame
The solvation data frame output by Solute.
The solvation dataframe output by Solute.
n_frames : int
The number of frames in solvation_data.
n_solutes : int
Expand Down
2 changes: 1 addition & 1 deletion solvation_analysis/pairing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Pairing:
Parameters
----------
solvation_data : pandas.DataFrame
The solvation data frame output by Solute.
The solvation dataframe output by Solute.
n_frames : int
The number of frames in solvation_data.
n_solutes : int
Expand Down
Loading

0 comments on commit c9957d6

Please sign in to comment.