Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e46c2a3
Ignore all JetBrains IntelliJ project files
dpsmca May 23, 2022
e27c43a
Merge branch 'ProteoWizard:master' into master
dpsmca May 25, 2022
30d0775
Merge branch 'ProteoWizard:master' into master
dpsmca May 27, 2022
f5bba79
Merge branch 'ProteoWizard:master' into master
dpsmca Jun 27, 2022
4e0f00a
Merge branch 'ProteoWizard:master' into master
dpsmca Jun 28, 2022
dec7876
Git should ignore macOS build directories
dpsmca Jun 29, 2022
88e7453
Merge branch 'ProteoWizard:master' into master
dpsmca Jun 29, 2022
04ef13a
Merge branch 'master' of https://github.com/dpsmca/pwiz
dpsmca Jun 29, 2022
f82513e
Merge branch 'ProteoWizard:master' into master
dpsmca Jun 29, 2022
89fbee7
Merge branch 'ProteoWizard:master' into master
dpsmca Jul 1, 2022
2d64312
Merge branch 'ProteoWizard:master' into master
dpsmca Jul 11, 2022
d357734
Merge branch 'ProteoWizard:master' into master
dpsmca Jul 12, 2022
a5df961
Merge branch 'ProteoWizard:master' into master
dpsmca Jul 13, 2022
3daf440
Merge branch 'ProteoWizard:master' into master
dpsmca Jul 29, 2022
9fd77a6
Merge branch 'ProteoWizard:master' into master
dpsmca Aug 26, 2022
43482ac
Merge branch 'ProteoWizard:master' into master
dpsmca Nov 17, 2022
dfd0370
Merge branch 'ProteoWizard:master' into master
dpsmca Dec 2, 2022
8df4d7a
Merge branch 'ProteoWizard:master' into master
dpsmca Jun 15, 2023
7212c04
Merge branch 'ProteoWizard:master' into master
dpsmca Jun 16, 2023
a2bbac0
Merge branch 'ProteoWizard:master' into master
dpsmca Nov 14, 2023
14a78bc
Merge branch 'ProteoWizard:master' into master
dpsmca Jan 15, 2024
1f386eb
Merge branch 'ProteoWizard:master' into master
dpsmca May 16, 2024
acf6be1
Ignore Linux build results
romanzenka May 16, 2024
f8a4c64
Remove executable permission from quickbuild.bat since Windows ignore…
romanzenka May 16, 2024
a857ccd
Merge pull request #1 from dpsmca/mayo/gitignore_updates
dpsmca May 16, 2024
85812c4
Merge branch 'ProteoWizard:master' into master
dpsmca Jun 7, 2024
459019d
Merge branch 'ProteoWizard:master' into master
dpsmca Jun 21, 2024
0deede9
Merge branch 'master' into mayo/main
dpsmca Jun 21, 2024
4fd4a2d
QuaMeter peak symmetry updates
dpsmca Jun 21, 2024
097b416
Add Windows and macOS default files to ignore
dpsmca Jun 21, 2024
7d0e898
pre-merge for asymmetry ratio.
keesh0 Dec 9, 2024
29d9e00
Added missing depend in order to build across all platforms.
keesh0 Dec 10, 2024
a33b612
Make gitignore sane as master.
keesh0 Dec 13, 2024
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
67 changes: 38 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ ASALocalRun/
# NVidia Nsight GPU debugger configuration file
*.nvuser

/build-nt-x86
build-nt-x86
/src_subset
/*.log
/libraries/boost_1_*
/libraries/expat*
Expand All @@ -379,7 +380,8 @@ Version.cpp
/pwiz_tools/Bumbershoot/**/AssemblyInfo.cpp
/pwiz_tools/Bumbershoot/**/AssemblyInfo.cs
/pwiz_tools/Bumbershoot/idpicker/Resources/Resources.*
/pwiz_tools/Skyline/Executables/SkylineBatch/SkylineBatch/Properties/AssemblyInfo.cs
/pwiz/utility/bindings/CLI/example/binaries
/artifact_xml

# Vendor reader test data extracted from tarballs (newer data should be committed directly to git)
/pwiz/data/vendor_readers/*/Reader*Test.data/**/1SRef
Expand All @@ -391,6 +393,7 @@ Version.cpp
/pwiz_aux/msrc/utility/vendor_api/**/*.dll
/pwiz_aux/msrc/utility/vendor_api/*/EULA.*
/pwiz_aux/msrc/utility/vendor_api/ABI/LicenseKey.h
/pwiz_aux/msrc/utility/vendor_api/ABI/SCIEX.Apis.Data.v1.xml
/pwiz_aux/msrc/utility/vendor_api/Agilent/x64/
/pwiz_aux/msrc/utility/vendor_api/Agilent/x86/
/pwiz_aux/msrc/utility/vendor_api/Bruker/BAF2SQL-README.txt
Expand All @@ -399,9 +402,12 @@ Version.cpp
/pwiz_aux/msrc/utility/vendor_api/Bruker/x64/
/pwiz_aux/msrc/utility/vendor_api/Bruker/x86/
/pwiz_aux/msrc/utility/vendor_api/Bruker/**/*.h
/pwiz_aux/msrc/utility/vendor_api/Bruker/**.SxS.manifest
/pwiz_aux/msrc/utility/vendor_api/Mobilion/*.h
/pwiz_aux/msrc/utility/vendor_api/Shimadzu/*.xml
/pwiz_aux/msrc/utility/vendor_api/Shimadzu/*.txt
/pwiz_aux/msrc/utility/vendor_api/Waters/MassLynx*.h*
/pwiz_aux/msrc/utility/vendor_api/thermo/x64
/pwiz_aux/msrc/utility/vendor_api/thermo/ThermoFisher.CommonCore.RawFileReader.xml
/pwiz_aux/msrc/utility/vendor_api/thermo/ThermoFisher.CommonCore.MassPrecisionEstimator.xml
/pwiz_aux/msrc/utility/vendor_api/thermo/ThermoFisher.CommonCore.Data.xml
Expand All @@ -419,45 +425,48 @@ SkylineTester Results
/bs32.bat
/bso64.bat
/bso32.bat
/qb64.bat
/SignAfterPublishPW.bat
/OnyxTOFMS.试验.wiff.scan
/160109_Mix1_calcurve_074_raw.skyl
/160109_Mix1_calcurve_074_raw.skyd
/160109_Mix1_calcurve_074_raw
/160109_Mix1_calcurve_073_mzML.skyl
/160109_Mix1_calcurve_073_mzML.skyd
/160109_Mix1_calcurve_073_mzML
/160109_Mix1_calcurve_071_raw.skyl
/160109_Mix1_calcurve_071_raw.skyd
/160109_Mix1_calcurve_071_raw
/160109_Mix1_calcurve_070_mzML.skyl
/160109_Mix1_calcurve_070_mzML.skyd
/160109_Mix1_calcurve_070_mzML
/REP02_CE_Vantage_15mTorr_0001_REP2_02_raw.skyl
/REP02_CE_Vantage_15mTorr_0001_REP2_02_raw.skyd
/REP02_CE_Vantage_15mTorr_0001_REP2_02_raw
/REP02_CE_Vantage_15mTorr_0001_REP2_01_raw.skyl
/REP02_CE_Vantage_15mTorr_0001_REP2_01_raw.skyd
/REP02_CE_Vantage_15mTorr_0001_REP2_01_raw
/REP01_CE_Vantage_15mTorr_0001_REP1_02_raw.skyl
/REP01_CE_Vantage_15mTorr_0001_REP1_02_raw.skyd
/REP01_CE_Vantage_15mTorr_0001_REP1_02_raw
/REP01_CE_Vantage_15mTorr_0001_REP1_01_raw.skyl
/REP01_CE_Vantage_15mTorr_0001_REP1_01_raw.skyd
/REP01_CE_Vantage_15mTorr_0001_REP1_01_raw
/160109_Mix1_calcurve_074_raw*
/160109_Mix1_calcurve_073_mzML*
/160109_Mix1_calcurve_071_raw*
/160109_Mix1_calcurve_070_mzML*
/REP02_CE_Vantage_15mTorr_0001_REP2_02_raw*
/REP02_CE_Vantage_15mTorr_0001_REP2_01_raw*
/REP01_CE_Vantage_15mTorr_0001_REP1_02_raw*
/REP01_CE_Vantage_15mTorr_0001_REP1_01_raw*
/pwiz_tools/Skyline/Properties/AssemblyInfo.cs
/pwiz_tools/Skyline/SkylineCmd/Properties/AssemblyInfo.cs
/pwiz_tools/Skyline/SkylineNightly/Properties/AssemblyInfo.cs
/pwiz_tools/Skyline/SkylineNightlyShim/Properties/AssemblyInfo.cs
/pwiz_tools/Skyline/SkylineTester/Properties/AssemblyInfo.cs
/pwiz_tools/Skyline/TestRunner/Properties/AssemblyInfo.cs
/pwiz_tools/Skyline/Executables/SkylineBatch/SkylineBatch/Properties/AssemblyInfo.cs
/pwiz_tools/Skyline/Executables/Installer/FileList64.txt
/pwiz_tools/Skyline/TestSettings_x??.testsettings
/pwiz_tools/Skyline/SignAfterPublishPW.bat
/BrowseOnly
/x64/BrowseOnly
/qb64.bat
/pwiz_tools/Skyline/Test/ProtocolBuffers/GeneratedCode/*.cs
/pwiz_tools/Skyline/Test/ProtocolBuffers/tmp/*.cs
/pwiz_tools/Skyline/Test/ProtocolBuffers/tmp
/pwiz_aux/msrc/utility/vendor_api/ABI/SCIEX.Apis.Data.v1.xml
/SearchControlLog.txt

# created by WIFF2 SDK in working directory
/UserSettings.data
/UserSettings.data-journal

# created by TeamCity for Skyline versions that need PrositConfig.xml
/pwiz_tools/Skyline/Model/Prosit/

# created by older versions of the code in the working directory
/Enolase_repeats_AQv1.4.2*
/PressureTrace1*
/7600ZenoTOFMSMS*
/swath.api*
/timstof_prm_scheduler.prmsqlite

# created by tc-perftests.bat
/perfTestNames.txt
/tutorialTestNames.txt
/tests.txt
60 changes: 34 additions & 26 deletions pwiz_tools/Bumbershoot/quameter/crawdad/CrawPeak.cpp
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/*
* Original author: Greg Finney <gfinney .at. u.washington.edu>,
* MacCoss Lab, Department of Genome Sciences, UW
*
* Copyright 2009 University of Washington - Seattle, WA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Original author: Greg Finney <gfinney .at. u.washington.edu>,
* MacCoss Lab, Department of Genome Sciences, UW
*
* Copyright 2009 University of Washington - Seattle, WA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "CrawPeak.h"
#include "CrawPeakMethod.h"
#include <math.h>
Expand Down Expand Up @@ -43,12 +43,17 @@ namespace crawpeaks {
return peak_area / bg_area;
}

// BEG KEESH MAYO ASYMM METRIC
SlimCrawPeak::SlimCrawPeak( int start_idx, int stop_idx, int peak_idx,
const std::vector<float> & raw ,std::vector<float> & scratch , int mz_idx ) :
const std::vector<float> & raw ,std::vector<float> & scratch , int mz_idx,
int start01_idx, int stop01_idx) :
start_rt_idx(start_idx) ,
stop_rt_idx(stop_idx) ,
peak_rt_idx(peak_idx) ,
mz_idx(mz_idx)
mz_idx(mz_idx),
start01_rt_idx(start01_idx),
stop01_rt_idx(stop01_idx)
// END KEESH MAYO ASYMM METRIC
{
init();

Expand All @@ -66,7 +71,7 @@ void SlimCrawPeak::init() {
raw_area = bg_area = peak_area = bgslope = peak_height = raw_height = -1.0f;
fwhm = -1;
this->fwhm_calculated_ok = false;
}
}

void CrawPeak::init() {
stddev_mean_above_baseline = -1.0f;
Expand All @@ -77,10 +82,13 @@ void CrawPeak::init() {
int SlimCrawPeak::delcnt = 0;
#endif

// BEG KEESH MAYO ASYMM METRIC
CrawPeak::CrawPeak( int start_idx, int stop_idx, int peak_idx,
const std::vector<float> & raw , std::vector<float> & scratch, int mz_idx
const std::vector<float> & raw , std::vector<float> & scratch, int mz_idx,
int start01_idx, int stop01_idx
) :
SlimCrawPeak( start_idx, stop_idx, peak_idx, raw, scratch, mz_idx ) {
SlimCrawPeak( start_idx, stop_idx, peak_idx, raw, scratch, mz_idx, start01_idx, stop01_idx) {
// END KEESH MAYO ASYMM METRIC
init();
intensities.resize(this->len);
background_vals.resize(this->len);
Expand Down Expand Up @@ -219,10 +227,10 @@ void CrawPeak::calc_baseline_stats( ) {
}



std::string SlimCrawPeak::as_string_header() const {
return std::string("mz\tstart_idx\tpeak_idx\tstop_idx\tfwhm");
}
}
std::string SlimCrawPeak::as_string() const {
char tmpstr[256];
sprintf(tmpstr,"%d\t%d\t%d\t%d\t%d\t%2.2f",mz_idx,start_rt_idx,peak_rt_idx,stop_rt_idx,fwhm);
Expand Down Expand Up @@ -279,7 +287,7 @@ void CrawPeak::calc_baseline_stats( ) {
/* ---- suppeaklocated ---- */

CrawPeakLocated::CrawPeakLocated( int lh_valley, int rh_valley,
int peak_loc, const std::vector<float> &chrom , std::vector<float> & scratch, int mz_idx ) :
int peak_loc, const std::vector<float> &chrom , std::vector<float> & scratch, int mz_idx ) :
CrawPeak( lh_valley, rh_valley, peak_loc, chrom, scratch, mz_idx ) {
}

Expand Down
20 changes: 17 additions & 3 deletions pwiz_tools/Bumbershoot/quameter/crawdad/CrawPeak.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ public :
float peak_height;
float raw_height;

// BEG KEESH MAYO ASYMM METRIC
int start01_rt_idx, stop01_rt_idx;
// END KEESH MAYO ASYMM METRIC


//CrawPeakMethod sup_method;
virtual void init();

Expand Down Expand Up @@ -106,8 +111,11 @@ public :

void calc_fwhm();

// BEG KEESH MAYO ASYMM METRIC
SlimCrawPeak( int start_idx, int stop_idx, int peak_idx, const std::vector<float> & raw , std::vector<float> & scratch, int mz_idx = -1,
int start01_idx = -1, int stop01_idx = -1);
// END KEESH MAYO ASYMM METRIC

SlimCrawPeak( int start_idx, int stop_idx, int peak_idx, const std::vector<float> & raw , std::vector<float> & scratch, int mz_idx = -1 );
~SlimCrawPeak() {
#ifdef DEBUG
delcnt++;
Expand Down Expand Up @@ -149,6 +157,10 @@ class CrawPeak : public SlimCrawPeak {
CrawPeak() {
//sup_method = method;
start_rt_idx = stop_rt_idx = peak_rt_idx = mz_idx = -1;
// BEG KEESH MAYO ASYMM METRIC
start01_rt_idx = stop01_rt_idx = -1;
// END KEESH MAYO ASYMM METRIC

init();
}

Expand All @@ -160,9 +172,11 @@ class CrawPeak : public SlimCrawPeak {
*/

///Constructor taking start,stop,peak,mz indices, and a vector of intensities
// BEG KEESH MAYO ASYMM METRIC
CrawPeak( int start_idx, int stop_idx, int peak_idx,
const std::vector<float> & raw, std::vector<float> & scratch ,int mz_idx = -1 );

const std::vector<float> & raw, std::vector<float> & scratch ,int mz_idx = -1,
int start01_idx = -1, int stop01_idx = -1);
// END KEESH MAYO ASYMM METRIC
virtual void init();


Expand Down
41 changes: 41 additions & 0 deletions pwiz_tools/Bumbershoot/quameter/crawdad/CrawPeakAnnotator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,47 @@ void CrawPeakAnnotator::calc_fwhm( SlimCrawPeak & peak ) {
peak.fwhm = rh_hm - lh_hm;
}

// BEG KEESH MAYO ASYMM METRIC
void CrawPeakAnnotator::calc_fw01m(SlimCrawPeak& peak) {
std::vector<float>* c = this->get_active_chrom();
std::vector<float>& chrom = *c;
float lh_height = chrom.at(peak.start_rt_idx);
float rh_height = chrom.at(peak.stop_rt_idx);
float height = peak.raw_height - std::min(lh_height, rh_height);
float one_tenth_max = (float)(peak.raw_height - (0.9 * height));
int lh_pt = -1, rh_pt = -1;
float lh_hm, rh_hm;
for (int i = peak.start_rt_idx; i < peak.peak_rt_idx; i++) {
if (chrom[i] <= one_tenth_max && chrom[i + 1] >= one_tenth_max) {
lh_pt = i;
break;
}
}
for (int i = peak.peak_rt_idx; i < std::min(peak.stop_rt_idx, (int)(chrom.size() - 2)); i++) {
if (chrom[i] >= one_tenth_max && chrom[i + 1] <= one_tenth_max) {
rh_pt = i;
break;
}
}
if (lh_pt == -1) {
lh_hm = (float)peak.start_rt_idx;
}
else {
float frac_delta = (one_tenth_max - chrom[lh_pt]) / (chrom[lh_pt + 1] - chrom[lh_pt]);
lh_hm = (float)lh_pt + frac_delta;
}
if (rh_pt == -1) {
rh_hm = (float)peak.stop_rt_idx;
}
else {
float frac_delta = (chrom[rh_pt] - one_tenth_max) / (chrom[rh_pt] - chrom[rh_pt + 1]);
rh_hm = (float)rh_pt + frac_delta;
}
peak.start01_rt_idx = (int)lh_hm;
peak.stop01_rt_idx = (int)rh_hm;
}
// END KEESH MAYO ASYMM METRIC

void CrawPeakAnnotator::refind_peak_peak( SlimCrawPeak & peak ) {
peak.peak_rt_idx = get_peakloc_in_range( peak.start_rt_idx, peak.stop_rt_idx );
}
Expand Down
43 changes: 24 additions & 19 deletions pwiz_tools/Bumbershoot/quameter/crawdad/CrawPeakAnnotator.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/*
* Original author: Greg Finney <gfinney .at. u.washington.edu>,
* MacCoss Lab, Department of Genome Sciences, UW
*
* Copyright 2009 University of Washington - Seattle, WA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Original author: Greg Finney <gfinney .at. u.washington.edu>,
* MacCoss Lab, Department of Genome Sciences, UW
*
* Copyright 2009 University of Washington - Seattle, WA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef _SUPPEAKANNOTATOR_H
#define _SUPPEAKANNOTATOR_H
Expand Down Expand Up @@ -191,6 +191,11 @@ void set_bg_scratch ( int start_idx, int stop_idx );

void calc_fwhm( SlimCrawPeak & peak );

// BEG KEESH MAYO ASYMM METRIC
// Do we need to duplicat in ProteoWizard\pwiz_tools\Shared\Crawdad\CrawPeakAnnotator.H too?
void calc_fw01m(SlimCrawPeak& peak);
// END KEESH MAYO ASYMM METRIC

#if 0
void set_peak_positions ( SlimCrawPeak & peak ) {

Expand All @@ -205,7 +210,7 @@ void calc_fwhm( SlimCrawPeak & peak );
//calls set_peak_areas onpeak member variables
set_peak_bg_subtracted_area(peak);
calc_fwhm(peak);
};
};


private :
Expand Down
3 changes: 3 additions & 0 deletions pwiz_tools/Bumbershoot/quameter/crawdad/CrawPeakFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ void StackCrawPeakFinder::peak_voodoo( int lh_valley, int rh_valley, int peak_lo
annotator.set_peak_slope(peak);
annotator.set_peak_bg_subtracted_area ( peak );
annotator.calc_fwhm(peak);
// BEG KEESH MAYO ASYMM METRIC
annotator.calc_fw01m(peak);
// END KEESH MAYO ASYMM METRIC
sps.push_back(peak);

}
Expand Down
Loading