Two questions about installing Samtools with the api:
I downloaded the zip file from the development branch of the samtools site on github (https://github.com/samtools/samtools). Is this the correct repository? (I already have version 0.1.18 installed, but I don't think I have the library)
When I try to build using make, I get this error:
Makefile:7: ../htslib/htslib.mk: No such file or directory make: No rule to make target `../htslib/htslib.mk'. Stop.
Near the top of the Makefile, there are a few lines that look like this:
Adjust $(HTSDIR) to point to your top-level htslib directory
HTSDIR = ../htslib
include $(HTSDIR)/htslib.mk
I didn't have an htslib directory before - I'm not sure what it's looking for. I tried creating an empty "htslib" directory in the appropriate place, but it didn't help.
If this is the right repository, how do I make the build work?
Thanks very much.
Thank you. It turns out that what I actually need is an older version. I've been trying to install bam-readcount and was not successful with samtools 0.1.18 or 0.1.19. So I looked for a newer version. But actually, I need 0.1.17. That installed easily and I'm all set.
Hmmm... bam-readcount compiles fine for me with samtools 0.1.19 or with the _standalone_ branch from samtools at GitHub.
OK, it could easily have been my mistake - In my initial attempts I may have had SAMTOOLS_ROOT pointing to a directory that just contains the samtoools executable, rather than the full distribution.