ChemSharp 1.0.8
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ChemSharp --version 1.0.8
NuGet\Install-Package ChemSharp -Version 1.0.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ChemSharp" Version="1.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ChemSharp --version 1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ChemSharp, 1.0.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ChemSharp as a Cake Addin #addin nuget:?package=ChemSharp&version=1.0.8 // Install ChemSharp as a Cake Tool #tool nuget:?package=ChemSharp&version=1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Chem# (ChemSharp)
ChemSharp |
|
ChemSharp.Molecules |
|
ChemSharp.Spectroscopy |
|
ChemSharp.UnitConversion |
|
ChemSharp.Rendering |
Features
- Open and process Spectroscopy related files (see Supported Filetypes)
- Open and process Molecular files (see Supported Filetypes)
- Sum formula operations and elemental analysis calculation
- Unit Conversion for (Energy, Magnetic Units, Mass)
- Using Elemental Data from https://github.com/JensKrumsieck/periodic-table and natural constants
Basic Usage (See Wiki)
Create Spectra
//Creates an UV/Vis Spectrum
const string path = "files/uvvis.dsw";
var uvvis = SpectrumFactory.Create(path);
//You can also create spectra by choosing the provider
//explicitly. e.g. csv files
//Reads in an CSV Spectrum (first data only)
const string path = "files/uvvis.csv";
var prov = new GenericCSVProvider(path);
var uvvis = new Spectrum(prov);
//To read in all CSV Data stored as (X,Y) pairs use the MultiCSVProvider
//Each Spectrum will be stored as DataPoint[] in MultiXYData
const string file = "files/multicsv.csv";
var provider = new MultiCSVProvider(file);
Create Molecules
//Creates a molecule from cif file
const string path = "files/cif.cif";
var mol = MoleculeFactory.Create(path);
//You can also create molecules by selecting the provider yourself
const string path = "files/benzene.mol2";
var provider = new Mol2DataProvider(path);
var mol = new Molecule(provider);
//...or by just adding the Atoms & Bonds as Lists
const string path = "files/cif.cif";
var provider = new CIFDataProvider(path);
var mol = new Molecule(provider.Atoms, provider.Bonds);
Supported Filetypes
Molecule
Import
- XYZ
- CIF (crystallographic information file)
- MOL2 (TRIPOS Mol2)
- PDB (Protein Data Bank file)
- CDXML (Single Molecule only)
Export
- XYZ
- MOL2
- SVG
- POV (POVRay)
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 (tested with NET Framework 4.7.2 & NET Core 2.1, see Unit Tests)
- NET Standard 2.1 (tested with NET 5.0, see Unit Tests)
- Unity (see Wiki <a href="https://github.com/JensKrumsieck/ChemSharp/wiki/Use-with-Unity"><img src="https://img.shields.io/badge/Unity-100000?logo=unity&logoColor=white"/></a>)
- Godot Engine (see Wiki for Snippet)
How to cite
You can either cite the package with via the DOI: 10.5281/zenodo.4573532 (universal DOI, there is also one for each version if you want to be specific about that. Just click the link 😏) or by linking this repository.
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/SPCViewer/master/.github/spc.png" alt="logo" height="16"/> SPCViewer
- <img src="https://raw.githubusercontent.com/JensKrumsieck/CHN-Tool/master/.github/chn.png" alt="logo" height="16"/> CHN-Tool
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- MathNet.Numerics (>= 4.15.0)
- System.Numerics.Vectors (>= 4.5.0)
-
.NETStandard 2.1
- MathNet.Numerics (>= 4.15.0)
-
net5.0
- MathNet.Numerics (>= 4.15.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on ChemSharp:
Package | Downloads |
---|---|
ChemSharp.Molecules
Chemsharp: Molecule IO (cif, xyz, ...) and Elemental Analysis |
|
ChemSharp.UnitConversion
Chemsharp: UnitConversion |
|
ChemSharp.Spectroscopy
Chemsharp: Spectroscopry IO: NMR, EPR, UVVIS, CSV |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
2.1.1 | 299 | 2/19/2024 | |
2.1.0 | 409 | 7/31/2023 | |
2.0.1 | 455 | 6/20/2023 | |
2.0.0 | 688 | 3/1/2023 | |
2.0.0-beta.1 | 179 | 12/1/2022 | |
2.0.0-alpha.3 | 123 | 9/13/2022 | |
2.0.0-alpha.2 | 101 | 9/5/2022 | |
2.0.0-alpha.1 | 114 | 9/2/2022 | |
1.1.0-beta.2 | 175 | 7/26/2022 | |
1.1.0-beta.1 | 163 | 5/16/2022 | |
1.0.15 | 1,661 | 1/27/2022 | |
1.0.14 | 1,401 | 1/24/2022 | |
1.0.13 | 852 | 12/5/2021 | |
1.0.12 | 739 | 12/5/2021 | |
1.0.11 | 3,669 | 11/25/2021 | |
1.0.10 | 1,116 | 8/6/2021 | |
1.0.9 | 1,107 | 7/2/2021 | |
1.0.8 | 1,083 | 6/18/2021 | |
1.0.7 | 1,090 | 6/16/2021 | |
1.0.6 | 1,128 | 5/20/2021 | |
1.0.5 | 1,058 | 5/20/2021 | |
1.0.4 | 1,263 | 4/4/2021 | |
1.0.3 | 1,083 | 3/30/2021 | |
1.0.2 | 1,024 | 3/29/2021 | |
1.0.1 | 1,096 | 3/9/2021 | |
1.0.0 | 1,040 | 3/2/2021 | |
1.0.0-beta5 | 465 | 2/20/2021 | |
1.0.0-beta4 | 464 | 2/16/2021 | |
1.0.0-beta3 | 562 | 2/11/2021 | |
1.0.0-beta2 | 484 | 2/6/2021 | |
1.0.0-beta1 | 448 | 2/4/2021 | |
1.0.0-alpha20210202 | 444 | 2/2/2021 | |
1.0.0-alpha20210123 | 454 | 1/23/2021 | |
1.0.0-alpha20210105 | 449 | 1/6/2021 | |
1.0.0-alpha2 | 596 | 12/28/2020 |