Skip to content

Commit

Permalink
changed around assembly references and added IsoDec to Deconvolution …
Browse files Browse the repository at this point in the history
…testing environment
  • Loading branch information
nbollis committed Aug 5, 2024
1 parent 097b4bd commit ba54e46
Show file tree
Hide file tree
Showing 14 changed files with 135 additions and 102 deletions.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions mzLib/Development/Development.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
</ItemGroup>

<ItemGroup>
<None Update="Deconvolution\TestData\Averaged_221110_CytoOnly.mzML">
<None Update="DeconvolutionDevelopment\TestData\Averaged_221110_CytoOnly.mzML">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Deconvolution\TestData\Averaged_221110_HGHOnly.mzML">
<None Update="DeconvolutionDevelopment\TestData\Averaged_221110_HGHOnly.mzML">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Deconvolution\TestData\Averaged_221110_UbiqOnly.mzML">
<None Update="DeconvolutionDevelopment\TestData\Averaged_221110_UbiqOnly.mzML">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class IsoDecAlgorithm(DeconvolutionParameters deconParameters)
private static string _phaseModelPath;
static IsoDecAlgorithm()
{
_phaseModelPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Deconvolution", "Algorithms", "phase_model.bin");
_phaseModelPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Deconvolution", "Algorithms", "IsoDecResources", "phase_model.bin");
}

[StructLayout(LayoutKind.Sequential, Pack =1)]
Expand All @@ -45,7 +45,7 @@ public struct MatchedPeak
public int endindex;
}

[DllImport("isodeclib.dll", CallingConvention = CallingConvention.Cdecl)]
[DllImport("Deconvolution/Algorithms/IsoDecResources/isodeclib.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern int process_spectrum(float[] mz, float[] intensity, int len, string modelpath, IntPtr matchedpeaks);

public override IEnumerable<IsotopicEnvelope> Deconvolute(MzSpectrum spectrum, MzRange range)
Expand Down
42 changes: 20 additions & 22 deletions mzLib/MassSpectrometry/MassSpectrometry.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<None Remove="Deconvolution\Algorithms\phase_model.bin" />
</ItemGroup>

<ItemGroup>
<Resource Include="Deconvolution\Algorithms\phase_model.bin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
</ItemGroup>

<ItemGroup>
<PackageReference Include="CsvHelper" Version="32.0.3" />
Expand All @@ -30,20 +22,26 @@
<ProjectReference Include="..\MzLibUtil\MzLibUtil.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="Deconvolution\Algorithms\isodeclib.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Deconvolution\Algorithms\libmmd.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Deconvolution\Algorithms\svml_dispmd.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Remove="Deconvolution\Algorithms\isodeclib.dll" />
<None Remove="Deconvolution\Algorithms\libmmd.dll" />
<None Remove="Deconvolution\Algorithms\phase_model.bin" />
<None Remove="Deconvolution\Algorithms\svml_dispmd.dll" />
</ItemGroup>

<ItemGroup>
<Folder Include="Deconvolution\Algorithms\Resources\" />
</ItemGroup>
<ItemGroup>
<Content Include="Deconvolution\Algorithms\IsoDecResources\isodeclib.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Deconvolution\Algorithms\IsoDecResources\libmmd.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Deconvolution\Algorithms\IsoDecResources\phase_model.bin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Deconvolution\Algorithms\IsoDecResources\svml_dispmd.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>

0 comments on commit ba54e46

Please sign in to comment.