Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
AlienTrimmer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
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
GIPhy
AlienTrimmer
Commits
5cb0665d
Commit
5cb0665d
authored
4 years ago
by
Alexis CRISCUOLO
⚫
Browse files
Options
Downloads
Patches
Plain Diff
v2.0
parent
67408494
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
src/AlienTrimmer.java
+15
-15
15 additions, 15 deletions
src/AlienTrimmer.java
with
15 additions
and
15 deletions
src/AlienTrimmer.java
+
15
−
15
View file @
5cb0665d
...
...
@@ -299,7 +299,7 @@ public class AlienTrimmer {
outS
=
(
gz
)
?
new
BufferedWriter
(
new
OutputStreamWriter
(
new
GZIPOutputStream
(
Files
.
newOutputStream
(
Path
.
of
(
filename
+
".gz"
)),
BUFFER_SIZE
)),
BUFFER_SIZE
)
:
Files
.
newBufferedWriter
(
Path
.
of
(
filename
));
}
else
{
filename
=
basename
+
"fastq"
;
filename
=
basename
+
"
.
fastq"
;
out1
=
(
gz
)
?
new
BufferedWriter
(
new
OutputStreamWriter
(
new
GZIPOutputStream
(
Files
.
newOutputStream
(
Path
.
of
(
filename
+
".gz"
)),
BUFFER_SIZE
)),
BUFFER_SIZE
)
:
Files
.
newBufferedWriter
(
Path
.
of
(
filename
));
}
//## counters
...
...
@@ -509,14 +509,14 @@ public class AlienTrimmer {
//## assessing R1 length ##########################################################
l
=
e1
-
s1
;
//## NOTE: l = length of trimmed read
discard1
=
(
l
<
minLgt
);
//## assessing R1 composition #####################################################
if
(
!
discard1
)
{
i
=
e1
;
x
=
0
;
while
(
--
i
>=
s1
)
x
+=
bad
[
i
];
discard1
=
(
100
*
x
>
l
*
prop
);
//## NOTE: x/l > prop/100, where x is the no. 'bad' bases in the trimmeed read
}
if
(
verbose
&&
l
!=
lgt1
)
display
(
l1_1
,
l1_2
,
l1_4
,
cov
,
bad
,
lgt1
,
s1
,
e1
,
discard1
);
}
//## assessing R1 composition #####################################################
if
(
!
discard1
)
{
i
=
e1
;
x
=
0
;
while
(
--
i
>=
s1
)
x
+=
bad
[
i
];
discard1
=
(
100
*
x
>
l
*
prop
);
//## NOTE: x/l > prop/100, where x is the no. 'bad' bases in the trimmeed read
}
if
(
verbose
&&
l
!=
lgt1
)
display
(
l1_1
,
l1_2
,
l1_4
,
cov
,
bad
,
lgt1
,
s1
,
e1
,
discard1
);
}
//## writing single-end outfile #######################################################
...
...
@@ -649,14 +649,14 @@ public class AlienTrimmer {
//## assessing R2 length ##########################################################
l
=
e2
-
s2
;
//## NOTE: l = length of trimmed read
discard2
=
(
l
<
minLgt
);
}
//## assessing R2 composition #####################################################
if
(
!
discard2
)
{
i
=
e2
;
x
=
0
;
while
(
--
i
>=
s2
)
x
+=
bad
[
i
];
discard2
=
(
100
*
x
>
l
*
prop
);
//## NOTE: x/l > prop/100, where x is the no. 'bad' bases in the trimmed read
}
//## assessing R2 composition #####################################################
if
(
!
discard2
)
{
i
=
e2
;
x
=
0
;
while
(
--
i
>=
s2
)
x
+=
bad
[
i
];
discard2
=
(
100
*
x
>
l
*
prop
);
//## NOTE: x/l > prop/100, where x is the no. 'bad' bases in the trimmed read
}
if
(
verbose
&&
l
!=
lgt2
)
display
(
l2_1
,
l2_2
,
l2_4
,
cov
,
bad
,
lgt2
,
s2
,
e2
,
discard2
);
if
(
verbose
&&
l
!=
lgt2
)
display
(
l2_1
,
l2_2
,
l2_4
,
cov
,
bad
,
lgt2
,
s2
,
e2
,
discard2
);
}
}
//## writing paired-end outfiles ######################################################
...
...
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