code: public Path createIndex() throws IOException {
          Path indexPath = bamFile.getParent().resolve(bamFile.getFileName().toString() + ".bai");
          return createIndex(indexPath);
      }
docs: Creates a index file for the BAM or CRAM input file.
  @return The path of the index file.
  @throws IOException