Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
khalid
radsex
Commits
fe8eb17a
Commit
fe8eb17a
authored
Sep 27, 2021
by
khalid
Browse files
Now we retain the right length of tagged seq
parent
0e13d458
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/processTagged.cpp
View file @
fe8eb17a
...
...
@@ -252,21 +252,22 @@ inline void process_file(taggedInputFile& input_file, std::unordered_map<std::st
// Read through the file and store the results
while
((
line_n
=
kseq_read
(
sequence
))
>=
0
)
{
std
::
string
aString
(
sequence
->
seq
.
s
);
std
::
string
str3
;
std
::
size_t
pos
=
aString
.
find
(
tag
);
// position of tag in sequence str
uint
adjustedSeqLen
=
aString
.
length
()
-
maxtagl
;
// we suppose that all seqs have initialy the same length !!!
if
(
pos
==
0
)
{
if
(
tagl
==
maxtagl
)
str3
=
aString
.
substr
(
tagl
);
// get after tag to the end
else
//tagl < maxtagl
//
if( tagl == maxtagl)
//
str3 = aString.substr (tagl); // get after tag to the end
//
else //tagl < maxtagl
{
uint
seql
=
aString
.
length
();
str3
=
aString
.
substr
(
tagl
,
seql
-
(
maxtagl
-
tagl
));
str3
=
aString
.
substr
(
tagl
,
adjustedSeqLen
);
//get bases after tag
}
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment