-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jiri Novak
committed
Feb 21, 2018
1 parent
a49ebb1
commit f207c57
Showing
108 changed files
with
8,313 additions
and
3,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Desktop Entry] | ||
Comment=A tool for de novo sequencing of nonribosomal peptides from accurate product ion mass spectra. | ||
Exec=CycloBranch | ||
Icon=/usr/share/cyclobranch/images/cb.png | ||
Name=CycloBranch | ||
NoDisplay=false | ||
StartupNotify=false | ||
Terminal=false | ||
Type=Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
###################################################################### | ||
# Automatically generated by qmake (3.0) Fri Dec 5 03:02:26 2014 | ||
###################################################################### | ||
|
||
TEMPLATE = app | ||
TARGET = CycloBranch | ||
QT += core gui widgets printsupport svg | ||
INCLUDEPATH += . core gui parallel | ||
QMAKE_CXXFLAGS += -std=c++0x -DUNIX -m64 | ||
QMAKE_LIBS += -lboost_regex | ||
OBJECTS_DIR = build/ | ||
MOC_DIR = moc/ | ||
|
||
# Input | ||
RESOURCES = images.qrc | ||
HEADERS += core/cAllocator.h \ | ||
core/cBrick.h \ | ||
core/cBricksDatabase.h \ | ||
core/cCandidate.h \ | ||
core/cCandidateSet.h \ | ||
core/cDeNovoGraph.h \ | ||
core/cDeNovoGraphNode.h \ | ||
core/cFragmentIons.h \ | ||
core/cParameters.h \ | ||
core/cPeak.h \ | ||
core/cPeaksList.h \ | ||
core/cSequence.h \ | ||
core/cSequenceDatabase.h \ | ||
core/cSummaryFormula.h \ | ||
core/cTheoreticalSpectrum.h \ | ||
core/cTheoreticalSpectrumList.h \ | ||
core/utilities.h \ | ||
gui/cAboutWidget.h \ | ||
gui/cBranchedWidget.h \ | ||
gui/cBricksDatabaseWidget.h \ | ||
gui/cCyclicWidget.h \ | ||
gui/cDrawPeptideWidget.h \ | ||
gui/cEventFilter.h \ | ||
gui/cFragmentIonsListWidget.h \ | ||
gui/cGraphWidget.h \ | ||
gui/cLassoWidget.h \ | ||
gui/cLinearWidget.h \ | ||
gui/cMainThread.h \ | ||
gui/cMainWindow.h \ | ||
gui/cModificationsWidget.h \ | ||
gui/cParametersWidget.h \ | ||
gui/cSequenceDatabaseWidget.h \ | ||
gui/cSpectrumDetailWidget.h \ | ||
gui/cSpectrumSceneWidget.h \ | ||
parallel/cGraphReaderThread.h \ | ||
parallel/cSpectrumComparatorThread.h | ||
SOURCES += core/cBrick.cpp \ | ||
core/cBricksDatabase.cpp \ | ||
core/cCandidate.cpp \ | ||
core/cCandidateSet.cpp \ | ||
core/cDeNovoGraph.cpp \ | ||
core/cDeNovoGraphNode.cpp \ | ||
core/cFragmentIons.cpp \ | ||
core/cParameters.cpp \ | ||
core/cPeak.cpp \ | ||
core/cPeaksList.cpp \ | ||
core/cSequence.cpp \ | ||
core/cSequenceDatabase.cpp \ | ||
core/cSummaryFormula.cpp \ | ||
core/cTheoreticalSpectrum.cpp \ | ||
core/cTheoreticalSpectrumList.cpp \ | ||
core/utilities.cpp \ | ||
gui/cAboutWidget.cpp \ | ||
gui/cBranchedWidget.cpp \ | ||
gui/cBricksDatabaseWidget.cpp \ | ||
gui/cCyclicWidget.cpp \ | ||
gui/cDrawPeptideWidget.cpp \ | ||
gui/cEventFilter.cpp \ | ||
gui/cFragmentIonsListWidget.cpp \ | ||
gui/cGraphWidget.cpp \ | ||
gui/cLassoWidget.cpp \ | ||
gui/cLinearWidget.cpp \ | ||
gui/cMainThread.cpp \ | ||
gui/cMainWindow.cpp \ | ||
gui/cModificationsWidget.cpp \ | ||
gui/cParametersWidget.cpp \ | ||
gui/cSequenceDatabaseWidget.cpp \ | ||
gui/cSpectrumDetailWidget.cpp \ | ||
gui/cSpectrumSceneWidget.cpp \ | ||
parallel/cGraphReaderThread.cpp \ | ||
parallel/cSpectrumComparatorThread.cpp \ | ||
main.cpp |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
/** | ||
\file cAllocator.h | ||
\brief An allocator of objects. | ||
*/ | ||
|
||
|
||
#ifndef _CALLOCATOR_H | ||
#define _CALLOCATOR_H | ||
|
||
#include <vector> | ||
|
||
using namespace std; | ||
|
||
|
||
/** | ||
\brief An allocator of objects. | ||
*/ | ||
template <class T> | ||
class cAllocator | ||
{ | ||
|
||
vector<T*> strips; | ||
int itemsperstrip; | ||
|
||
int currentfreestrip; | ||
int currentfreeitem; | ||
|
||
public: | ||
|
||
|
||
/** | ||
\brief The constructor. | ||
*/ | ||
cAllocator(); | ||
|
||
|
||
/** | ||
\brief The destructor. | ||
*/ | ||
~cAllocator(); | ||
|
||
|
||
/** | ||
\brief Remove all allocated items. | ||
*/ | ||
void reset(); | ||
|
||
|
||
/** | ||
\brief Get a reference to a new item. | ||
\retval reference to a new item | ||
*/ | ||
T* getNewItem(); | ||
|
||
}; | ||
|
||
|
||
template <class T> | ||
cAllocator<T>::cAllocator() { | ||
strips.clear(); | ||
itemsperstrip = 500; | ||
currentfreestrip = 0; | ||
currentfreeitem = 0; | ||
|
||
T* newstrip = new T[itemsperstrip]; | ||
strips.push_back(newstrip); | ||
} | ||
|
||
|
||
template <class T> | ||
cAllocator<T>::~cAllocator() { | ||
for (int i = 0; i < (int)strips.size(); i++) { | ||
delete [] strips[i]; | ||
} | ||
} | ||
|
||
|
||
template <class T> | ||
void cAllocator<T>::reset() { | ||
for (int i = 0; i < (int)strips.size(); i++) { | ||
delete [] strips[i]; | ||
} | ||
|
||
strips.clear(); | ||
itemsperstrip = 500; | ||
currentfreestrip = 0; | ||
currentfreeitem = 0; | ||
|
||
T* newstrip = new T[itemsperstrip]; | ||
strips.push_back(newstrip); | ||
} | ||
|
||
|
||
template <class T> | ||
T* cAllocator<T>::getNewItem() { | ||
T* freeitem = &strips[currentfreestrip][currentfreeitem]; | ||
|
||
currentfreeitem++; | ||
if (currentfreeitem == itemsperstrip) { | ||
currentfreestrip++; | ||
currentfreeitem = 0; | ||
T* newstrip = new T[itemsperstrip]; | ||
strips.push_back(newstrip); | ||
} | ||
|
||
return freeitem; | ||
} | ||
|
||
|
||
#endif | ||
|
Oops, something went wrong.