From 5435c35e1d163adf5a79597721016c253e7c7e1d Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Fri, 7 Jan 2022 11:20:06 -0500 Subject: [PATCH] Handle fasta with no line breaks. fixes #18619 Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- tilelib.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tilelib.go b/tilelib.go index 289f8895e5..6acd8d6a26 100644 --- a/tilelib.go +++ b/tilelib.go @@ -556,6 +556,7 @@ func (tilelib *tileLibrary) TileFasta(filelabel string, rdr io.Reader, matchChro } todo := make(chan jobT, 1) scanner := bufio.NewScanner(rdr) + scanner.Buffer(make([]byte, 256), 1<<29) // 512 MiB, in case fasta does not have line breaks go func() { defer close(todo) var fasta []byte -- 2.30.2