htslib
htslib copied to clipboard
Minor code cleanups
The cram/ subdirectory has various items that are a legacy of its iolib origins, and as a part of htslib could be recoded using existing HTSlib facilities instead.
-
cram/zfio.c duplicates hfile.h (and bgzf.h for its gzip I/O capabilities). It is used only in cram/cram_index.c, which could be recoded using BGZF instead. Then zfio.c/.h could be removed.
-
cram/os.h contains items that are variously irrelevant or, where needed, should be lifted to a top-level header so that they can be used library-wide.