Skip to content

Commit

Permalink
merged in master bbbyy
Browse files Browse the repository at this point in the history
  • Loading branch information
nbollis committed Nov 5, 2024
1 parent e718223 commit fea00d9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
9 changes: 0 additions & 9 deletions MetaMorpheus/EngineLayer/ClassicSearch/ClassicSearchEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Omics.Fragmentation.Peptide;
using Omics.Modifications;

namespace EngineLayer.ClassicSearch
Expand Down Expand Up @@ -68,10 +67,6 @@ protected override MetaMorpheusEngineResults RunSpecific()
myLocks[i] = new object();
}

if (CommonParameters.DissociationType == DissociationType.Custom)
DissociationTypeCollection.ProductsFromDissociationType[DissociationType.Custom] =
CommonParameters.CustomIons;

Status("Performing classic search...");

if (Proteins.Any())
Expand Down Expand Up @@ -173,10 +168,6 @@ protected override MetaMorpheusEngineResults RunSpecific()
psm.ResolveAllAmbiguities();
}

if (CommonParameters.DissociationType == DissociationType.Custom)
DissociationTypeCollection.ProductsFromDissociationType[DissociationType.Custom] =
new List<ProductType>();

return new MetaMorpheusEngineResults(this);
}

Expand Down
7 changes: 0 additions & 7 deletions MetaMorpheus/EngineLayer/ModernSearch/ModernSearchEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Omics.Fragmentation.Peptide;

namespace EngineLayer.ModernSearch
{
Expand Down Expand Up @@ -47,8 +46,6 @@ protected override MetaMorpheusEngineResults RunSpecific()

int maxThreadsPerFile = CommonParameters.MaxThreadsToUsePerFile;
int[] threads = Enumerable.Range(0, maxThreadsPerFile).ToArray();
if (CommonParameters.DissociationType == DissociationType.Custom)
DissociationTypeCollection.ProductsFromDissociationType[DissociationType.Custom] = CommonParameters.CustomIons;

Parallel.ForEach(threads, (scanIndex) =>
{
Expand Down Expand Up @@ -90,10 +87,6 @@ protected override MetaMorpheusEngineResults RunSpecific()
psm.ResolveAllAmbiguities();
}

if (CommonParameters.DissociationType == DissociationType.Custom)
DissociationTypeCollection.ProductsFromDissociationType[DissociationType.Custom] =
new List<ProductType>();

return new MetaMorpheusEngineResults(this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ protected override MetaMorpheusEngineResults RunSpecific()
throw new NotImplementedException();
}

if (CommonParameters.DissociationType == DissociationType.Custom)
DissociationTypeCollection.ProductsFromDissociationType[DissociationType.Custom] = CommonParameters.CustomIons;

int maxThreadsPerFile = CommonParameters.MaxThreadsToUsePerFile;
int[] threads = Enumerable.Range(0, maxThreadsPerFile).ToArray();
Parallel.ForEach(threads, (i) =>
Expand Down Expand Up @@ -166,11 +163,6 @@ protected override MetaMorpheusEngineResults RunSpecific()
}
}
});

if (CommonParameters.DissociationType == DissociationType.Custom)
DissociationTypeCollection.ProductsFromDissociationType[DissociationType.Custom] =
new List<ProductType>();

return new MetaMorpheusEngineResults(this);
}

Expand Down

0 comments on commit fea00d9

Please sign in to comment.