htslib icon indicating copy to clipboard operation
htslib copied to clipboard

Minor code cleanups

Open jmarshall opened this issue 7 years ago • 0 comments

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.

jmarshall avatar Jun 05 '17 12:06 jmarshall