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
UNLOCK
kubernetes
Commits
4e61e371
Commit
4e61e371
authored
Nov 12, 2020
by
Koehorst, Jasper
Browse files
improve messages
parent
18c597a9
Pipeline
#14746
failed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/main/java/nl/munlock/yaml/NGTax.java
View file @
4e61e371
...
...
@@ -72,6 +72,12 @@ public class NGTax {
IRODSFile
destFile
;
log
.
info
(
"Read length set to "
+
commandOptions
.
read_len
);
// if (commandOptions.read_len > 0) {
// workflow.for_read_len = commandOptions.read_len;
// workflow.rev_read_len = commandOptions.read_len;
// }
if
(
files
.
size
()
==
0
)
{
log
.
warn
(
"No files found"
);
}
else
if
(
files
.
size
()
==
1
)
{
...
...
@@ -85,8 +91,9 @@ public class NGTax {
log
.
info
(
"Obtaining read length information from RDF file"
);
workflow
.
setFor_read_len
(
Math
.
toIntExact
(
sequenceDataSet
.
getReadLength
()));
}
else
if
(
commandOptions
.
read_len
>
0
)
{
if
(
commandOptions
.
read_len
>
sequenceDataSet
.
getReadLength
())
if
(
commandOptions
.
read_len
>
sequenceDataSet
.
getReadLength
())
{
throw
new
Exception
(
"Read length of "
+
commandOptions
.
read_len
+
" is larger than "
+
sequenceDataSet
.
getReadLength
());
}
log
.
info
(
"Setting read length to "
+
commandOptions
.
read_len
+
" of "
+
sequenceDataSet
.
getReadLength
());
workflow
.
setFor_read_len
(
Math
.
toIntExact
(
commandOptions
.
read_len
));
}
else
{
...
...
@@ -115,6 +122,12 @@ public class NGTax {
}
else
{
log
.
error
(
"RDF file does not contain read length information? Please provide read length information"
);
}
}
else
{
files
.
forEach
(
file
->
{
System
.
err
.
println
(
file
.
getFileName
());
System
.
err
.
println
(
file
.
getResource
().
getURI
());
});
throw
new
Exception
(
"More than 2 files detected..."
);
}
// Save to nl.wur.ssb.yaml format
...
...
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