From a3f9b1d2d0d1b2a3bfb0767e14b775702dee8234 Mon Sep 17 00:00:00 2001 From: Koeng101 Date: Thu, 3 Dec 2020 16:21:51 -0800 Subject: [PATCH] Add support for Gz'd flat files (#79) * Adds func for reading multi and flat genbank files * Fixed comment problems * Reads, not parses * Added feature for Sequences from Gzipped flat files * Fixed error handling --- data/flatGbk_test.seq.gz | Bin 0 -> 4260 bytes io.go | 50 ++++++++++++++++----------------------- io_test.go | 11 +++++++++ 3 files changed, 31 insertions(+), 30 deletions(-) create mode 100644 data/flatGbk_test.seq.gz diff --git a/data/flatGbk_test.seq.gz b/data/flatGbk_test.seq.gz new file mode 100644 index 0000000000000000000000000000000000000000..a465e94ad0109f0aee2840f251c62f7f129c2d52 GIT binary patch literal 4260 zcmV;V5L@pbiwFqblDc0217>VtbVp)qUvy=2bS`scaR9wpTXWhca``FMZYym~FycTnvvYp^to1Dk8($_#ojQkHN;Iw2>+-E@hZh%@ zx!1{px!Qfga#^~{sI2_&ZMih18f&N3gh-&wH{QbMLK|1EE4|opv{4@ty>`m`$gg-^Z!kJhi`rC2 zwB0)!oDEJ!Lr>ii<;{`$wyq!5Zri$C)oWMYt4&Mn;NT#>zWkCk$N3lCZrAH}U$W5~ zje6>C#gF5ekEKPmEcKdMyv#}T<17F6xYzBD4#vSGnnihZJyR| zCG$fsNnCoUA6JXgmCD?2ItTvcWsqgyV<*@_5v0x1(_+Uvmkf$H>ooLdQFis)FTS?<-_<1vR^RQuKBK4?W)`Y5Nz zT;GvH(5lkQdv*QDU-Ax7%cDFNjYaq6(pBFoqg_=mv2R(qbxo!w0NU+B*6VM|J(R8O z00coRt?r3oo-1J|)Q^p;Hfpo#sEu3eY6-Ot&$=f#a8L9-YA@bkL(uPklEG(wOuzrx zY4u+(I?6j8sSn=S$0Id3?e~udr-LqiAB|2wGSTGA#Z@q-hf#0T@1Jz{RNPbQ1DsHK z%GL0ok9%5wQ+eZRT^dJbxO=QN8`9Grb69rlz#n?U<8g3#OuP&~s>^!m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