ChemSharp
Library for processing of chemistry related files (aiming at spectroscopy and structural files)
Install / Use
/learn @JensKrumsieck/ChemSharpREADME
NuGet Packages
| | |
|-|-|
| ChemSharp | |
|
ChemSharp.Molecules | |
|
ChemSharp.Molecules.Blazor | |
|
ChemSharp.Molecules.HelixToolkit | |
|
ChemSharp.Spectroscopy | |
|
ChemSharp.UnitConversion | |
<sup>CI Releases at: <a href="https://github.com/JensKrumsieck/ChemSharp/packages/">GitHub Packages</a> </sup>
Features
- Open and process Molecular files (see Supported Filetypes)
- Sum formula operations and elemental analysis calculation
- Using Elemental Data from https://github.com/JensKrumsieck/periodic-table
- Blazor view for molecules using three.js
- Open and process Spectroscopy related files (see Supported Filetypes)
- Unit Conversion for (Energy, Magnetic Units, Mass)
Basic Usage
Create Molecules
Molecules can be created in a lot of ways. The easiest way is to use MoleculeFactory.Create, which accepts a string path.
//Creates a molecule from cif file
const string path = "files/cif.cif";
var mol = Molecule.FromFile(path);
Create Spectra
Spectra can be created by using the Spectrum.FromFile Method.
//Creates an UV/Vis Spectrum
const string path = "files/uvvis.dsw";
var uvvis = Spectrum.FromFile(path);
Supported Filetypes
-
Molecule
- Import (XYZ, CIF (crystallographic information file, CCDC), MOL2 (TRIPOS Mol2), PDB (Protein Data Bank file), MOL (MDL MOL, ChemSpider), CDXML (Single Molecule only, 2D))
- Export (XYZ, MOL2)
-
Spectroscopy
- Import (Varian/Agilient DSW, Bruker EMX SPC/PAR, Bruker TopSpin (fid, (1r/1i processed spectra), JCAMP-DX ( acqus, procs, ...)), CSV)
- Export (CSV)
Used Libraries:
Compatibility
- .NET Standard 2.0, .NET Standard 2.1, .NET 5, .NET 6
- Blazor (see ChemSharp.Molecules.Blazor)
- <a href="https://github.com/JensKrumsieck/ChemSharp/wiki/Use-with-HelixToolkit-(WPF)">HelixToolkit</a> via ChemSharp.Molecules.HelixToolkit
- Unity (see https://github.com/JensKrumsieck/ChemSharpUnityExample)
Used by (Highlights):
- <img src="https://github.com/JensKrumsieck/PorphyStruct/blob/master/PorphyStruct.WPF/Resources/porphystruct.png" alt="logo" height="16"/> PorphyStruct
- <img src="https://raw.githubusercontent.com/JensKrumsieck/CHN-Tool/master/.github/chn.png" alt="logo" height="16"/> CHN-Tool
Stats
Related Skills
vue-3d-experience-skill
A comprehensive learning roadmap for mastering 3D Creative Development using Vue 3, Nuxt, and TresJS.
orbit-planning
O.R.B.I.T. - strategic project planning before you build. Objective, Requirements, Blueprint, Implementation Roadmap, Track.
next
A beautifully designed, floating Pomodoro timer that respects your workspace.
roadmap
A beautifully designed, floating Pomodoro timer that respects your workspace.
