Gene and Chromosome Analysis Toolkit (gcat) is a C++ library for most
common tasks associated with genomic data files such as for parsing
FASTX, SAM/BAM, and GTF files. gcat is conceptually identical to
pysam and
HTseq, and
borrows ideas from them.
The documentation for gcatlib will be made available soon.
gcat is dependent on HTSlib. HTSlib can be downloaded from
here and can be installed by
following the procedure under 'Basic Installation' described
here
gcatlib can be downloaded here
Untar the source files using:
tar -xf gcatlib-x.y.z.tar.gz
Create a build directory with:
cd gcatlib-x.y.z
mkdir build
cd build
gcatlib is installed using the autotools build system. The first
step is to run a configuration script to generate the required
Makefiles. The parameters to configure will vary based on where the
dependent libraries are installed, and where we would like gcatlib
to be installed.
- The most likely scenario, where
HTSlibis not in the the standard system path (typically/usr/binand/usr/lib), and to installgcatlibin a non-standard path:
../configure --prefix=path_to_install_gcatlib \
CPPFLAGS='-I/path_to_htslib/include' \
LDFLAGS='-L/path_to_htslib/lib'
- If
HTSlibis installed in the standard system path (typically/usr/binand/usr/lib), and if we would likegcatlibto be installed in the standard system path, use the following:
../configure
- To install gcatlib in a non-standard directory, and if
HTSlibis in the standard system path use:
../configure --prefix=path_to_install_gcatlib
- If
HTSlibis installed in a non-standard path and to install gcatlib in the standard system path, theconfigurescript should be executed with:
../configure CPPFLAGS='-I/path_to_htslib/include' \
LDFLAGS='-L/path_to_htslib/lib'
Of note, if you have cloned the Git repo, it does not include the
configure script. This can be generated by executing:
autoreconf -i
After which the configuration can proceed as usual.
The configuration is now complete and the build system is ready to compile all the programs with:
make [-j threads]
This will generate the libraries into the build directory.
Finally, install gcatlib with:
make install
This will copy all the header files into installation_path/include and
the library files into installation_path/lib.
Copyright (C) 2025 Rishvanth Prabakar
Authors: Rish Prabakar
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.