839d2067c1871e5ffa53842f1b9c04806cf14f97
jcasper
  Thu Jul 25 11:51:10 2024 -0700
The new straw library should recognize when it's doing a bad data retrieval.
Also added a rudimentary way to retrieve available normalization options, refs #33225

diff --git src/hg/lib/straw/new_straw.h src/hg/lib/straw/new_straw.h
index 53bb6a5..feb1228 100644
--- src/hg/lib/straw/new_straw.h
+++ src/hg/lib/straw/new_straw.h
@@ -112,16 +112,21 @@
 /* Added at UCSC */
 void getHeaderFields(const std::string &filename, std::string &genome, std::vector<std::string> &chromNames,
         std::vector<int> &chromSizes, std::vector<int> &bpResolutions, std::vector<int> &fragResolutions,
         std::vector<std::string> &attributes);
 /* Fill in the provided fields with information from the header of the hic file in the supplied filename.
  * fragResolutions is left empty for now, as we're not making use of it. */
 
 class strawException : public std::runtime_error {
 /* Simple exception wrapper class */
     public:
     strawException(const std::string& error):
         std::runtime_error(error) {
     }
 };
 
+std::set<std::string> getNormOptions();
+/* Return the set of normalization options that have been encountered through footer parsing.
+ * The result will be empty unless at least one straw() request has been made.
+ */
+
 #endif