/*=========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular * purpose. * * Please cite the author in any work or product based on this material. * * =========================================================================== * */ This file contains instructions on building and running NGS C++ example programs. The source code is contained in *.cpp files. Each source file corresponds to a separate executable that demonstrates use of a particular feature of the NGS C++ API. To be built, the executables require some external libraries and the corresponding headers. See 7) for default locations and overrides. 1. Build all - run "make". This will build executables for all examples and place them in the current directory. 2. Build separately - run "make ", where is one of "AlignSliceTest", "AlignTest", "DumpReferenceFASTA", "FragTest", "PileupTest", "RefTest". This will build and run the selected example with predefined arguments. 3. Run all - run "make run_all". This will run all examples with their predefined arguments. The output of all the examples goes to stdout and for some of them there is a lot of it, so it is advisable to redirect stdout to a file, e.g. "make run_all >output.txt" 4. Run and diff - run "make run_and_diff". This will execute all the examples with their predefined arguments, run them, capture the output in a temporary file, and then use "diff" to compare the actual output against a file containing the expected output (./expected.txt). Any discrepancies will be displayed. If the actual output matches the expected, there will be a message "NGS C++ examples work as expected" at the end of the execution. 5. Run separately - run "make " where