Skip to content

Commit 05ef08e

Browse files
committed
pass genomes that only have Info: messages from table2asn
1 parent 52875b2 commit 05ef08e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pipes/WDL/tasks/tasks_ncbi.wdl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,10 @@ task table2asn {
11791179
~{'-src-file "' + source_modifier_table + '"'} \
11801180
~{'-y "' + comment + '"'} \
11811181
-a s -V vb
1182+
1183+
set +e
1184+
grep -vi '^Info:' "~{out_basename}.val" > "~{out_basename}.val.no_info"
1185+
# Question: should "^Warning: valid" also be passed??
11821186
>>>
11831187

11841188
output {
@@ -1187,7 +1191,7 @@ task table2asn {
11871191
File genbank_validation_file = "~{out_basename}.val"
11881192
Array[String] table2asn_errors = read_lines("~{out_basename}.val")
11891193
String table2asn_version = read_string("TABLE2ASN_VERSION")
1190-
Boolean table2asn_passing = length(read_lines("~{out_basename}.val")) == 0
1194+
Boolean table2asn_passing = length(read_lines("~{out_basename}.val.no_info")) == 0
11911195
}
11921196

11931197
runtime {

0 commit comments

Comments
 (0)