20
20
21
21
#include < algorithm>
22
22
#include < cstddef>
23
+ #include < fstream> // IWYU pragma: keep
23
24
#include < iostream>
24
25
#include < memory>
25
26
#include < regex>
26
27
#include < string>
27
28
#include < vector>
28
29
29
- #include " file/base/file.h"
30
- #include " file/base/options.h"
31
- #include " file/iostream/file_iostream.h"
32
30
#include " absl/log/check.h"
33
31
#include " absl/log/log.h"
34
32
#include " absl/strings/str_cat.h"
35
- #include " third_party/gbwt/ include/gbwt/metadata.h"
36
- #include " third_party/gbwt/ include/gbwt/support.h"
37
- #include " third_party/gbwt/ include/gbwt/utils.h"
38
- #include " third_party/gbwtgraph/ include/gbwtgraph/subgraph.h"
39
- #include " third_party/libhandlegraph/ src/include/handlegraph/types.hpp"
33
+ #include " include/gbwt/metadata.h"
34
+ #include " include/gbwt/support.h"
35
+ #include " include/gbwt/utils.h"
36
+ #include " include/gbwtgraph/subgraph.h"
37
+ #include " src/include/handlegraph/types.hpp"
40
38
#include " third_party/nucleus/core/status.h"
41
39
#include " third_party/nucleus/core/statusor.h"
42
40
#include " third_party/nucleus/platform/types.h"
@@ -57,7 +55,8 @@ GbzReader::GbzReader(const std::string& gbz_path,
57
55
double start = gbwt::readTimer ();
58
56
59
57
// Open GBZ file in read mode.
60
- file::FileInStream in (file::OpenOrDie (gbz_path, " r" , file::Defaults ()));
58
+ std::ifstream in (gbz_path);
59
+
61
60
// Create an empty GBZ object.
62
61
this ->gbz_ = gbwtgraph::GBZ ();
63
62
// Load the GBZ file into the GBZ object.
@@ -114,7 +113,7 @@ nucleus::StatusOr<std::vector<nucleus::genomics::v1::Read>> GbzReader::Query(
114
113
115
114
updateCache (reads);
116
115
117
- return StatusOr<std::vector<nucleus::genomics::v1::Read>>(reads);
116
+ return nucleus:: StatusOr<std::vector<nucleus::genomics::v1::Read>>(reads);
118
117
}
119
118
120
119
nucleus::StatusOr<std::shared_ptr<SamIterable>> GbzReader::Iterate () const {
0 commit comments