| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
This library contains code that has been used in the Smith lab for too many years, and that we depend on for several of our data analysis tools. Many of those tools use older versions of this source code in subdirectories of other repos.
Assuming you downloaded the release X.X the tarball libsmithlab_cpp-X.X.tar.gz, you would do the following:
$ tar -xvf libsmithlab_cpp-X.X.tar.gz $ cd libsmithlab_cpp-X.X $ ./configure $ make $ make install
If you do not want to contaminate your system's directories with our code, you can modify the 3rd step above to:
$ ./configure --prefix=/some/unimportant/directory
If you want to build this code to use our htslib wrapper, you will need to run like this:
$ ./configure --enable-hts
You must also have HTSlib installed in some standard place on your system. If you have it installed in some other place, then you will need to set variables (CPPFLAGS and LDFLAGS) when running the configure script.
If you clone the repo and attempt to use the source directly, you are likely to run into more problems than if you use a release. I will do everything I can to provide support for the releases, but I may not help if you have problems using the source repo directly.
This README.md file is written just as we are turning smithlab_cpp into a library and not a collection of source files. If you want to use it the way it has been used from 2010-2019, then you can use the Makefile in this repo without running the ./configure script:
$ make OptionParser.o g++ -Wall -std=c++17 -c -o OptionParser.o OptionParser.cpp
Note: if you run the ./configure script it will overwrite the Makefile indicated above. If that happens, just get a new one. The ./configure script must be obtained using autotools if you cloned this repo; if you downloaded this code as a "release" then the configure script should be present already.
This code needs lots of changes. I'm listing them here for the present and hope to take care of each with separate issues on GitHub. The result should be less total code overall in smithlab_cpp.
| Back | FazBrowse Home | New Git URL |