Skip to content

Commit a1843a3

Browse files
author
Titus Jung
committed
adding noise
1 parent f9da327 commit a1843a3

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

RawConverterDotNetCore/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/test_data/
22
/bin/
33
/obj/
4+
/out/
5+
.zip

RawConverterDotNetCore/MassSpec/Ion.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public class Ion : ICloneable
2525
public double Resolution { get; set; }
2626
public double Mass { get; private set; }
2727

28+
public double NoiseBaseline {get; private set; }
29+
30+
public double Noise {get; private set; }
2831
/// <summary>
2932
/// Constructor
3033
/// </summary>
@@ -53,6 +56,17 @@ public Ion(double mz, double intensity, int charge, double resolution)
5356
CalculateMass();
5457
}
5558

59+
public Ion(double mz, double intensity, int charge, double resolution, double noisebaseline, double noise)
60+
{
61+
MZ = mz;
62+
Intensity = intensity;
63+
Charge = charge;
64+
Resolution = resolution;
65+
NoiseBaseline = noisebaseline;
66+
Noise = noise;
67+
CalculateMass();
68+
}
69+
5670
public int Compare(Ion i1, Ion i2)
5771
{
5872
if (i1.MZ < i2.MZ)

RawConverterDotNetCore/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-
1313
sudo yum install dotnet-sdk-3.1
1414
```
1515

16+
1617
## Run
1718
```
18-
RawConverterDotnetCore test_raw/FLI_180508_JMK_Biognosys_new_prep_Brain_TMT10_10fr_HpH_fr10.raw --ms1 --ms2 --ms3
19+
binb/debug/RawConverterDotnetCore test_raw/FLI_180508_JMK_Biognosys_new_prep_Brain_TMT10_10fr_HpH_fr10.raw --ms1 --ms2 --ms3
1920
2021
```

RawConverterDotNetCore/RawConverterDotnetCore.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<OutputType>Exe</OutputType>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
6+
<RuntimeIdentifiers>win10-x64;linux-x64</RuntimeIdentifiers>
67
</PropertyGroup>
78
<ItemGroup>
89
<PackageReference Include="MarkerMetro.Unity.Ionic.Zlib" Version="2.0.0.14" />
@@ -19,4 +20,4 @@
1920
<Content Include="AveragineTable.txt" CopyToOutputDirectory="Always" />
2021
<Content Include="AveragineTable.txt" CopyToPublishDirectory="Always" />
2122
</ItemGroup>
22-
</Project>
23+
</Project>

RawConverterDotNetCore/build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
rm -r obj/
2+
rm -r out/*
13
dotnet build ./RawConverterDotnetCore.csproj
24

5+
rm -r ./out/RawConverterDotNetCoreWindows;
6+
rm -r ./out/RawConverterDotNetCoreLinux;
37

4-
dotnet publish -r linux-x64 --configuration Release ./RawConverterDotnetCore.csproj /property:GenerateFullPaths=true
8+
dotnet publish -c Release --self-contained true -r win10-x64 -o ./out/RawConverterDotNetCoreWindows/;
9+
dotnet publish -r linux-x64 -o ./out/RawConverterDotNetCoreLinux/;
10+
#dotnet publish --self-contained -r linux-x64 --configuration Release ./RawConverterDotnetCore.csproj /property:GenerateFullPaths=true -o out
511
#cp Common/*so bin/Release/netcoreapp3.0/

0 commit comments

Comments
 (0)