From: Tom Clegg Date: Fri, 7 Jan 2022 16:20:06 +0000 (-0500) Subject: Handle fasta with no line breaks. X-Git-Url: https://git.arvados.org/lightning.git/commitdiff_plain/5435c35e1d163adf5a79597721016c253e7c7e1d Handle fasta with no line breaks. fixes #18619 Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- 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