-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #683 from zrolfs/newmodernzach
Small edits
- Loading branch information
Showing
8 changed files
with
122 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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
46 changes: 46 additions & 0 deletions
46
EngineLayer/PrecursorSearchModes/HighTheoreticalDiffAcceptor.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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using MzLibUtil; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
|
||
namespace EngineLayer | ||
{ | ||
public class OpenHighTheoSearchMode : MassDiffAcceptor | ||
{ | ||
#region Public Constructors | ||
|
||
public OpenHighTheoSearchMode() : base("OpenHigh") | ||
{ | ||
} | ||
|
||
#endregion Public Constructors | ||
|
||
#region Public Methods | ||
|
||
public override int Accepts(double scanPrecursorMass, double peptideMass) | ||
{ | ||
if (scanPrecursorMass < peptideMass + 1) | ||
return 0; | ||
else | ||
return -1; | ||
} | ||
|
||
public override IEnumerable<AllowedIntervalWithNotch> GetAllowedPrecursorMassIntervals(double peptideMonoisotopicMass) | ||
{ | ||
yield return new AllowedIntervalWithNotch(new DoubleRange(peptideMonoisotopicMass-1, Double.PositiveInfinity), 0); | ||
} | ||
|
||
public override string ToProseString() | ||
{ | ||
return ("unboundedHigh"); | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return FileNameAddition + " OpenHighSearch"; | ||
} | ||
|
||
#endregion Public Methods | ||
} | ||
} | ||
|
45 changes: 45 additions & 0 deletions
45
EngineLayer/PrecursorSearchModes/LowTheoreticalDiffAcceptor.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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using MzLibUtil; | ||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace EngineLayer | ||
{ | ||
public class OpenLowTheoSearchMode : MassDiffAcceptor | ||
{ | ||
#region Public Constructors | ||
|
||
public OpenLowTheoSearchMode() : base("OpenLow") | ||
{ | ||
} | ||
|
||
#endregion Public Constructors | ||
|
||
#region Public Methods | ||
|
||
public override int Accepts(double scanPrecursorMass, double peptideMass) | ||
{ | ||
if (scanPrecursorMass > peptideMass - 1) | ||
return 0; | ||
else | ||
return -1; | ||
} | ||
|
||
public override IEnumerable<AllowedIntervalWithNotch> GetAllowedPrecursorMassIntervals(double peptideMonoisotopicMass) | ||
{ | ||
yield return new AllowedIntervalWithNotch(new DoubleRange(Double.NegativeInfinity, peptideMonoisotopicMass + 1), 0); | ||
} | ||
|
||
public override string ToProseString() | ||
{ | ||
return ("unboundedHigh"); | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return FileNameAddition + " OpenHighSearch"; | ||
} | ||
|
||
#endregion Public Methods | ||
} | ||
} | ||
|
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
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