Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Louis BECQUEY
/
biorseo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Network
Create a new issue
Builds
Commits
Authored by
Louis BECQUEY
2019-02-15 12:44:04 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e02b1d57a9f51dfae306d83eb090d4e0bbae8fc5
e02b1d57
1 parent
c35fab6d
Real RNA-MoIP style Obj1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
cppsrc/MOIP.cpp
cppsrc/MOIP.cpp
View file @
e02b1d5
...
...
@@ -99,12 +99,17 @@ MOIP::MOIP(const RNA& rna, const vector<Motif>& insertionSites, uint nsets, floa
// Define the motif objective function:
obj1
=
IloExpr
(
env_
);
for
(
uint
i
=
0
;
i
<
insertion_sites_
.
size
();
i
++
)
{
//
RNA MoIP style :
objective f_1A
// objective f_1A
// IloNum n_compo_squared = IloNum(insertion_sites_[i].comp.size() * insertion_sites_[i].comp.size());
// obj1 += n_compo_squared * insertion_dv_[index_of_first_components[i]];
// Weighted by the JAR3D score:
obj1
+=
IloNum
(
insertion_sites_
[
i
].
score
)
*
insertion_dv_
[
index_of_first_components
[
i
]];
// obj1 += IloNum(insertion_sites_[i].score) * insertion_dv_[index_of_first_components[i]];
// RNA MoIP style
IloNum
sum_k
=
0
;
for
(
const
Component
&
c
:
insertion_sites_
[
i
].
comp
)
sum_k
+=
c
.
k
;
obj1
+=
IloNum
(
sum_k
*
sum_k
)
*
insertion_dv_
[
index_of_first_components
[
i
]];
}
// Define the expected accuracy objective function:
...
...
Please
register
or
login
to post a comment