Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created MSDataScanTable #13

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MetaPAL.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33712.159
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MetaPAL", "MetaPAL\MetaPAL.csproj", "{FC18E2D7-18AD-4174-8C2A-6AF4B36F73ED}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MetaPAL", "MetaPAL\MetaPAL.csproj", "{FC18E2D7-18AD-4174-8C2A-6AF4B36F73ED}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ThermoFisher.CommonCore.Data.Business;
using MassSpectrometry;

namespace MetaPAL.Models
namespace MetaPAL.ControlledVocabulary
{
public static class PsiMsTypes
{
Expand Down Expand Up @@ -156,14 +156,14 @@ public enum MassAnalyzerType
Unknown
}

/// <summary>
/// Convert mzLib's DissociationType to DissociationMethodType. Most dissociation methods map to a PSI term.
/// DissociationTypes Unknown, AnyActivationType, Custom, and Autodetect are converted to DissociationMethodType.Unknown.
/// Null value in = null value out
/// </summary>
public static DissociationMethodType? ToDissociationMethodType(this DissociationType? type)
/// <summary>
/// Convert mzLib's DissociationType to DissociationMethodType. Most dissociation methods map to a PSI term.
/// DissociationTypes Unknown, AnyActivationType, Custom, and Autodetect are converted to DissociationMethodType.Unknown.
/// Null value in = null value out
/// </summary>
public static DissociationMethodType? ToDissociationMethodType(this DissociationType? type)
{
switch(type)
switch (type)
{
case DissociationType.CID:
return DissociationMethodType.CollisionInducedDissociation;
Expand Down
2 changes: 2 additions & 0 deletions MetaPAL/Data/ApplicationDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ protected override void OnModelCreating(ModelBuilder builder)
}

public DbSet<MetaPAL.Models.SpectrumMatch>? SpectrumMatch { get; set; }

public DbSet<MsDataScanModel>? MsDataScans { get; set; }
}
}
Loading
Loading