The Valley of Fear
Alan Kistler of Newsarama has pointed out other potential inspirations such as the use in "The Valley of Fear" of a code "based on a book that many people would own." A murder victim found inside a locked room accessible only by climbing might be an allusion to "The Sign of the Four".