ngs_server 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +2 -0
- data/bin/ngs_server +58 -0
- data/data/holder.txt +0 -0
- data/ext/bamtools/CMakeLists.txt +49 -0
- data/ext/bamtools/LICENSE +22 -0
- data/ext/bamtools/README +60 -0
- data/ext/bamtools/Tutorial_Toolkit_BamTools-1.0.pdf +0 -0
- data/ext/bamtools/docs/Doxyfile +1601 -0
- data/ext/bamtools/extconf.rb +9 -0
- data/ext/bamtools/src/CMakeFiles/CMakeDirectoryInformation.cmake +22 -0
- data/ext/bamtools/src/CMakeFiles/SharedHeaders.dir/DependInfo.cmake +13 -0
- data/ext/bamtools/src/CMakeFiles/SharedHeaders.dir/build.make +65 -0
- data/ext/bamtools/src/CMakeFiles/SharedHeaders.dir/cmake_clean.cmake +8 -0
- data/ext/bamtools/src/CMakeFiles/SharedHeaders.dir/depend.internal +3 -0
- data/ext/bamtools/src/CMakeFiles/SharedHeaders.dir/depend.make +3 -0
- data/ext/bamtools/src/CMakeFiles/SharedHeaders.dir/progress.make +2 -0
- data/ext/bamtools/src/CMakeFiles/progress.marks +1 -0
- data/ext/bamtools/src/CMakeLists.txt +18 -0
- data/ext/bamtools/src/ExportHeader.cmake +31 -0
- data/ext/bamtools/src/Makefile +182 -0
- data/ext/bamtools/src/api/BamAlignment.cpp +2432 -0
- data/ext/bamtools/src/api/BamAlignment.h +206 -0
- data/ext/bamtools/src/api/BamAux.h +456 -0
- data/ext/bamtools/src/api/BamConstants.h +127 -0
- data/ext/bamtools/src/api/BamIndex.h +79 -0
- data/ext/bamtools/src/api/BamMultiReader.cpp +395 -0
- data/ext/bamtools/src/api/BamMultiReader.h +126 -0
- data/ext/bamtools/src/api/BamReader.cpp +369 -0
- data/ext/bamtools/src/api/BamReader.h +117 -0
- data/ext/bamtools/src/api/BamWriter.cpp +142 -0
- data/ext/bamtools/src/api/BamWriter.h +63 -0
- data/ext/bamtools/src/api/CMakeFiles/APIHeaders.dir/DependInfo.cmake +14 -0
- data/ext/bamtools/src/api/CMakeFiles/APIHeaders.dir/build.make +80 -0
- data/ext/bamtools/src/api/CMakeFiles/APIHeaders.dir/cmake_clean.cmake +8 -0
- data/ext/bamtools/src/api/CMakeFiles/APIHeaders.dir/depend.internal +3 -0
- data/ext/bamtools/src/api/CMakeFiles/APIHeaders.dir/depend.make +3 -0
- data/ext/bamtools/src/api/CMakeFiles/APIHeaders.dir/progress.make +2 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/BamAlignment.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/BamMultiReader.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/BamReader.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/BamWriter.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/CXX.includecache +596 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/DependInfo.cmake +41 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/SamHeader.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/SamProgram.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/SamProgramChain.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/SamReadGroup.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/SamReadGroupDictionary.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/SamSequence.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/SamSequenceDictionary.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/build.make +675 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/cmake_clean.cmake +32 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/cmake_clean_target.cmake +3 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/depend.internal +295 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/depend.make +295 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/flags.make +8 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/BamHeader_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/BamIndexFactory_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/BamMultiReader_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/BamRandomAccessController_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/BamReader_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/BamStandardIndex_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/BamToolsIndex_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/BamWriter_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/BgzfStream_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/SamFormatParser_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/SamFormatPrinter_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/internal/SamHeaderValidator_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/link.txt +2 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools-static.dir/progress.make +24 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/BamAlignment.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/BamMultiReader.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/BamReader.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/BamWriter.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/CXX.includecache +596 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/DependInfo.cmake +47 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/SamHeader.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/SamProgram.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/SamProgramChain.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/SamReadGroup.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/SamReadGroupDictionary.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/SamSequence.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/SamSequenceDictionary.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/build.make +677 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/cmake_clean.cmake +33 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/depend.internal +295 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/depend.make +295 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/flags.make +8 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/BamHeader_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/BamIndexFactory_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/BamMultiReader_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/BamRandomAccessController_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/BamReader_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/BamStandardIndex_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/BamToolsIndex_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/BamWriter_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/BgzfStream_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/SamFormatParser_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/SamFormatPrinter_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/internal/SamHeaderValidator_p.cpp.o +0 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/link.txt +1 -0
- data/ext/bamtools/src/api/CMakeFiles/BamTools.dir/progress.make +24 -0
- data/ext/bamtools/src/api/CMakeFiles/CMakeDirectoryInformation.cmake +22 -0
- data/ext/bamtools/src/api/CMakeFiles/progress.marks +1 -0
- data/ext/bamtools/src/api/CMakeLists.txt +78 -0
- data/ext/bamtools/src/api/Makefile +902 -0
- data/ext/bamtools/src/api/SamConstants.h +95 -0
- data/ext/bamtools/src/api/SamHeader.cpp +184 -0
- data/ext/bamtools/src/api/SamHeader.h +68 -0
- data/ext/bamtools/src/api/SamProgram.cpp +139 -0
- data/ext/bamtools/src/api/SamProgram.h +61 -0
- data/ext/bamtools/src/api/SamProgramChain.cpp +351 -0
- data/ext/bamtools/src/api/SamProgramChain.h +85 -0
- data/ext/bamtools/src/api/SamReadGroup.cpp +221 -0
- data/ext/bamtools/src/api/SamReadGroup.h +68 -0
- data/ext/bamtools/src/api/SamReadGroupDictionary.cpp +289 -0
- data/ext/bamtools/src/api/SamReadGroupDictionary.h +86 -0
- data/ext/bamtools/src/api/SamSequence.cpp +161 -0
- data/ext/bamtools/src/api/SamSequence.h +60 -0
- data/ext/bamtools/src/api/SamSequenceDictionary.cpp +292 -0
- data/ext/bamtools/src/api/SamSequenceDictionary.h +88 -0
- data/ext/bamtools/src/api/api_global.h +21 -0
- data/ext/bamtools/src/api/cmake_install.cmake +122 -0
- data/ext/bamtools/src/api/internal/BamHeader_p.cpp +132 -0
- data/ext/bamtools/src/api/internal/BamHeader_p.h +71 -0
- data/ext/bamtools/src/api/internal/BamIndexFactory_p.cpp +112 -0
- data/ext/bamtools/src/api/internal/BamIndexFactory_p.h +49 -0
- data/ext/bamtools/src/api/internal/BamMultiMerger_p.h +297 -0
- data/ext/bamtools/src/api/internal/BamMultiReader_p.cpp +805 -0
- data/ext/bamtools/src/api/internal/BamMultiReader_p.h +103 -0
- data/ext/bamtools/src/api/internal/BamRandomAccessController_p.cpp +272 -0
- data/ext/bamtools/src/api/internal/BamRandomAccessController_p.h +93 -0
- data/ext/bamtools/src/api/internal/BamReader_p.cpp +380 -0
- data/ext/bamtools/src/api/internal/BamReader_p.h +112 -0
- data/ext/bamtools/src/api/internal/BamStandardIndex_p.cpp +986 -0
- data/ext/bamtools/src/api/internal/BamStandardIndex_p.h +236 -0
- data/ext/bamtools/src/api/internal/BamToolsIndex_p.cpp +641 -0
- data/ext/bamtools/src/api/internal/BamToolsIndex_p.h +187 -0
- data/ext/bamtools/src/api/internal/BamWriter_p.cpp +424 -0
- data/ext/bamtools/src/api/internal/BamWriter_p.h +66 -0
- data/ext/bamtools/src/api/internal/BgzfStream_p.cpp +438 -0
- data/ext/bamtools/src/api/internal/BgzfStream_p.h +108 -0
- data/ext/bamtools/src/api/internal/SamFormatParser_p.cpp +230 -0
- data/ext/bamtools/src/api/internal/SamFormatParser_p.h +61 -0
- data/ext/bamtools/src/api/internal/SamFormatPrinter_p.cpp +210 -0
- data/ext/bamtools/src/api/internal/SamFormatPrinter_p.h +60 -0
- data/ext/bamtools/src/api/internal/SamHeaderValidator_p.cpp +510 -0
- data/ext/bamtools/src/api/internal/SamHeaderValidator_p.h +101 -0
- data/ext/bamtools/src/api/internal/SamHeaderVersion_p.h +134 -0
- data/ext/bamtools/src/cmake_install.cmake +42 -0
- data/ext/bamtools/src/shared/bamtools_global.h +78 -0
- data/ext/bamtools/src/third_party/CMakeFiles/CMakeDirectoryInformation.cmake +22 -0
- data/ext/bamtools/src/third_party/CMakeFiles/progress.marks +1 -0
- data/ext/bamtools/src/third_party/CMakeLists.txt +10 -0
- data/ext/bamtools/src/third_party/Makefile +167 -0
- data/ext/bamtools/src/third_party/cmake_install.cmake +35 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/CMakeDirectoryInformation.cmake +22 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/CXX.includecache +144 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/DependInfo.cmake +27 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/build.make +157 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/cmake_clean.cmake +13 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/depend.internal +31 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/depend.make +31 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/flags.make +8 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/json_reader.cpp.o +0 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/json_value.cpp.o +0 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/json_writer.cpp.o +0 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/link.txt +1 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/jsoncpp.dir/progress.make +4 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeFiles/progress.marks +1 -0
- data/ext/bamtools/src/third_party/jsoncpp/CMakeLists.txt +23 -0
- data/ext/bamtools/src/third_party/jsoncpp/LICENSE +55 -0
- data/ext/bamtools/src/third_party/jsoncpp/Makefile +263 -0
- data/ext/bamtools/src/third_party/jsoncpp/cmake_install.cmake +29 -0
- data/ext/bamtools/src/third_party/jsoncpp/json.h +15 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_batchallocator.h +130 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_config.h +42 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_features.h +47 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_forwards.h +42 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_internalarray.inl +453 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_internalmap.inl +612 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_reader.cpp +870 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_reader.h +201 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_tool.h +93 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_value.cpp +1701 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_value.h +1059 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_valueiterator.inl +297 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_writer.cpp +819 -0
- data/ext/bamtools/src/third_party/jsoncpp/json_writer.h +179 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/CMakeDirectoryInformation.cmake +25 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/CXX.includecache +698 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/DependInfo.cmake +34 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_convert.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_count.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_coverage.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_filter.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_header.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_index.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_merge.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_random.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_resolve.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_revert.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_sort.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_split.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_stats.cpp.o +0 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/build.make +447 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/cmake_clean.cmake +24 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/depend.internal +319 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/depend.make +319 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/flags.make +8 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/link.txt +1 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/bamtools_cmd.dir/progress.make +15 -0
- data/ext/bamtools/src/toolkit/CMakeFiles/progress.marks +1 -0
- data/ext/bamtools/src/toolkit/CMakeLists.txt +44 -0
- data/ext/bamtools/src/toolkit/Makefile +560 -0
- data/ext/bamtools/src/toolkit/bamtools.cpp +163 -0
- data/ext/bamtools/src/toolkit/bamtools_convert.cpp +888 -0
- data/ext/bamtools/src/toolkit/bamtools_convert.h +37 -0
- data/ext/bamtools/src/toolkit/bamtools_count.cpp +187 -0
- data/ext/bamtools/src/toolkit/bamtools_count.h +37 -0
- data/ext/bamtools/src/toolkit/bamtools_coverage.cpp +196 -0
- data/ext/bamtools/src/toolkit/bamtools_coverage.h +37 -0
- data/ext/bamtools/src/toolkit/bamtools_filter.cpp +911 -0
- data/ext/bamtools/src/toolkit/bamtools_filter.h +37 -0
- data/ext/bamtools/src/toolkit/bamtools_header.cpp +122 -0
- data/ext/bamtools/src/toolkit/bamtools_header.h +38 -0
- data/ext/bamtools/src/toolkit/bamtools_index.cpp +126 -0
- data/ext/bamtools/src/toolkit/bamtools_index.h +37 -0
- data/ext/bamtools/src/toolkit/bamtools_merge.cpp +221 -0
- data/ext/bamtools/src/toolkit/bamtools_merge.h +37 -0
- data/ext/bamtools/src/toolkit/bamtools_random.cpp +255 -0
- data/ext/bamtools/src/toolkit/bamtools_random.h +37 -0
- data/ext/bamtools/src/toolkit/bamtools_resolve.cpp +1396 -0
- data/ext/bamtools/src/toolkit/bamtools_resolve.h +42 -0
- data/ext/bamtools/src/toolkit/bamtools_revert.cpp +194 -0
- data/ext/bamtools/src/toolkit/bamtools_revert.h +37 -0
- data/ext/bamtools/src/toolkit/bamtools_sort.cpp +410 -0
- data/ext/bamtools/src/toolkit/bamtools_sort.h +37 -0
- data/ext/bamtools/src/toolkit/bamtools_split.cpp +551 -0
- data/ext/bamtools/src/toolkit/bamtools_split.h +38 -0
- data/ext/bamtools/src/toolkit/bamtools_stats.cpp +286 -0
- data/ext/bamtools/src/toolkit/bamtools_stats.h +37 -0
- data/ext/bamtools/src/toolkit/bamtools_tool.h +35 -0
- data/ext/bamtools/src/toolkit/bamtools_version.h +20 -0
- data/ext/bamtools/src/toolkit/bamtools_version.h.in +20 -0
- data/ext/bamtools/src/toolkit/cmake_install.cmake +52 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/CXX.includecache +250 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/DependInfo.cmake +29 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/bamtools_fasta.cpp.o +0 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/bamtools_options.cpp.o +0 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/bamtools_pileup_engine.cpp.o +0 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/bamtools_utilities.cpp.o +0 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/build.make +184 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/cmake_clean.cmake +14 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/depend.internal +40 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/depend.make +40 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/flags.make +8 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/link.txt +1 -0
- data/ext/bamtools/src/utils/CMakeFiles/BamTools-utils.dir/progress.make +5 -0
- data/ext/bamtools/src/utils/CMakeFiles/CMakeDirectoryInformation.cmake +23 -0
- data/ext/bamtools/src/utils/CMakeFiles/progress.marks +1 -0
- data/ext/bamtools/src/utils/CMakeLists.txt +30 -0
- data/ext/bamtools/src/utils/Makefile +290 -0
- data/ext/bamtools/src/utils/bamtools_fasta.cpp +632 -0
- data/ext/bamtools/src/utils/bamtools_fasta.h +47 -0
- data/ext/bamtools/src/utils/bamtools_filter_engine.h +552 -0
- data/ext/bamtools/src/utils/bamtools_filter_properties.h +195 -0
- data/ext/bamtools/src/utils/bamtools_filter_ruleparser.h +319 -0
- data/ext/bamtools/src/utils/bamtools_options.cpp +287 -0
- data/ext/bamtools/src/utils/bamtools_options.h +213 -0
- data/ext/bamtools/src/utils/bamtools_pileup_engine.cpp +327 -0
- data/ext/bamtools/src/utils/bamtools_pileup_engine.h +94 -0
- data/ext/bamtools/src/utils/bamtools_utilities.cpp +333 -0
- data/ext/bamtools/src/utils/bamtools_utilities.h +67 -0
- data/ext/bamtools/src/utils/bamtools_variant.h +128 -0
- data/ext/bamtools/src/utils/cmake_install.cmake +29 -0
- data/ext/bamtools/src/utils/utils_global.h +21 -0
- data/lib/ngs_server/version.rb +3 -0
- data/lib/ngs_server.rb +3 -0
- data/ngs_server.gemspec +23 -0
- metadata +339 -0
@@ -0,0 +1,201 @@
|
|
1
|
+
// Copyright 2007-2010 Baptiste Lepilleur
|
2
|
+
// Distributed under MIT license, or public domain if desired and
|
3
|
+
// recognized in your jurisdiction.
|
4
|
+
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
|
5
|
+
|
6
|
+
#ifndef CPPTL_JSON_READER_H_INCLUDED
|
7
|
+
# define CPPTL_JSON_READER_H_INCLUDED
|
8
|
+
|
9
|
+
# include "json_features.h"
|
10
|
+
# include "json_value.h"
|
11
|
+
# include <deque>
|
12
|
+
# include <stack>
|
13
|
+
# include <string>
|
14
|
+
# include <iostream>
|
15
|
+
|
16
|
+
namespace Json {
|
17
|
+
|
18
|
+
/** \brief Unserialize a <a HREF="http://www.json.org">JSON</a> document into a Value.
|
19
|
+
*
|
20
|
+
*/
|
21
|
+
class JSON_API Reader
|
22
|
+
{
|
23
|
+
public:
|
24
|
+
typedef char Char;
|
25
|
+
typedef const Char *Location;
|
26
|
+
|
27
|
+
/** \brief Constructs a Reader allowing all features
|
28
|
+
* for parsing.
|
29
|
+
*/
|
30
|
+
Reader();
|
31
|
+
|
32
|
+
/** \brief Constructs a Reader allowing the specified feature set
|
33
|
+
* for parsing.
|
34
|
+
*/
|
35
|
+
Reader( const Features &features );
|
36
|
+
|
37
|
+
/** \brief Read a Value from a <a HREF="http://www.json.org">JSON</a> document.
|
38
|
+
* \param document UTF-8 encoded string containing the document to read.
|
39
|
+
* \param root [out] Contains the root value of the document if it was
|
40
|
+
* successfully parsed.
|
41
|
+
* \param collectComments \c true to collect comment and allow writing them back during
|
42
|
+
* serialization, \c false to discard comments.
|
43
|
+
* This parameter is ignored if Features::allowComments_
|
44
|
+
* is \c false.
|
45
|
+
* \return \c true if the document was successfully parsed, \c false if an error occurred.
|
46
|
+
*/
|
47
|
+
bool parse( const std::string &document,
|
48
|
+
Value &root,
|
49
|
+
bool collectComments = true );
|
50
|
+
|
51
|
+
/** \brief Read a Value from a <a HREF="http://www.json.org">JSON</a> document.
|
52
|
+
* \param document UTF-8 encoded string containing the document to read.
|
53
|
+
* \param root [out] Contains the root value of the document if it was
|
54
|
+
* successfully parsed.
|
55
|
+
* \param collectComments \c true to collect comment and allow writing them back during
|
56
|
+
* serialization, \c false to discard comments.
|
57
|
+
* This parameter is ignored if Features::allowComments_
|
58
|
+
* is \c false.
|
59
|
+
* \return \c true if the document was successfully parsed, \c false if an error occurred.
|
60
|
+
*/
|
61
|
+
bool parse( const char *beginDoc, const char *endDoc,
|
62
|
+
Value &root,
|
63
|
+
bool collectComments = true );
|
64
|
+
|
65
|
+
/// \brief Parse from input stream.
|
66
|
+
/// \see Json::operator>>(std::istream&, Json::Value&).
|
67
|
+
bool parse( std::istream &is,
|
68
|
+
Value &root,
|
69
|
+
bool collectComments = true );
|
70
|
+
|
71
|
+
/** \brief Returns a user friendly string that list errors in the parsed document.
|
72
|
+
* \return Formatted error message with the list of errors with their location in
|
73
|
+
* the parsed document. An empty string is returned if no error occurred
|
74
|
+
* during parsing.
|
75
|
+
*/
|
76
|
+
std::string getFormatedErrorMessages() const;
|
77
|
+
|
78
|
+
private:
|
79
|
+
enum TokenType
|
80
|
+
{
|
81
|
+
tokenEndOfStream = 0,
|
82
|
+
tokenObjectBegin,
|
83
|
+
tokenObjectEnd,
|
84
|
+
tokenArrayBegin,
|
85
|
+
tokenArrayEnd,
|
86
|
+
tokenString,
|
87
|
+
tokenNumber,
|
88
|
+
tokenTrue,
|
89
|
+
tokenFalse,
|
90
|
+
tokenNull,
|
91
|
+
tokenArraySeparator,
|
92
|
+
tokenMemberSeparator,
|
93
|
+
tokenComment,
|
94
|
+
tokenError
|
95
|
+
};
|
96
|
+
|
97
|
+
class Token
|
98
|
+
{
|
99
|
+
public:
|
100
|
+
TokenType type_;
|
101
|
+
Location start_;
|
102
|
+
Location end_;
|
103
|
+
};
|
104
|
+
|
105
|
+
class ErrorInfo
|
106
|
+
{
|
107
|
+
public:
|
108
|
+
Token token_;
|
109
|
+
std::string message_;
|
110
|
+
Location extra_;
|
111
|
+
};
|
112
|
+
|
113
|
+
typedef std::deque<ErrorInfo> Errors;
|
114
|
+
|
115
|
+
bool expectToken( TokenType type, Token &token, const char *message );
|
116
|
+
bool readToken( Token &token );
|
117
|
+
void skipSpaces();
|
118
|
+
bool match( Location pattern,
|
119
|
+
int patternLength );
|
120
|
+
bool readComment();
|
121
|
+
bool readCStyleComment();
|
122
|
+
bool readCppStyleComment();
|
123
|
+
bool readString();
|
124
|
+
void readNumber();
|
125
|
+
bool readValue();
|
126
|
+
bool readObject( Token &token );
|
127
|
+
bool readArray( Token &token );
|
128
|
+
bool decodeNumber( Token &token );
|
129
|
+
bool decodeString( Token &token );
|
130
|
+
bool decodeString( Token &token, std::string &decoded );
|
131
|
+
bool decodeDouble( Token &token );
|
132
|
+
bool decodeUnicodeCodePoint( Token &token,
|
133
|
+
Location ¤t,
|
134
|
+
Location end,
|
135
|
+
unsigned int &unicode );
|
136
|
+
bool decodeUnicodeEscapeSequence( Token &token,
|
137
|
+
Location ¤t,
|
138
|
+
Location end,
|
139
|
+
unsigned int &unicode );
|
140
|
+
bool addError( const std::string &message,
|
141
|
+
Token &token,
|
142
|
+
Location extra = 0 );
|
143
|
+
bool recoverFromError( TokenType skipUntilToken );
|
144
|
+
bool addErrorAndRecover( const std::string &message,
|
145
|
+
Token &token,
|
146
|
+
TokenType skipUntilToken );
|
147
|
+
void skipUntilSpace();
|
148
|
+
Value ¤tValue();
|
149
|
+
Char getNextChar();
|
150
|
+
void getLocationLineAndColumn( Location location,
|
151
|
+
int &line,
|
152
|
+
int &column ) const;
|
153
|
+
std::string getLocationLineAndColumn( Location location ) const;
|
154
|
+
void addComment( Location begin,
|
155
|
+
Location end,
|
156
|
+
CommentPlacement placement );
|
157
|
+
void skipCommentTokens( Token &token );
|
158
|
+
|
159
|
+
typedef std::stack<Value *> Nodes;
|
160
|
+
Nodes nodes_;
|
161
|
+
Errors errors_;
|
162
|
+
std::string document_;
|
163
|
+
Location begin_;
|
164
|
+
Location end_;
|
165
|
+
Location current_;
|
166
|
+
Location lastValueEnd_;
|
167
|
+
Value *lastValue_;
|
168
|
+
std::string commentsBefore_;
|
169
|
+
Features features_;
|
170
|
+
bool collectComments_;
|
171
|
+
};
|
172
|
+
|
173
|
+
/** \brief Read from 'sin' into 'root'.
|
174
|
+
|
175
|
+
Always keep comments from the input JSON.
|
176
|
+
|
177
|
+
This can be used to read a file into a particular sub-object.
|
178
|
+
For example:
|
179
|
+
\code
|
180
|
+
Json::Value root;
|
181
|
+
cin >> root["dir"]["file"];
|
182
|
+
cout << root;
|
183
|
+
\endcode
|
184
|
+
Result:
|
185
|
+
\verbatim
|
186
|
+
{
|
187
|
+
"dir": {
|
188
|
+
"file": {
|
189
|
+
// The input stream JSON would be nested here.
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
\endverbatim
|
194
|
+
\throw std::exception on parse error.
|
195
|
+
\see Json::operator<<()
|
196
|
+
*/
|
197
|
+
std::istream& operator>>( std::istream&, Value& );
|
198
|
+
|
199
|
+
} // namespace Json
|
200
|
+
|
201
|
+
#endif // CPPTL_JSON_READER_H_INCLUDED
|
@@ -0,0 +1,93 @@
|
|
1
|
+
// Copyright 2007-2010 Baptiste Lepilleur
|
2
|
+
// Distributed under MIT license, or public domain if desired and
|
3
|
+
// recognized in your jurisdiction.
|
4
|
+
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
|
5
|
+
|
6
|
+
#ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED
|
7
|
+
# define LIB_JSONCPP_JSON_TOOL_H_INCLUDED
|
8
|
+
|
9
|
+
/* This header provides common string manipulation support, such as UTF-8,
|
10
|
+
* portable conversion from/to string...
|
11
|
+
*
|
12
|
+
* It is an internal header that must not be exposed.
|
13
|
+
*/
|
14
|
+
|
15
|
+
namespace Json {
|
16
|
+
|
17
|
+
/// Converts a unicode code-point to UTF-8.
|
18
|
+
static inline std::string
|
19
|
+
codePointToUTF8(unsigned int cp)
|
20
|
+
{
|
21
|
+
std::string result;
|
22
|
+
|
23
|
+
// based on description from http://en.wikipedia.org/wiki/UTF-8
|
24
|
+
|
25
|
+
if (cp <= 0x7f)
|
26
|
+
{
|
27
|
+
result.resize(1);
|
28
|
+
result[0] = static_cast<char>(cp);
|
29
|
+
}
|
30
|
+
else if (cp <= 0x7FF)
|
31
|
+
{
|
32
|
+
result.resize(2);
|
33
|
+
result[1] = static_cast<char>(0x80 | (0x3f & cp));
|
34
|
+
result[0] = static_cast<char>(0xC0 | (0x1f & (cp >> 6)));
|
35
|
+
}
|
36
|
+
else if (cp <= 0xFFFF)
|
37
|
+
{
|
38
|
+
result.resize(3);
|
39
|
+
result[2] = static_cast<char>(0x80 | (0x3f & cp));
|
40
|
+
result[1] = 0x80 | static_cast<char>((0x3f & (cp >> 6)));
|
41
|
+
result[0] = 0xE0 | static_cast<char>((0xf & (cp >> 12)));
|
42
|
+
}
|
43
|
+
else if (cp <= 0x10FFFF)
|
44
|
+
{
|
45
|
+
result.resize(4);
|
46
|
+
result[3] = static_cast<char>(0x80 | (0x3f & cp));
|
47
|
+
result[2] = static_cast<char>(0x80 | (0x3f & (cp >> 6)));
|
48
|
+
result[1] = static_cast<char>(0x80 | (0x3f & (cp >> 12)));
|
49
|
+
result[0] = static_cast<char>(0xF0 | (0x7 & (cp >> 18)));
|
50
|
+
}
|
51
|
+
|
52
|
+
return result;
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
/// Returns true if ch is a control character (in range [0,32[).
|
57
|
+
static inline bool
|
58
|
+
isControlCharacter(char ch)
|
59
|
+
{
|
60
|
+
return ch > 0 && ch <= 0x1F;
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
enum {
|
65
|
+
/// Constant that specify the size of the buffer that must be passed to uintToString.
|
66
|
+
uintToStringBufferSize = 3*sizeof(UInt)+1
|
67
|
+
};
|
68
|
+
|
69
|
+
// Defines a char buffer for use with uintToString().
|
70
|
+
typedef char UIntToStringBuffer[uintToStringBufferSize];
|
71
|
+
|
72
|
+
|
73
|
+
/** Converts an unsigned integer to string.
|
74
|
+
* @param value Unsigned interger to convert to string
|
75
|
+
* @param current Input/Output string buffer.
|
76
|
+
* Must have at least uintToStringBufferSize chars free.
|
77
|
+
*/
|
78
|
+
static inline void
|
79
|
+
uintToString( UInt value,
|
80
|
+
char *¤t )
|
81
|
+
{
|
82
|
+
*--current = 0;
|
83
|
+
do
|
84
|
+
{
|
85
|
+
*--current = char(value % 10) + '0';
|
86
|
+
value /= 10;
|
87
|
+
}
|
88
|
+
while ( value != 0 );
|
89
|
+
}
|
90
|
+
|
91
|
+
} // namespace Json {
|
92
|
+
|
93
|
+
#endif // LIB_JSONCPP_JSON_TOOL_H_INCLUDED
|