Skip to content

Commit 1af5330

Browse files
committed
Bugfix to CellRangerVDJWrapper when there are no passing g/d contigs
1 parent 2084340 commit 1af5330

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tcrdb/src/org/labkey/tcrdb/pipeline/CellRangerVDJUtils.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,12 @@ else if (discordantBarcodes.contains(barcode))
512512
for (File f : Arrays.asList(consensusFastaGD, allFastaGD))
513513
{
514514
_log.info("processing G/D FASTA: " + f.getPath());
515+
if (!SequencePipelineService.get().hasMinLineCount(f, 2))
516+
{
517+
_log.info("too few lines, skipping FASTA:" + f.getPath());
518+
continue;
519+
}
520+
515521
try (FastaDataLoader loader = new FastaDataLoader(f, false))
516522
{
517523
loader.setCharacterFilter(new FastaLoader.UpperAndLowercaseCharacterFilter());

0 commit comments

Comments
 (0)