void (*
TOMSSACallback)(
intTotalSeq,
intCompleted,
void* Anything);
128 intInitBlast(
const char*blastdb,
booluse_mmap =
false);
134 static voidResetGlobals(
void);
151 void*CallbackData = 0);
168 void*CallbackData = 0);
194 bool& SetRankScore(
void);
199 bool& SetPoissonOnly(
void);
204 const boolGetPoissonOnly(
void)
const;
209 bool& SetIterative(
void);
214 const boolGetIterative(
void)
const;
216 virtual void*
Main(
void);
217 virtual void OnExit(
void);
220cout <<
"Still availiable!\n";
236 voidDoubleCompare(list<CMSMatchedPeakSet *> &SingleForward,
237list<CMSMatchedPeakSet *> &SingleBackward,
238list<CMSMatchedPeakSet *> &Double,
252 voidMatchAndSort(
CMSPeak* Peaks,
256 constTSeriesChargePairList::const_iterator &iPairList,
257list<CMSMatchedPeakSet *> &SingleForward,
258list<CMSMatchedPeakSet *> &SingleBackward);
271 voidCountModSites(
int&NumModSites,
280 voidSetIons(list <EMSIonSeries> & Ions);
285 intCreateLadders(
const char*
Sequence,
intiSearch,
intposition,
287 int*Masses,
intiMissed,
CAA& AA,
296 intCompareLadders(
intiMod,
301 boolCompareLaddersTop(
intiMod,
320 voidInitModIndex(
int*ModIndex,
326 unsignedMakeBoolMask(
int*ModIndex,
intiMod);
327 voidMakeBoolMap(
bool*ModMask,
int*ModIndex,
int& iMod,
int& NumMod);
329 boolCalcModIndex(
int*ModIndex,
336 unsignedMakeIntFromBoolMap(
bool*ModMask,
int& NumMod);
337 const intGetnumseq(
void)
const;
352 static voidMakeModString(
string& seqstring,
string& modseqstring,
CMSHit*MSHit);
367 voidWriteBioseqs(
void);
381 voidDeleteVariableOverlap(
int& NumMod,
397 voidUpdateWithNewPep(
intMissed,
398 const char*PepStart[],
399 const char*PepEnd[],
408 voidCreateModCombinations(
intMissed,
409 const char*PepStart[],
413 intNumMassAndMask[],
422 voidInitLadders(std::list <EMSIonSeries> & Ions);
428 voidMakeOidSet(
void);
436 const boolReSearch(
const intNumber)
const;
451 bool& SetRestrictedSearch(
void);
456 const boolGetRestrictedSearch(
void)
const;
464 Int1GetLadderCalc(
int i)
const;
471 Int1& SetLadderCalc(
int i);
478 voidClearLadderCalc(
intMax);
535SetLadderContainer(
void);
541GetLadderContainer(
void)
const;
661 intj(0),
i, NumFixed;
662 for(
i= 0;
i< NumMod;
i++) {
663 if(ModList[
i].GetFixed() == 1) {
669 const char*OldSite(0);
670 for(
i= 0;
i< NumMod && j - NumFixed <= iMod;
i++) {
672 if(ModList[
i].GetFixed() != 1 && ModList[
i].GetSite() != OldSite) {
686 for(j = 0; j < NumMod; j++)
689 for(j = 0; j <= iMod; j++)
690ModMask[ModIndex[j]] =
true;
699 for(; j <= iMod; j++)
700retval |= 1 << ModIndex[j];
708 for(j = 0; j < NumMod; j++)
709 if(ModMask[j]) retval |= 1 << j;
716 int& iMod,
int& NumMod,
725 for(j = NumFixed; j <= iMod + NumFixed; j++) {
726OldIndex = ModIndex[j];
727 if(j == iMod + NumFixed) TopSite = 0;
728 elseTopSite = ModList[ModIndex[j+1]].
GetSite();
733}
while(ModList[ModIndex[j]].GetFixed() == 1);
737 if(ModIndex[j] < NumMod && ModList[ModIndex[j]].GetSite() != TopSite) {
742 const char*OldSite(0);
743 for(
i= NumFixed;
i< j;
i++) {
747 while(ModList[Low].GetFixed() == 1 ||
748OldSite == ModList[Low].GetSite())
752OldSite = ModList[ModIndex[
i]].
GetSite();
760ModIndex[j] = OldIndex;
927 static voidSaveOneFile(
CMSSearch&MySearch,
928 const stringFilename,
943 static intReadModFiles(
const string& ModFileName,
944 const string& UserModFileName,
945 const string&
Path,
955 static voidReadTaxFile(
string& Filename,
TTaxNameMap& TaxNameMap);
972 static intReadFile(
const string& Filename,
986 static intLoadAnyFile(
CMSSearch& MySearch,
988 bool* SearchEngineIterative = 0);
997 static intReadSearchRequest(
const string& Filename,
1009 static intReadCompleteSearch(
const string& Filename,
1021 static intSaveAnyFile(
CMSSearch& MySearch,
1038 static voidCreateSearchSettings(
stringFileName,
class to contain preliminary hits.
@MSHits.hpp User-defined methods of the data storage class.
container for a set of matches
class to hold spectral data for filtering and statistical characterization
contains information for a post translational modification at a particular sequence site
TSite GetSite(void) const
Get the site position.
class to hold various helper functions for CSearch
map< int, string > TTaxNameMap
read in taxonomy file
bool & SetRankScore(void)
Sets the scoring to use rank statistics.
unsigned MakeBoolMask(int *ModIndex, int iMod)
bool & SetIterative(void)
Sets iterate search.
CMSResponse::TOidSet & SetOidSet(void)
get the oidset
const CLadderContainer & GetLadderContainer(void) const
get the ladder container
const bool GetIterative(void) const
Gets iterate search.
Int1 & SetLadderCalc(int i)
Set the bit that indicates whether a ladder was calculated.
CRef< CMSSearchSettings > MySettings
Search params.
AutoPtr< Int1, ArrayDeleter< Int1 > > LadderCalc
bool array that indicates if the ladders been calculated
CLadderContainer & SetLadderContainer(void)
set the ladder container
bool CalcModIndex(int *ModIndex, int &iMod, int &NumMod, int NumFixed, int NumModSites, CMod CModList[])
void MakeBoolMap(bool *ModMask, int *ModIndex, int &iMod, int &NumMod)
CRef< CMSResponse > MyResponse
Search response.
CRef< CMSResponse > & SetResponse(void)
Set search response.
bool RestrictedSearch
is this a oid restricted search
CRef< CSeqDB > rdfp
blast library
bool UseRankScore
boolean to turn on rank scoring
bool CheckFixed(int i, int NumFixed, CMod ModList[], int *ModIndex)
Checks to see that given modindex points to a site shared by a fixed mod.
CConstRef< CMSRequest > GetRequest(void) const
Get search request.
CLadderContainer LadderContainer
ion series mass ladders
Int1 GetLadderCalc(int i) const
Get the bit that indicates whether a ladder was calculated.
unsigned MakeIntFromBoolMap(bool *ModMask, int &NumMod)
CRef< CMSRequest > MyRequest
Search request.
TMassMask & SetMassAndMask(int i, int j)
Set the mask and mass of mod bit array.
void ClearLadderCalc(int Max)
Clear the ladder calc array up to max index.
CMassArray PrecursorMassArray
CConstRef< CCleave > GetEnzyme(void) const
Get search enzyme.
bool & SetRestrictedSearch(void)
is this search restricted to the oid set?
CRef< CMSRequest > & SetRequest(void)
Set search request.
void InitModIndex(int *ModIndex, int &iMod, int NumMod, int NumModSites, CMod ModList[])
CConstRef< CMSSearchSettings > GetSettings(void) const
Get search settings.
CConstRef< CMSResponse > GetResponse(void) const
Get search response.
const bool GetPoissonOnly(void) const
Gets the scoring to use rank statistics only with Poisson.
const CMSResponse::TOidSet & GetOidSet(void) const
get the oidset
const bool GetRestrictedSearch(void) const
is this search restricted to the oid set?
static int iSearchGlobal
Tracks the iSearch number for all search threads.
CRef< CCleave > & SetEnzyme(void)
Set search enzyme.
CMSResponse::TOidSet OidSet
set of oids to be searched
CRef< CMSSearchSettings > & SetSettings(void)
Set search settings.
CRef< CMSModSpecSet > initModset
TOMSSACallback initCallback
const int Getnumseq(void) const
CRef< CMSRequest > initRequestIn
These are so CSearch::Main() can call CSearch::Search() in a threaded run, this requires CSearch::Set...
CRef< CMSResponse > initResponseIn
int MaxModPerPep
maximum number of mod combinations per peptide
bool Iterative
boolean to turn on iterative search
AutoPtr< TMassMask, ArrayDeleter< TMassMask > > MassAndMask
contains bit mask of modifications and resulting mass
bool & SetPoissonOnly(void)
Sets the scoring to use rank statistics only with Poisson.
static int MaxMZ
maximum m/z value of all spectra precursors used to bound non-specific cleavage searches
static CRef< CMSPeakSet > SharedPeakSet
CRef< CCleave > Enzyme
the enzyme in use
bool PoissonOnly
boolean to only use Poisson score when using Rank scoring
CRef< CMSSearchSettings > initSettingsIn
int ThreadNum
The threadid number.
Include a standard set of the NCBI C++ Toolkit most basic headers.
string Path(const string &dir, const string &file)
element_type * get(void) const
Get pointer.
ESerialDataFormat
Data file format.
int8_t Int1
1-byte (8-bit) signed integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
virtual void OnExit(void)
Override this to execute finalization code.
virtual void * Main(void)=0
Derived (user-created) class must provide a real thread function.
#define NCBI_XOMSSA_EXPORT
list< CRef< CMSOutFile > > TOutfiles
EMSSpectrumFileType
Access to EMSSpectrumFileType's attributes (values, names) as defined in spec.
EMSPeakListTypes
enum that describes type of peak list
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Defines command line argument related classes.
Defines NCBI C++ diagnostic APIs, classes, and macros.
Defines unified interface to application:
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
Floating-point support routines.
Multi-threading â classes, functions, and features.
Useful/utility classes and methods.
struct _MassMask TMassMask
void(* TOMSSACallback)(int TotalSeq, int Completed, void *Anything)
progress callback for CSearch
multimap< double, CMSHit * > TScoreList
Defines BLAST database access classes.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4