Skip to content

Commit 812f258

Browse files
committed
Allow nextclade AA import to skip complex indels
1 parent e9db732 commit 812f258

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/NextCladeHandler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,12 @@ public static void processAndImportNextCladeAa(PipelineJob job, File jsonFile, i
345345
if (vcList.isEmpty())
346346
{
347347
job.getLogger().error("Cannot find matching NT SNP: " + aa.toString());
348+
if (aa.containsKey("refContext") && aa.getString("refContext").length() > 4)
349+
{
350+
// Skip complex indels with just a logged error, but let the job finish
351+
continue;
352+
}
353+
348354
throw new PipelineJobException("Expected variant for AA position: " + aaName + " " + pos);
349355
}
350356

0 commit comments

Comments
 (0)