Closed taylorreiter closed 1 year ago
It's due to some long rows, similar to https://github.com/shenwei356/seqkit/issues/214.
Hi Taylor, thanks for reporting this. I've just increased the default size of the line buffer from 4096 to 1M. It works now.
If the error still occurs, you can use a bigger buffer size:
-b, --buffer-size string size of line buffer, supported unit: K, M, G. You need to increase the
value when "bufio.Scanner: token too long" error occured (default "1M")
thank you so much @shenwei356! I've tried this on both Mac and Linux and it solved the problem. Thank you!!!!!
Please don't hesitate to let me know if you encounter any additional problems.
Prerequisites
taxonkit version
: I'm usingtaxonkit v0.14.1
(installed via conda)Describe your issue
taxonkit lca
gives error[ERRO] bufio.Scanner: token too long
on some files. I ran this command on 64k of these files, and it gave this error for 71 of them. I've attached one file below.test.txt: A TSV-formatted input file