Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Ludovic PLATON
/
IRSOM
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ludovic PLATON
2018-03-21 10:28:36 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6fabab4bfded7ac72760d34026db22340d2a0cbc
6fabab4b
1 parent
c206d3de
Remove unnecessary comment
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
33 deletions
Featurer/data/data_store.h
Featurer/data/data_store_map.h
Featurer/main.cpp
Featurer/data/data_store.h
View file @
6fabab4
...
...
@@ -41,33 +41,6 @@ namespace data{
}
}
virtual
multithread
::
Buffer
<
data
::
Data_basic
*>*
get
(
std
::
string
pattern
)
=
0
;
// void write(std::string file_name, std::string pattern){
// multithread::Buffer<data::Data_basic*> *buf;
// std::string towrite;
// std::ofstream output;
// output.open(file_name, std::ios::out | std::ios::trunc);
// buf = this->get(pattern);
// int count_buf(0);
// while(buf->available()){
// if(!buf->isEmpty()){
// data::Data_basic* tmp = buf->pop();
// towrite += tmp->to_csv()+"\n";
// count_buf ++;
// delete tmp;
// }else{
// std::this_thread::sleep_for(THREAD_SLEEP);
// }
// if(count_buf == NB_ELT_BUF){
// output << towrite;
// towrite.clear();
// count_buf=0;
// }
// }
// if(count_buf>0){
// output << towrite;
// }
// output.close();
// }
};
}
#endif // DATA_STORE_H
...
...
Featurer/data/data_store_map.h
View file @
6fabab4
...
...
@@ -53,7 +53,6 @@ class Producer_map: public multithread::Buffer_producer<data::Data_basic*>{
Data_Store_Map
(){}
Data_Store_Map
(
std
::
string
file_name
)
:
data
::
Data_Store
(
file_name
){}
~
Data_Store_Map
(){
//~data::Data_Store::~Data_Store();
for
(
auto
const
&
kv
:
this
->
data_map
){
delete
kv
.
second
;
}
...
...
Featurer/main.cpp
View file @
6fabab4
...
...
@@ -53,7 +53,6 @@ int main(int argc, char* argv[])
/* ************** KMER ******************/
feature
::
Feature_callable
*
kmer
=
static_cast
<
feature
::
Feature_callable
*>
(
feature
::
Kmer
::
get_callable
(
3
));
// tmp_ds = new data::Data_Store_Map();
tmp_ds
=
new
data
::
Data_Store_Map
(
output
+
"KMER3.txt"
);
ds
[
"KMER3"
]
=
tmp_ds
;
create_feature_maker
(
kmer
,
feature
::
Kmer
::
TYPE
+
std
::
to_string
(
6
),
tmp_ds
,
&
re
);
...
...
@@ -67,7 +66,6 @@ int main(int argc, char* argv[])
/* ORF callable */
feature
::
Feature_callable
*
orf
=
static_cast
<
feature
::
Feature_callable
*>
(
feature
::
ORF
::
get_callable
());
// tmp_ds = new data::Data_Store_Map();
tmp_ds
=
new
data
::
Data_Store_Map
(
output
+
"ORF.txt"
);
ds
[
"ORF"
]
=
tmp_ds
;
create_feature_maker
(
orf
,
feature
::
ORF
::
TYPE
,
tmp_ds
,
&
re
);
...
...
@@ -75,7 +73,6 @@ int main(int argc, char* argv[])
/* *********** Codon Position ***************/
feature
::
Feature_callable
*
cp
=
static_cast
<
feature
::
Feature_callable
*>
(
feature
::
CodonPosition
::
get_callable
());
// tmp_ds = new data::Data_Store_Map();
tmp_ds
=
new
data
::
Data_Store_Map
(
output
+
"CP.txt"
);
ds
[
"CP"
]
=
tmp_ds
;
create_feature_maker
(
cp
,
feature
::
CodonPosition
::
TYPE
,
tmp_ds
,
&
re
);
...
...
@@ -108,8 +105,6 @@ int main(int argc, char* argv[])
auto
it
=
ds
.
begin
();
while
(
it
!=
ds
.
end
()){
// it->second->write(output+it->first+".txt",".*");
// std::cout << "File " << output+it->first+".txt" << " writted" << std::endl;
delete
it
->
second
;
++
it
;
}
...
...
Please
register
or
login
to post a comment