From: <ds...@us...> - 2009-07-20 21:22:33
|
Revision: 4485 http://sashimi.svn.sourceforge.net/sashimi/?rev=4485&view=rev Author: dshteyn Date: 2009-07-20 21:22:25 +0000 (Mon, 20 Jul 2009) Log Message: ----------- Limit range of pI z-scores to model from -10 to 10 Modified Paths: -------------- trunk/trans_proteomic_pipeline/src/Parsers/Algorithm2XML/pICalculator.cxx Modified: trunk/trans_proteomic_pipeline/src/Parsers/Algorithm2XML/pICalculator.cxx =================================================================== --- trunk/trans_proteomic_pipeline/src/Parsers/Algorithm2XML/pICalculator.cxx 2009-07-20 21:20:50 UTC (rev 4484) +++ trunk/trans_proteomic_pipeline/src/Parsers/Algorithm2XML/pICalculator.cxx 2009-07-20 21:22:25 UTC (rev 4485) @@ -285,6 +285,13 @@ //if (run_pI_stddev_ <= 0.05) run_pI_stddev_ = 0.5; double rtn = (pI - run_pI_mean_) / run_pI_stddev_; + if (rtn > 10) { + rtn = 10; + } + + if (rtn < -10) { + rtn = -10; + } // cout << "peptide seq: " << pep << " pI: " << pI << " Score: " << rtn <<endl; return rtn; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |