second version of obidistribute and a first buggy version of obiuniq

This commit is contained in:
coissac committed 2022-02-15 00:47:02 +01:00
1 parent b931321ba1
commit 3586ecc483
15 files changed
+402 -21

No files matched your search

+6
View File
@@ -64,6 +64,12 @@ func ReadSequencesBatchFromFile(filename string, options ...WithOption) (obiseq.
tag, _ := breader.Peek(30)
if len(tag) < 30 {
newIter := obiseq.MakeIBioSequenceBatch()
close(newIter.Channel())
return newIter, nil
}
filetype := GuessSeqFileType(string(tag))
log.Printf("File guessed format : %s (tag: %s)",
filetype, (strings.Split(string(tag), "\n"))[0])