Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sequencing_Modules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dnarXiv
Sequencing_Modules
Commits
68fd6549
Commit
68fd6549
authored
8 months ago
by
BOULLE Olivier
Browse files
Options
Downloads
Patches
Plain Diff
progression print
parent
71c527d9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
partitioning/fast_clustering_t.cpp
+12
-0
12 additions, 0 deletions
partitioning/fast_clustering_t.cpp
with
12 additions
and
0 deletions
partitioning/fast_clustering_t.cpp
+
12
−
0
View file @
68fd6549
...
...
@@ -87,6 +87,9 @@ void process_file_part(const std::string& input_filename, int part_id, int start
// Process the lines in the file part
std
::
string
read_name
;
std
::
string
sequence
;
int
read_count
=
0
;
int
total_reads
=
(
end_line
-
start_line
)
/
4
;
int
step_count
=
0
;
// process the lines in the file part, add 4 lines to the i counter each loop
for
(
int
i
=
start_line
;
i
<
end_line
;
i
+=
4
)
{
...
...
@@ -104,6 +107,14 @@ void process_file_part(const std::string& input_filename, int part_id, int start
// find the position fo the primer and get the bases following it
std
::
string
cluster_id
=
get_cluster_id
(
sequence
,
seq_to_find
,
split_level
);
read_count
+=
1
;
if
(
read_count
>=
total_reads
/
10
&&
part_id
==
0
){
read_count
=
0
;
step_count
+=
1
;
std
::
cout
<<
"thread "
<<
part_id
<<
" : "
<<
step_count
<<
"0%"
<<
std
::
endl
;
}
if
(
cluster_id
==
"None"
)
{
continue
;
// ignore the read
}
...
...
@@ -118,6 +129,7 @@ void process_file_part(const std::string& input_filename, int part_id, int start
return
;
}
output_file
<<
">"
<<
read_name
<<
"
\n
"
<<
sequence
<<
"
\n
"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment