-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds support for negative charges and custom charge carriers for merc…
…ury7
- Loading branch information
Showing
5 changed files
with
330 additions
and
230 deletions.
There are no files selected for viewing
71 changes: 40 additions & 31 deletions
71
src/TopDownProteomics/MassSpectrometry/IIsotopicDistribution.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,49 @@ | ||
using System.Collections.Generic; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace TopDownProteomics.MassSpectrometry | ||
namespace TopDownProteomics.MassSpectrometry; | ||
|
||
/// <summary> | ||
/// Neutral distribution of isotopes in a mass spectrometer. | ||
/// </summary> | ||
public interface IIsotopicDistribution | ||
{ | ||
/// <summary> | ||
/// Neutral distribution of isotopes in a mass spectrometer. | ||
/// Gets the length. | ||
/// </summary> | ||
int Length { get; } | ||
|
||
/// <summary> | ||
/// Gets the masses. | ||
/// </summary> | ||
public interface IIsotopicDistribution | ||
{ | ||
/// <summary> | ||
/// Gets the length. | ||
/// </summary> | ||
int Length { get; } | ||
IList<double> Masses { get; } | ||
|
||
/// <summary> | ||
/// Gets the masses. | ||
/// </summary> | ||
IList<double> Masses { get; } | ||
/// <summary> | ||
/// Gets the intensities. | ||
/// </summary> | ||
IList<double> Intensities { get; } | ||
|
||
/// <summary> | ||
/// Gets the intensities. | ||
/// </summary> | ||
IList<double> Intensities { get; } | ||
/// <summary> | ||
/// Creates a charged isotopic distribution. | ||
/// </summary> | ||
/// <param name="charge">The charge.</param> | ||
/// <param name="positiveCharge">if set to <c>true</c> [positive charge].</param> | ||
/// <returns>A charged isotopic distribution with the same abundances.</returns> | ||
[Obsolete("Use CreateChargedDistribution(int charge, double chargeCarrier) instead.")] | ||
IChargedIsotopicDistribution CreateChargedDistribution(int charge, bool positiveCharge); | ||
|
||
/// <summary> | ||
/// Creates a charged isotopic distribution. | ||
/// </summary> | ||
/// <param name="charge">The charge.</param> | ||
/// <param name="positiveCharge">if set to <c>true</c> [positive charge].</param> | ||
/// <returns>A charged isotopic distribution with the same abundances.</returns> | ||
IChargedIsotopicDistribution CreateChargedDistribution(int charge, bool positiveCharge = true); | ||
/// <summary> | ||
/// Creates a charged isotopic distribution. | ||
/// </summary> | ||
/// <param name="charge">The charge.</param> | ||
/// <param name="chargeCarrier">The charge carrier.</param> | ||
/// <returns>A charged isotopic distribution with the same abundances.</returns> | ||
IChargedIsotopicDistribution CreateChargedDistribution(int charge, double chargeCarrier = Utility.Proton); | ||
|
||
/// <summary> | ||
/// Clones the distribution and shifts it by a mass (Da) value. | ||
/// </summary> | ||
/// <param name="shift">The shift mass in daltons (Da).</param> | ||
/// <returns></returns> | ||
IIsotopicDistribution CloneAndShift(double shift); | ||
} | ||
/// <summary> | ||
/// Clones the distribution and shifts it by a mass (Da) value. | ||
/// </summary> | ||
/// <param name="shift">The shift mass in daltons (Da).</param> | ||
/// <returns>The cloned distribution shifted by the specified mass.</returns> | ||
IIsotopicDistribution CloneAndShift(double shift); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.