Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
918cc34
primo commit in git
Jul 1, 2015
412dcb7
cancellato file.cc
Jul 1, 2015
c606f06
Ambiente di lavoro settato, SI PARTE
Jul 1, 2015
383eaf0
Start project
ozymandias89 Jul 2, 2015
02e8d1c
delete redundance line
ozymandias89 Jul 5, 2015
1fdb574
create ProteinModels and relative metods
ozymandias89 Jul 5, 2015
b555d51
Creazione del vettore di Spacer in ProteinModels
ozymandias89 Jul 10, 2015
9ae4469
TMScore create
ozymandias89 Jul 10, 2015
2a11b58
Sistemato problema di ritorno proteina traslata
ozymandias89 Jul 11, 2015
edac1c2
inizio estrazione carboni alfa dai modelli
ozymandias89 Jul 11, 2015
41386b4
creata classe scale distance
ozymandias89 Jul 11, 2015
b8a6e65
creata classe ScaleDistance
ozymandias89 Jul 11, 2015
0c70766
Creata la funzione per estrapolare i carboni alfa dagli aminoacidi
ozymandias89 Jul 13, 2015
ebebde5
Calcolata scale distance
ozymandias89 Jul 18, 2015
4ab6914
calcolata media scale distance e varianza scale distance.
ozymandias89 Jul 19, 2015
ae7c490
Finito calcolo scale distance e media fra distanze, con tanti modelli
ozymandias89 Jul 19, 2015
bd598d0
fixed bugs, rinominata clase.
ozymandias89 Jul 20, 2015
b7e67cf
media e standard deviation
ozymandias89 Jul 21, 2015
3d573f7
calcolati angoli PHI e PSI (da verificare l'output).
ozymandias89 Jul 21, 2015
0ddfb32
aggiunto metodo remove file e fatta un po di pulizia su output
ozymandias89 Jul 21, 2015
0fc6eff
Creata classe e funzionalità DSSP Secondary Structure.
ozymandias89 Jul 22, 2015
77ea6ea
creazione classe MobiSaver
ozymandias89 Jul 23, 2015
a342a26
finita classe di salvataggio output finale, rivedere mob strct second
ozymandias89 Jul 23, 2015
cc07b12
standar deviation with mask ok
ozymandias89 Jul 25, 2015
82e618c
terminato ultimo filtro sulla mobilità
ozymandias89 Jul 25, 2015
352a267
creata documentazione
ozymandias89 Jul 26, 2015
3ff1fe1
Commentati metodi di libreria in doxygen assenti
ozymandias89 Jul 28, 2015
3ac3a7f
Possibilità di modificare i parametri di default inserita, miglirata
ozymandias89 Jul 28, 2015
0dd63d2
modificata interfaccia
ozymandias89 Jul 28, 2015
3e3a7dd
deleted trash file
ozymandias89 Jul 28, 2015
e390ab4
Aggiunta funzionalità per stampare su .pdb file B-factor e standard
ozymandias89 Jul 28, 2015
b02de28
Create readme
ozymandias89 Jul 29, 2015
86cda79
Update readme
ozymandias89 Jul 29, 2015
543a244
Update readme
ozymandias89 Jul 29, 2015
150e89a
Update readme
ozymandias89 Jul 29, 2015
75c48d7
Update readme
ozymandias89 Aug 10, 2015
f2e954b
Update readme
ozymandias89 Aug 10, 2015
52141a2
Update readme
ozymandias89 Aug 10, 2015
d4f0163
Update readme
ozymandias89 Aug 10, 2015
b7327f8
Update readme
ozymandias89 Aug 11, 2015
2664752
Update readme
ozymandias89 Aug 11, 2015
11a21ab
created folder test
ozymandias89 Aug 11, 2015
1a5184f
creato test folder
ozymandias89 Aug 11, 2015
5278cba
Merge branch 'master' of https://github.com/ozymandias89/Victor
ozymandias89 Aug 11, 2015
d852fc4
elimiti file superflui
ozymandias89 Aug 11, 2015
944fe86
test correctly setted!
ozymandias89 Aug 11, 2015
9d51e35
created test for classproteinmodels
ozymandias89 Aug 12, 2015
4b269dd
create test for print models
ozymandias89 Aug 12, 2015
2ab62b5
add StandarDeviation.h
ozymandias89 Aug 12, 2015
551d941
add file TestSecondaryStructure.h
ozymandias89 Aug 12, 2015
785c986
modified path file
ozymandias89 Aug 12, 2015
7e44e8a
finish test secondary structure
ozymandias89 Aug 13, 2015
64521a0
Finish test
ozymandias89 Aug 13, 2015
f6533fa
add TestSaver..h and finish test
ozymandias89 Aug 13, 2015
0d9953d
finish project
ozymandias89 Aug 13, 2015
407b38f
remove object file
ozymandias89 Aug 13, 2015
2f9a4cf
remove object file
ozymandias89 Aug 13, 2015
a028f0e
delete object main
ozymandias89 Aug 13, 2015
a6aa97b
finish project
ozymandias89 Aug 13, 2015
3fa6d0d
Merge branch 'master' of https://github.com/ozymandias89/Victor.git
ozymandias89 Aug 13, 2015
464836d
finish
ozymandias89 Aug 13, 2015
052eaa7
final release
ozymandias89 Aug 13, 2015
e53d4f5
ok
ozymandias89 Aug 14, 2015
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
60 changes: 60 additions & 0 deletions .cproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="cdt.managedbuild.toolchain.gnu.cross.base.679775953">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.cross.base.679775953" moduleId="org.eclipse.cdt.core.settings" name="Default">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration buildProperties="" description="" id="cdt.managedbuild.toolchain.gnu.cross.base.679775953" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
<folderInfo id="cdt.managedbuild.toolchain.gnu.cross.base.679775953.1817176364" name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.cross.base.1114783033" name="Cross GCC" superClass="cdt.managedbuild.toolchain.gnu.cross.base">
<option id="cdt.managedbuild.option.gnu.cross.prefix.258209284" name="Prefix" superClass="cdt.managedbuild.option.gnu.cross.prefix"/>
<option id="cdt.managedbuild.option.gnu.cross.path.509310917" name="Path" superClass="cdt.managedbuild.option.gnu.cross.path"/>
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.265199028" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
<builder arguments="-f Makefile" command="make" id="cdt.managedbuild.builder.gnu.cross.926951898" incrementalBuildTarget="install" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="cdt.managedbuild.builder.gnu.cross"/>
<tool id="cdt.managedbuild.tool.gnu.cross.c.compiler.933527225" name="Cross GCC Compiler" superClass="cdt.managedbuild.tool.gnu.cross.c.compiler">
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1818742666" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.compiler.2056037131" name="Cross G++ Compiler" superClass="cdt.managedbuild.tool.gnu.cross.cpp.compiler">
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1189602384" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.c.linker.1387695238" name="Cross GCC Linker" superClass="cdt.managedbuild.tool.gnu.cross.c.linker"/>
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.linker.2007520852" name="Cross G++ Linker" superClass="cdt.managedbuild.tool.gnu.cross.cpp.linker">
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1458424534" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.archiver.31449503" name="Cross GCC Archiver" superClass="cdt.managedbuild.tool.gnu.cross.archiver"/>
<tool id="cdt.managedbuild.tool.gnu.cross.assembler.339030466" name="Cross GCC Assembler" superClass="cdt.managedbuild.tool.gnu.cross.assembler">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1385081327" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="Mobi.null.747390746" name="Mobi"/>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="refreshScope" versionNumber="2">
<configuration configurationName="Default">
<resource resourceType="PROJECT" workspacePath="/Mobi"/>
</configuration>
</storageModule>
</cproject>
27 changes: 27 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Mobi</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>
15 changes: 15 additions & 0 deletions .settings/language.settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project>
<configuration id="cdt.managedbuild.toolchain.gnu.cross.base.679775953" name="Default">
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuildCommandParser" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser" keep-relative-paths="false" name="CDT GCC Build Output Parser" parameter="(gcc)|([gc]\+\+)|(clang)" prefer-non-shared="true"/>
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="1323490044467186284" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
</extension>
</configuration>
</project>
3 changes: 3 additions & 0 deletions Biopool/APPS/pdb2secondary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
along with Victor. If not, see <http://www.gnu.org/licenses/>.
*/
/**


@Description */

// Includes:
#include <string>
#include <GetArg.h>
#include <Spacer.h>
Expand Down
19 changes: 17 additions & 2 deletions Biopool/Sources/Atom.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ namespace Victor { namespace Biopool {
virtual ~Atom();

// PREDICATES:


AtomCode getCode() const;
unsigned long getNumber() const;

Expand Down Expand Up @@ -130,17 +132,30 @@ namespace Victor { namespace Biopool {
// -----------------x-------------------x-------------------x-----------------

// PREDICATES:

/**
* Return the code of the Atom
* @param none
* @return AtomCode
*/
inline AtomCode
Atom::getCode() const {
return type;
}

/**
* Return the number of the Atom in the model
* @param none
* @return id, id of atom
*/
inline unsigned long
Atom::getNumber() const {
return id;
}

/**
* Return 3D vector with coordinate 3D of the Atom
* @param none
* @return vgVector3<double>
*/
inline vgVector3<double>
Atom::getCoords() {
if (!inSync())
Expand Down
24 changes: 20 additions & 4 deletions Biopool/Sources/PdbLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,35 @@ namespace Victor { namespace Biopool {
void setNonPermissive() {
permissive = false;
}

/**
You can chose if you want verbose output from this class
@param none
@return void
*/
void setVerbose() {
verbose = true;
}

/**
You can chose if you want not verbose output from this class
@param none
@return void
*/
void setNoVerbose() {
verbose = false;
}

/**
Set the chain that do you want load
@param char
@return void
*/
void setChain(char _ch) {
chain = _ch;
}

/**
set the Model that do you want load
@param unsigned int
@return void
*/
void setModel(unsigned int _mod) {
model = _mod;
}
Expand Down
7 changes: 5 additions & 2 deletions Biopool/Sources/PdbSaver.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ namespace Victor { namespace Biopool {

// PREDICATES:

/**
close the output file
@param none
@return void
*/
void endFile() {
output << "END\n";
}
Expand Down Expand Up @@ -103,8 +108,6 @@ namespace Victor { namespace Biopool {

protected:

private:

// HELPERS:
void writeSeqRes(Spacer& sp); // writes SEQRES entry
void writeSecondary(Spacer& sp);
Expand Down
4 changes: 2 additions & 2 deletions Biopool/Sources/Protein.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
// Includes:
#include <Protein.h>
#include <iostream>
using namespace std;
using namespace Victor; using namespace Victor::Biopool;

using namespace std;
using namespace Victor;
using namespace Victor::Biopool;

// CONSTRUCTORS/DESTRUCTOR:
Expand Down
13 changes: 12 additions & 1 deletion Biopool/Sources/Protein.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,18 @@ namespace Victor { namespace Biopool {
void deleteComponent(Component* c);

void copy(const Protein& orig);
void load(Loader& l); // data loader

/**
* load one model by Loader object. Use after command PdbLoader.setModel(i) , PdbLoader.checkModel();
* @code
* Loader.setModel(i);
Loader.checkModel();
this->load(Loader);
* @endcode
* @param Loader& , loader object
* @return void
*/
virtual void load(Loader& l); // data loader

virtual Protein* clone();

Expand Down
42 changes: 23 additions & 19 deletions Biopool/Sources/Spacer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1664,25 +1664,29 @@ void Spacer::setDSSP(bool verbose) {
set<char> ::iterator it = ss[i].find(turns[l]);
if (it != ss[i].end()) { // found a n-turn
char pos_s = *it;
int pos = atoi(&(pos_s));
set<char> ::iterator it1 = ss[i + pos - 1].find(turns[l]);
if (it1 != ss[i + pos - 1].end()) { // found the same n-turn after n-1 positions
bool helixBreak = false;
for (unsigned int m = i; m < (i + pos); m++) {
set<char> ::iterator it2 = ss[m].find(turns[l]);
if (it2 == ss[m].end()) {
helixBreak = true;
}
}
if (!helixBreak) {
for (unsigned int m = i; m < (i + pos); m++) {
ss[m].insert(helices[l]);
}
}
break;
}
}
}
int pos = atoi(&(pos_s));
if(i+pos-1 >= ss.size())
break;
set<char>::iterator it1 = ss[i + pos - 1].find(
turns[l]);
if (it1 != ss[i + pos - 1].end()) { // found the same n-turn after n-1 positions
bool helixBreak = false;
for (unsigned int m = i; m < (i + pos); m++) {
set<char>::iterator it2 = ss[m].find(turns[l]);
if (it2 == ss[m].end()) {
helixBreak = true;
}
}
if (!helixBreak) {
for (unsigned int m = i; m < (i + pos); m++) {
ss[m].insert(helices[l]);
}
}
break;
}

}
}
// Set sheets (E)
set<char> ::iterator it = ss[i].find('B');
if (it != ss[i].end()) {
Expand Down
15 changes: 15 additions & 0 deletions Biopool/Sources/Spacer.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,21 @@ namespace Victor { namespace Biopool {
void setStateFromTorsionAngles();
void setDSSP(bool verbose);


/**
*
* Return a vector of set, each set correspond whit one amino acid.
* Use this command after setDSSP(boool verbose) command.
* Each set contain many information about secondary structure of one amino acid.
* The first letter of the set is the secondary structure.
* @code
* Spacer.setDSSP(false);
* vector<set<char> > = Spacer.getDSSP();
* @endcode
*
* @param none
* @return vector<set<char> > , a vector of set
*/
vector< set<char> > getDSSP() {
return ss;
};
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Path to project directory.
UPDIR = .
# Path to subdirectories.
SUBDIRS = tools Energy/Sources Biopool/Sources Align2/Sources Energy/Sources/TorsionPotential Lobo/Sources Lobo/APPS Energy/APPS Biopool/APPS Align2/APPS
SUBDIRS = tools Energy/Sources Biopool/Sources Align2/Sources Energy/Sources/TorsionPotential Lobo/Sources Lobo/APPS Energy/APPS Biopool/APPS Align2/APPS Mobi/Sources Mobi/APPS

#
# Libraries and paths (which are not defined globally).
Expand All @@ -27,8 +27,8 @@ BINPATH = bin

SOURCES =
OBJECTS =
EXECS =
TARGET =
EXECS =
TARGET =
LIBRARY =

#
Expand Down
12 changes: 8 additions & 4 deletions Makefile.global
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ ifeq ($(verbose), 3)
USERFLAGS += -DVERBOSE=3
endif

CFLAGS = $(USERFLAGS)
CFLAGS = $(USERFLAGS)

#
# Tools
Expand Down Expand Up @@ -106,11 +106,13 @@ SUBDIRS += _dummy_

LIB_PATH += -L$(UPDIR)/lib

INC_PATH += -I$(UPDIR)/tools -I$(UPDIR)/Energy/Sources -I$(UPDIR)/Biopool/Sources -I$(UPDIR)/Energy/Sources/TorsionPotential -I$(UPDIR)/Lobo/Sources -I$(UPDIR)/Align2/Sources -I$(UPDIR)/Biopool/APPS -I$(UPDIR)/Energy/APPS -I$(UPDIR)/Align2/APPS -I$(UPDIR)/Lobo/APPS
### MODIFIED BY MOBI - ***LUCA DEMO***
INC_PATH += -I$(UPDIR)/tools -I$(UPDIR)/Energy/Sources -I$(UPDIR)/Biopool/Sources -I$(UPDIR)/Energy/Sources/TorsionPotential -I$(UPDIR)/Lobo/Sources -I$(UPDIR)/Align2/Sources -I$(UPDIR)/Mobi/Sources -I$(UPDIR)/Biopool/APPS -I$(UPDIR)/Energy/APPS -I$(UPDIR)/Align2/APPS -I$(UPDIR)/Lobo/APPS -I$(UPDIR)/Mobi/APPS

### MODIFIED BY MOBI - ***LUCA DEMO***
ifdef test
INC_PATH += -I$(UPDIR)/Biopool/Tests -I$(UPDIR)/Energy/Tests -I$(UPDIR)/Align2/Tests -I$(UPDIR)/Lobo/Tests
SUBDIRS = Biopool/Tests Energy/Tests Align2/Tests Lobo/Tests
INC_PATH += -I$(UPDIR)/Biopool/Tests -I$(UPDIR)/Energy/Tests -I$(UPDIR)/Align2/Tests -I$(UPDIR)/Lobo/Tests -I$(UPDIR)/Mobi/Tests
SUBDIRS = Biopool/Tests Energy/Tests Align2/Tests Lobo/Tests Mobi/Tests
endif

####### Implicit rules
Expand Down Expand Up @@ -175,6 +177,8 @@ subclean:
$(RM) -fr ./Energy/data
$(RM) -fr ./Lobo/data
$(RM) -fr ./Biopool/data
$(RM) -fr ./Mobi/data
$(RM) -fr ./Mobi/data/*



Expand Down
Loading