Closed billzt closed 2 years ago
I've pushed the fix for this both here and in Bioc git (master, ie bioc devel only). Please have a look.
I used your test2 file as a regression test so that at least is now working.
Sorry for my late reply. I have only R v4.1 and cannot use bioc devel. So I directly downloaded the source code from this repo (master) and installed using install.packages("genbankr-master/", repos=NULL, type="source")
and it seems been fixed.
I'm not good as R programming, but I'm still confused about this:
readLocus = function(line) {
## missing strip fieldname?
spl = strsplit(line, "[\t]+", line)[[1]]
spl
}
In fact, the LOCUS
line in GenBank format do not use \t
as delimiters. Instead, they use blanks. How about considering blanks as delimiters?
Local Genbank File, command is:
file 1:
runs OK
file2:
is wrong
Error:
test1.gbk.txt test2.gbk.txt