Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ROCK
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Véronique LEGRAND
ROCK
Commits
6922f691
Commit
6922f691
authored
9 years ago
by
Veronique Legrand
Browse files
Options
Downloads
Patches
Plain Diff
added traces for debug
parent
e3c336de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/FqBaseBackend.cpp
+7
-2
7 additions, 2 deletions
src/FqBaseBackend.cpp
src/read_utils.cpp
+4
-0
4 additions, 0 deletions
src/read_utils.cpp
with
11 additions
and
2 deletions
src/FqBaseBackend.cpp
+
7
−
2
View file @
6922f691
...
...
@@ -16,7 +16,7 @@
#include
"FqBaseBackend.h"
//
#define DEBUG
#define DEBUG
#ifdef DEBUG
#include
<cassert>
#include
<iostream>
...
...
@@ -135,7 +135,9 @@ int FqBaseBackend::getRead(const unsigned long& offset, char * fq_record) {
char
*
pchar
;
if
(
i_f_desc
==-
1
)
throw
std
::
runtime_error
(
"No open file currently associated to this backend"
);
#ifdef DEBUG
cout
<<
"going to read record at offset: "
<<
offset
<<
endl
;
#endif
int
res
=
lseek
(
i_f_desc
,
offset
,
SEEK_SET
);
if
(
res
==-
1
)
{
// err(errno,"fseek problem when trying to retrieve dna string.");
...
...
@@ -146,6 +148,9 @@ int FqBaseBackend::getRead(const unsigned long& offset, char * fq_record) {
throw
errno
;
}
nread
=
read
(
i_f_desc
,
fq_record
,
MAX_FQ_RECORD_LENGTH
);
#ifdef DEBUG
assert
(
*
(
fq_record
)
==
'@'
);
#endif
nb_lines
=
0
;
i
=
1
;
pchar
=
fq_record
;
...
...
This diff is collapsed.
Click to expand it.
src/read_utils.cpp
+
4
−
0
View file @
6922f691
...
...
@@ -16,6 +16,7 @@
#include
"srp.h"
#include
"read_utils.h"
#include
"rock_commons.h"
#define DEBUG
#ifdef DEBUG
#include
<cassert>
...
...
@@ -82,6 +83,9 @@ void getDNASeqstr(FqBaseBackend* fq_files_be [],
f_id2
=
fid_stored
&
mask_fid
;
unsigned
long
offset1
=
j
*
UINT_MAX
+
sr
.
read_a1
;
#ifdef DEBUG
cout
<<
"getting record at offset: "
<<
offset1
<<
endl
;
#endif
try
{
getFqRecord
(
fq_files_be
,
f_id1
,
offset1
,
dna_seqs
[
0
].
fq_record_buf
);
processFqRecord
(
p_dna_seqs
);
...
...
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