d6c216fa6a01dbd47ae3a8848d0b6456adf31a4b
braney
  Mon Sep 21 17:31:58 2026 -0700
hubApi: serve bigNarrowPeak tracks, refs #38395

initSupportedTypes() advertises bigNarrowPeak but allowedBigBedType() left
it out, so bigFileOpen() returned NULL for a type the API says it supports.
Three endpoints were affected: /getData/track and /list/schema reported the
bigDataUrl as missing although the file was there, and /list/chromosomes
killed the CGI, because bigFileChromInfoOutput() passed the null bbi
straight to bbiChromList().

Add bigNarrowPeak to allowedBigBedType(), guard the null in
bigFileChromInfoOutput() so a future divergence between the two lists is a
415 rather than a crash, and note in each list that they have to agree.

Adds a bigNarrowPeak test to the supportedTypes group covering all three
endpoints.

diff --git src/hg/hubApi/tests/expected/bigNarrowPeak.gz src/hg/hubApi/tests/expected/bigNarrowPeak.gz
new file mode 100644
index 00000000000..ecd1c300298
Binary files /dev/null and src/hg/hubApi/tests/expected/bigNarrowPeak.gz differ