sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
ee3d09d827928d7d30fc4e3a70334a83e4220da8135ff6adc33c1fb6603eb26f
C/C++
181
7
#ifndef CODE_mapThreadsSpawn #define CODE_mapThreadsSpawn #include "Parameters.h" #include "ReadAlignChunk.h" void mapThreadsSpawn (Parameters &P, ReadAlignChunk** RAchunk); #endif
ae582d7638d1798ee746adf421d557e6c4f062ba8e4ae4abc7aae269c6e77ef0
C/C++
185
8
#ifndef CODE_sjdbLoadFromStream #define CODE_sjdbLoadFromStream #include <fstream> #include "SjdbClass.h" void sjdbLoadFromStream(ifstream &sjdbStreamIn, SjdbClass &sjdbLoci); #endif
dba5cb4d79f901dc5c06a599f2b7a9863d9d7b603f81029768714f012c8a45c9
C/C++
196
14
#pragma once namespace plog { class IAppender { public: virtual ~IAppender() { } virtual void write(const Record& record) = 0; }; }
da3dc5a92bf76102cd4f8941109e50a753dd59fc8dd53ee47088d6d5b0420cca
C/C++
198
10
#ifndef CODE_sjdbLoadFromFiles #define CODE_sjdbLoadFromFiles #include <fstream> #include "SjdbClass.h" #include "Parameters.h" void sjdbLoadFromFiles(Parameters &P, SjdbClass &sjdbLoci); #endif
7ca46b463eaf4d32368af3999ede2212729f18a6d3a7c8b85af3892654e47750
C/C++
203
9
#ifndef H_readBarcodeLoad #define H_readBarcodeLoad #include "IncludeDefine.h" #include "Parameters.h" void loadBarcodeRead(Parameters &P, istream **readInStream, string &seq1, string &qual1); #endif
79746c42ee4d62792542e377b6f966621de949c83d276d798fb208a89e7f43e3
C/C++
208
10
#ifndef H_samHeaders #define H_samHeaders #include "Parameters.h" #include "Genome.h" #include "Transcriptome.h" void samHeaders(Parameters &P, Genome &genomeMain, Transcriptome &transcriptomeMain); #endif
00b4452e9b7191c305f31aac6c458110e9277077e3804645745fd901ca63ab85
C/C++
216
9
#ifndef CODE_genomeParametersWrite #define CODE_genomeParametersWrite #include "Parameters.h" #include "Genome.h" void genomeParametersWrite(string fileName, Parameters& P, string errorOut, Genome &mapGen); #endif
4466ef570bdb56bdc4e8ee8006b178990882edf8d75fd32553e5784ff1024a68
C/C++
231
11
#pragma once #ifndef SPECTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define SPECTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66 namespace Test { bool RunSpecTests(); } #endif // SPECTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
576c9875252f06533361d031fd6896cd82150ae79916120cc3dfcdc41259f4e3
C/C++
231
10
#ifndef CODE_genomeScanFastaFiles #define CODE_genomeScanFastaFiles #include "Parameters.h" #include "IncludeDefine.h" #include "Genome.h" uint genomeScanFastaFiles (Parameters &P, char* G, bool flagRun, Genome &mapGen); #endif
8121066d77d9ed85c00f1a3b2228140435cc901beacb4960116c48246a4428d2
C/C++
233
17
#ifndef UNIT_TEST_H #define UNIT_TEST_H #include <stdio.h> #include <stdlib.h> #include <string> using namespace std; class UnitTest{ public: UnitTest(); void run(); bool report(bool result, string message); }; #endif
59a3b90a6aa438a291353717112b741d68438bfe6dfbf7ece44585c433418f60
C/C++
235
10
#ifndef CODE_bamRemoveDuplicates #define CODE_bamRemoveDuplicates #include <string> #include "Parameters.h" using namespace std; void bamRemoveDuplicates(const string bamFileName, const string bamFileNameOut, Parameters &P); #endif
3c55722869059ab22e1063374952e8b82d94005dffc2257738a95eec8571ff34
C/C++
239
11
#pragma once #ifndef PARSERTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define PARSERTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66 namespace Test { bool RunParserTests(); } #endif // PARSERTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
bc22c19347bd6104ce3ab6cf93e533e97b0f8339abaad347d21a37ee8146b9c2
C/C++
240
8
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once // TODO: reference additional headers your program requires here
c28341baa151881592a16efd939130d2d945550c9cb2517af95c66baecb877ac
C/C++
240
9
#ifndef H_sjAlignSplit #define H_sjAlignSplit #include "IncludeDefine.h" #include "Genome.h" bool sjAlignSplit(uint a1,uint aLength, const Genome &mapGen, uint &a1D, uint &aLengthD, uint &a1A, uint &aLengthA, uint &isj); #endif
d82dbc48e13349a8fa0ebd7f6b950121da8a51979866b94e665e6b189ea9c6e2
C/C++
241
10
#ifndef CODE_sjdbPrepare #define CODE_sjdbPrepare #include "SjdbClass.h" #include "Parameters.h" #include "Genome.h" void sjdbPrepare (SjdbClass &sjdbLoci, Parameters &P, uint nGenomeReal, string outDir, Genome &mapGen, char *Gsj); #endif
14cdf4d622091e1215d5a56f2568d7833fb184eaacbe74db64bea5282d250338
C/C++
242
10
#ifndef CODE_sjdbInsertJunctions #define CODE_sjdbInsertJunctions #include "Parameters.h" #include "Genome.h" #include "SjdbClass.h" void sjdbInsertJunctions(Parameters & P, Genome & mapGen, Genome & mapGen1, SjdbClass & sjdbLoci); #endif
612a97cf48b553bd120f30929f8cb43f972b1dbe986911cbe3d60f48cbb9826d
C/C++
242
14
#ifndef LDA_DATA_H #define LDA_DATA_H #include <stdio.h> #include <stdlib.h> #include "lda.h" #define OFFSET 0; // offset for reading data corpus* read_data(char* data_filename); int max_corpus_length(corpus* c); #endif
640a7ec5d91c6c519071bae93b2d1a39a0c00546e38105f6337ae0e4e4b5fb71
C/C++
243
11
#pragma once #ifndef EMITTERTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define EMITTERTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66 namespace Test { bool RunEmitterTests(); } #endif // EMITTERTESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
fb971da7701cf692cb4ff72e0fc2db3d55cd9f38df218e1897e3946d4de608c9
C/C++
249
5
#include "ReadAlign.h" //#include "Transcript.h" //#include "Parameters.h" void funPrimaryAlignMark(Transcript **trMult, uint64 nTr, Parameters &P, int maxScore, std::uniform_real_distribution<double> rngUniformReal0to1, std::mt19937 rngMultOrder);
dd2e1f549c4cb00a4c482ecc812046b8839f97a14b44ceba19c5826b778c3368
C/C++
254
6
#include "IncludeDefine.h" #include "Parameters.h" #include "Transcript.h" bool extendAlign( char* R, char* G, uint rStart, uint gStart, int dR, int dG, uint L, uint Lprev, uint nMMprev, uint nMMmax, double pMMmax, bool extendToEnd, Transcript* trA );
cebc4ef31bd324ad24609958f8be3c77c9984ef3fabb65c3bf5cdd7b2bfa1721
C/C++
256
11
#ifndef H_bamSortByCoordinate #define H_bamSortByCoordinate #include "Parameters.h" #include "ReadAlignChunk.h" #include "Genome.h" #include "Solo.h" void bamSortByCoordinate(Parameters &P, ReadAlignChunk **RAchunk, Genome &genome, Solo &solo) ; #endif
cf7548918f72949df43f894df79dbcb97c4169907cb5b4248637cfc84d48a420
C/C++
263
11
#ifndef CODE_funCompareUintAndSuffixes #define CODE_funCompareUintAndSuffixes #include <stdint.h> extern char* g_funCompareUintAndSuffixes_G; extern uint64_t g_funCompareUintAndSuffixes_L; int funCompareUintAndSuffixes ( const void *a, const void *b); #endif
7b7f188a241c8beeeb804e4ea44c722f966a9117cc24538ae5bf9c2a19ce98a6
C/C++
264
17
#ifndef DEF_SjdbClass #define DEF_SjdbClass #include "IncludeDefine.h" #include <set> class SjdbClass { public: vector <string> chr; vector <uint64> start,end; vector <char> str; vector <uint8> priority; vector<set<uint64>> gene; }; #endif
064e51f29f457eec18943f1420a51e5e2044e8f9cd683c90e0d22baa9e96218b
C/C++
266
14
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once namespace fasttext { typedef float real; }
07901af998d59bca5682f65c8c6a34ab852db4ad93d7b461276702bdfac227af
C/C++
267
11
#ifndef H_twoPassRunPass1 #define H_twoPassRunPass1 #include "Parameters.h" #include "Genome.h" #include "Transcriptome.h" #include "SjdbClass.h" void twoPassRunPass1(Parameters &P, Genome &genomeMain, Transcriptome *transcriptomeMain, SjdbClass &sjdbLoci); #endif
4b575705f932b165c9282867d283df29afc6f9e5d17b79f1250964e9d16f8bff
C/C++
270
10
/* Copyright Rene Rivera 2013 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_PREDEF_DETAIL_OS_DETECTED #define BOOST_PREDEF_DETAIL_OS_DETECTED 1 #endif
64b0bd865ce40ecdbbc079fbe70f3f507cdc885d3529e467d10878654bd01a38
C/C++
274
10
/* Copyright Rene Rivera 2014 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_PREDEF_DETAIL_COMP_DETECTED #define BOOST_PREDEF_DETAIL_COMP_DETECTED 1 #endif
c173711895acaa0f30bc6952c4b2643b65f34d5f578c9b394b5195ff59d4779c
C/C++
274
10
/* Copyright Rene Rivera 2014 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_PREDEF_DETAIL_PLAT_DETECTED #define BOOST_PREDEF_DETAIL_PLAT_DETECTED 1 #endif
066d409e8341c37ce68756269ff911b4aa6c9bd15784b62c91ed0321565d0ce8
C/C++
278
10
#ifndef CODE_sjdbBuildIndex #define CODE_sjdbBuildIndex #include "Parameters.h" #include "PackedArray.h" #include "Genome.h" void sjdbBuildIndex (Parameters &P, char *Gsj, char *G, PackedArray &SA, PackedArray &SA2, PackedArray &SAi, Genome &mapGen, Genome &mapGen1); #endif
ec98bab5f5c417d17ba707c512e8b26ae9bf5dc983efba4593fc7b85282b94b5
C/C++
278
22
#ifndef PROCESSOR_H #define PROCESSOR_H #include <stdio.h> #include <stdlib.h> #include <string> #include "options.h" using namespace std; class Processor{ public: Processor(Options* opt); ~Processor(); bool process(); private: Options* mOptions; }; #endif
062b890748f731bb8d56cd03c0603d15f9739d97e53d64d79adc80ce3040ce16
C/C++
283
13
#ifndef CODE_signalFromBAM #define CODE_signalFromBAM #include "htslib/htslib/sam.h" #include <fstream> #include <string> #include "Stats.h" #include "Parameters.h" using namespace std; void signalFromBAM(const string bamFileName, const string sigFileName, Parameters P); #endif
1dfffd61f5553d0c0d49589d0a6984b70855c5e23d654fd0ac7b6e33df04b6af
C/C++
291
10
#ifndef CODE_funCompareUintAndSuffixesMemcmp #define CODE_funCompareUintAndSuffixesMemcmp #include <stdint.h> extern char* g_funCompareUintAndSuffixesMemcmp_G; extern uint64_t g_funCompareUintAndSuffixesMemcmp_L; int funCompareUintAndSuffixesMemcmp ( const void *a, const void *b); #endif
e3596580f4b0ec4dac1e41c2265ba507fdf83866fd1f6a4cbc81119c1b3664fa
C/C++
298
11
// GENERATED FILE -- DO NOT EDIT #ifndef DRACO_FEATURES_H_ #define DRACO_FEATURES_H_ #define DRACO_MESH_COMPRESSION_SUPPORTED #define DRACO_STANDARD_EDGEBREAKER_SUPPORTED #define DRACO_PREDICTIVE_EDGEBREAKER_SUPPORTED #define DRACO_BACKWARDS_COMPATIBILITY_SUPPORTED #endif // DRACO_FEATURES_H_
ce5bb57efd142f4f86d6d70b0e52e6e9a2af5ba85e48b10b4e6486ea5b44153f
C/C++
300
16
#pragma once #ifndef LTNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define LTNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66 namespace YAML { class Node; struct ltnode { bool operator()(const Node *pNode1, const Node *pNode2) const; }; } #endif // LTNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
e8be7aa723afb4fc7db0e2eab13b6e50732571457d510092d4b100069cdb5020
C/C++
303
12
#ifndef CODE_BAMbinSortUnmapped #define CODE_BAMbinSortUnmapped #include "IncludeDefine.h" #include "Parameters.h" #include "Genome.h" #include "Solo.h" #include SAMTOOLS_BGZF_H void BAMbinSortUnmapped(uint32 iBin, uint nThreads, string dirBAMsort, Parameters &P, Genome &genome, Solo &solo); #endif
e0b7e3cb5ebcf09cd29d4b879c5e72928bddd0b00a49e38d8bc9bf3a32f9eb63
C/C++
305
15
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #include <stdio.h> #include <tchar.h> // TODO: reference additional headers your program requires here
53b0b59e982b3463e7b74f4f1583b4c30daac250fc1b0fbdf6ebec75ac1a926d
C/C++
306
7
#include "IncludeDefine.h" #include "Parameters.h" #include "Transcript.h" #include "Genome.h" intScore stitchAlignToTranscript(uint rAend, uint gAend, uint rBstart, uint gBstart, uint L, uint iFragB, uint sjAB, Parameters& P, char* R, Genome &mapGen, Transcript *trA, uint outFilterMismatchNmaxTotal);
7f988ed4cd4fe1acdede1f014931a08c508cc82f9407bc2b869ec2195c10c9c9
C/C++
306
8
#pragma once // Including SDKDDKVer.h defines the highest available Windows platform. // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. #include <SDKDDKVer.h>
a82d7b8e9bb0a92f33a61d4533f1466d993f36028e185b169d6a16988bd35e89
C/C++
316
12
// Copyright Antony Polukhin, 2016-2022. // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // No include guards! Intentionally. #ifdef BOOST_STACKTRACE_FUNCTION # undef BOOST_STACKTRACE_FUNCTION #endif
5b5aa11fbe3e0c58356e7097d235af1f82b7d9596473f18d49371861eb418264
C/C++
318
11
#ifndef CODE_insertSeqSA #define CODE_insertSeqSA #include "IncludeDefine.h" #include "PackedArray.h" #include "Parameters.h" #include "Genome.h" uint insertSeqSA(PackedArray & SA, PackedArray & SA1, PackedArray & SAi, char * G, char * G1, uint64 nG, uint64 nG1, uint64 nG2, Parameters & P, Genome &mapGen); #endif
6cfe353310a9f9db1ae4f55018358ceeb0c6b013c5cfe7b68c639d43dd910709
C/C++
319
13
/* Copyright Rene Rivera 2008-2013 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_PREDEF_LIBRARY_C__PREFIX_H #define BOOST_PREDEF_LIBRARY_C__PREFIX_H #include <boost/predef/detail/_cassert.h> #endif
f2e927b958a4230c6fd85535203e2e711ff4d651c8060add98d58f85a8639671
C/C++
319
9
#ifndef CODE_ErrorWarning #define CODE_ErrorWarning #include "IncludeDefine.h" #include "Parameters.h" void exitWithError(string messageOut, ostream &streamOut1, ostream &streamOut2, int errorInt, Parameters &P); void warningMessage(string messageOut, ostream &streamOut1, ostream &streamOut2, Parameters &P); #endif
f69f5806875d5196d7172d1db6b03dba324b3c2c45a0562d46f0610c5da6474c
C/C++
324
16
#ifndef LDA_INFERENCE_H #define LDA_INFERENCE_H #include <math.h> #include <float.h> #include <assert.h> #include "lda.h" #include "utils.h" float VAR_CONVERGED; int VAR_MAX_ITER; double lda_inference(document*, lda_model*, double*, double**); double compute_likelihood(document*, lda_model*, double**, double*); #en...
4a7dee51fc80c71b3ce4ad7e99a3a9eeba5015d4ccacff704d36426c42a494c9
C/C++
325
14
#ifdef EIGEN_WARNINGS_DISABLED #undef EIGEN_WARNINGS_DISABLED #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS #ifdef _MSC_VER #pragma warning( pop ) #elif defined __INTEL_COMPILER #pragma warning pop #elif defined __clang__ #pragma clang diagnostic pop #endif #endif #endif // EIGEN_WARNINGS_DISA...
79d32550ca3d06ed42106cfcb936905cf70ac9ad784309a4e8ba47767459085e
C/C++
325
15
#pragma once #ifndef YAML_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define YAML_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #include "parser.h" #include "node.h" #include "stlnode.h" #include "iterator.h" #include "emitter.h" #include "stlemitter.h" #include "exceptions.h" #endif // YAML_H_62B23520_7C8E_11DE_8A39_0800200C...
061a222cb7dc702ddac9b7b7f36a0477ea82847c784b6c6c082fb4a336617532
C/C++
330
15
/* Copyright Rene Rivera 2011-2012 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_PREDEF_DETAIL__EXCEPTION_H #define BOOST_PREDEF_DETAIL__EXCEPTION_H #if defined(__cplusplus) #include <exception> #endi...
f42323a77e39386c9e93da9818c274e2a8947c318aba19f39f677169a4fedc68
C/C++
336
12
#ifndef CODE_BAMbinSortByCoordinate #define CODE_BAMbinSortByCoordinate #include "IncludeDefine.h" #include "Parameters.h" #include "Genome.h" #include "Solo.h" #include SAMTOOLS_BGZF_H void BAMbinSortByCoordinate(uint32 iBin, uint binN, uint binS, uint nThreads, string dirBAMsort, Parameters &P, Genome &mapGen, Solo...
ceca587f7402edc7b3ec53dfd7c875d91183e461f211fd6512f9f9f7ec74f08e
C/C++
345
18
#pragma once #include <asio/ip/address.hpp> #include <cstdint> #include <string> #include <vector> namespace lsl { class netif { public: asio::ip::address addr; uint32_t ifindex; std::string name; }; /// Enumerate all local interface addresses (IPv6 index, IPv4 address)-pairs std::vector<netif> get_local_interfac...
8fdfdc20c7e8cac51f80cb7b35965bcbd5c95408e899d79a30ee191705938407
C/C++
346
15
#ifndef __VCF_SWEEP_H__ #define __VCF_SWEEP_H__ #include "hts.h" #include "vcf.h" typedef struct _bcf_sweep_t bcf_sweep_t; bcf_sweep_t *bcf_sweep_init(const char *fname); void bcf_sweep_destroy(bcf_sweep_t *sw); bcf_hdr_t *bcf_sweep_hdr(bcf_sweep_t *sw); bcf1_t *bcf_sweep_fwd(bcf_sweep_t *sw); bcf1_t *bcf_sweep_bwd(...
688d791806004c3f334cb94fcdb604811da4647b18eb50159cd0394274b567c2
C/C++
350
17
/* Copyright Rene Rivera 2011-2012 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_PREDEF_DETAIL__CASSERT_H #define BOOST_PREDEF_DETAIL__CASSERT_H #if defined(__cplusplus) #include <cassert> #else #incl...
5a21c6ac7149a0427be40e2d387bba3f47b00966ec3e584e77fa100b66f8280d
C/C++
351
12
#ifndef _MEDAKA_FASTRLE_H #define _MEDAKA_FASTRLE_H /** Read a fasta/q and writes quality-RLE fastq file. * * @param fname name of file to be rle-compressed. * @param block_size maximum RLE compressed size, homopolymers larger than this value will be split in blocks. * @returns * */ size_t fastrle(char *fna...
c9d3d264672027e053a4d085d3858225240455ed56f2d4004562384042a1c7a1
C/C++
351
18
#ifndef UTILS_H #define UTILS_H #include <stdio.h> #include <math.h> #include <float.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> double log_sum(double log_a, double log_b); double trigamma(double x); double digamma(double x); double log_gamma(double x); void make_directory(char* name); int arg...
f2fbf18d14dd458c5fb0348639781ed97d53a50c870aecc947485349ddcb6f52
C/C++
356
15
/* Copyright Rene Rivera 2015-2016 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_PREDEF_VERSION_H #define BOOST_PREDEF_VERSION_H #include <boost/predef/version_number.h> #define BOOST_PREDEF_VERSION ...
7182b14352020f6350f51342b6100d500b98d6d6e092c182ecf8b964c9c9ac86
C/C++
357
15
/* Copyright Rene Rivera 2015-2016 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_PREDEF_VERSION_H #define BOOST_PREDEF_VERSION_H #include <boost/predef/version_number.h> #define BOOST_PREDEF_VERSION ...
2011d6d507c98e3d0a89320e88597cb0304887fc23210d7b1b46c787160e952f
C/C++
361
18
#pragma once #include <cstdint> #include <string> #include <vector> #include <boost/asio/ip/address.hpp> namespace lsl { class netif { public: lslboost::asio::ip::address addr; uint32_t ifindex; std::string name; }; /// Enumerate all local interface addresses (IPv6 index, IPv4 address)-pairs std::vector<netif> ge...
4a4b5be3b09fc4e81da4734ca6a604ba3528d479874bc5f0f2d4c235fa003a97
C/C++
364
17
/* Copyright Rene Rivera 2011-2012 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_PREDEF_DETAIL_TEST_H #define BOOST_PREDEF_DETAIL_TEST_H #if !defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS) #define BOO...
c1303b7390d04499e5a5569d96cc67ceafb5169f415ac202d2d9686ad5c75c5e
C/C++
389
16
/** * Copyright 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <torch/extension.h> // @manual=//caffe2:torch_extension void alignmentTrainCUDAWrapper( cons...
04ab96f887b47f722f67cd996256c01e9adc64c1e0e712136b5b3a3510ac0bee
C/C++
391
12
#ifndef H_readLoad #define H_readLoad #include "IncludeDefine.h" #include "Parameters.h" #include "SequenceFuns.h" int readLoad(istream& readInStream, Parameters& P, uint& Lread, uint& LreadOriginal, \ char* readName, char* Seq, char* SeqNum, char* Qual, vector<ClipMate> &clipOneMate, \ uint &iReadAll, uin...
c5e7bb41bea3899914d1292109065a23a9b0f333f22ebf3bf773be0fb43a3fd5
C/C++
391
14
#pragma once #include <string> namespace lsl { template <typename T> std::string to_string(T val) { return std::to_string(val); } template <typename T> T from_string(const std::string &str); template <> std::string to_string(double str); template <> std::string to_string(float str); template <> inline bool from_str...
b1b9d76bd2f3505882f0223e99d69e879c00be7362cd5a8c8b56d4cad07d1060
C/C++
401
14
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by mexPlex.rc // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 101 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_...
b9e7f0c1e76940539c13bbee3fd4472ccadc9c37ccfd8f973fb7b138862380d8
C/C++
405
22
#ifndef MATCHER_H #define MATCHER_H #include <stdio.h> #include <stdlib.h> #include <string> using namespace std; class Matcher{ public: Matcher(); ~Matcher(); static bool matchWithOneInsertion(const char* insData, const char* normalData, int cmplen, int diffLimit); static int diffWithOneInsertion(c...
37dff56846da27b4d05abe222071d05a073e156b94da656060a8fb12613c0939
C/C++
406
25
#ifndef UMI_PROCESSOR_H #define UMI_PROCESSOR_H #include <stdio.h> #include <stdlib.h> #include <string> #include "options.h" #include "read.h" using namespace std; class UmiProcessor{ public: UmiProcessor(Options* opt); ~UmiProcessor(); void process(Read* r1, Read* r2 = NULL); void addUmiToName(Read...
4d495171dfaac6f9c64f559fee44e39511c96b2e6b00b72265bba1ee3bd131b9
C/C++
411
18
#pragma once #ifndef SCANTAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define SCANTAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #include <string> #include "stream.h" namespace YAML { const std::string ScanVerbatimTag(Stream& INPUT); const std::string ScanTagHandle(Stream& INPUT, bool& canBeHandle); const std::string ...
2be7d681b896bc21c91cccb33819efea05b26552ade89debf201301c2736784f
C/C++
420
16
/* Copyright Charly Chevalier 2015 Copyright Joel Falcou 2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #if !defined(BOOST_PREDEF_HARDWARE_H) || defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS) #ifndef BOOST_PREDEF...
c24d37e3c974d15745070a3ac5854360614087be8ea187711bc58d060abe13e7
C/C++
420
16
/* Copyright Rene Rivera 2013-2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #if !defined(BOOST_PREDEF_OTHER_H) || defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS) #ifndef BOOST_PREDEF_OTHER_H #define BOOST_PREDEF_...
2f9b4f8cddb65235a59dc3803509e38a9c6e1f494baadac7dd5b5f782ea1b716
C/C++
424
16
/* Copyright Rene Rivera 2008-2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #if !defined(BOOST_PREDEF_LIBRARY_H) || defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS) #ifndef BOOST_PREDEF_LIBRARY_H #define BOOST_PRE...
7d8c1c873ce9bc346ad6005bb9d75cce5c6352aaf7395385be216a9452a34908
C/C++
427
11
/* inffast.h -- header to use inffast.c * Copyright (C) 1995-2003, 2010 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ /* WARNING: this file should *not* be used by applications. It is part of the implementation of the compression library and is subject to change. Appli...
f8f9da93f3831aa7222381779f4102b76c9797b94cf1605ecdf4d640d0fede76
C/C++
427
21
#pragma once #ifndef NULL_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define NULL_H_62B23520_7C8E_11DE_8A39_0800200C9A66 namespace YAML { class Node; struct _Null {}; inline bool operator == (const _Null&, const _Null&) { return true; } inline bool operator != (const _Null&, const _Null&) { return false; } bool...
97d53a09e0fde4215b203f9fcdf0d53ee3534cd060cffb53e1ad1da4fde1bd31
C/C++
437
29
#ifndef SEQUENCE_H #define SEQUENCE_H #include <stdio.h> #include <stdlib.h> #include <string> #include <iostream> using namespace std; class Sequence{ public: Sequence(); Sequence(string* seq); ~Sequence(); void print(); int length(); Sequence reverseComplement(); Sequence operator~();...
ac7b18870b2738f50b25185864e7316038dc6ba9d880fca0f4d8f80f81914e7b
C/C++
439
13
#ifndef H_soloInputFeatureUMI #define H_soloInputFeatureUMI #include <fstream> #include <array> #include <vector> #include "IncludeDefine.h" #include "SoloCommon.h" bool soloInputFeatureUMI(fstream *strIn, int32 featureType, bool readInfoYes, array<vector<uint64>,2> &sjAll, uint64 &iread, ...
387931a1f0acc59a0fd2e495c212190b916e9106da4570c837545e426c1f8dbb
C/C++
444
22
#pragma once #ifndef MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66 namespace YAML { struct Mark { Mark(): pos(0), line(0), column(0) {} static const Mark null() { return Mark(-1, -1, -1); } int pos; int line, column; private: Mark(int pos_, int l...
a833232e9d7af18e66bde51524fcf29ec2a9f77fd5e27be4f363a47f7d3845cd
C/C++
444
22
#pragma once #ifndef NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66 namespace YAML { // this is basically boost::noncopyable class noncopyable { protected: noncopyable() {} ~noncopyable() {} private: noncopyable(const noncopyable&); ...
02c7606aa7440e3f264f756ccd8a38aaf8cc41d4071a458156f59bb696273a5e
C/C++
456
20
#ifndef LDA_ALPHA_H #define LDA_ALPHA_H #include <stdlib.h> #include <math.h> #include <float.h> #include "lda.h" #include "utils.h" #define NEWTON_THRESH 1e-5 #define MAX_ALPHA_ITER 1000 double alhood(double a, double ss, int D, int K); double d_alhood(double a, double ss, int D, int K); double d2_alhood(double a,...
c2d72c445f4d691ca4bd62f1a28d36076cfd54497db9caf4983faaba22da5ade
C/C++
479
11
#ifndef CODE_genomeSAindex #define CODE_genomeSAindex #include "PackedArray.h" #include "Parameters.h" #include "Genome.h" void genomeSAindex(char * G, PackedArray & SA, Parameters & P, PackedArray & SAip, Genome &mapGen); void genomeSAindexChunk(char * G, PackedArray & SA, Parameters & P, PackedArray & SAi, uint iSA1...
9526d0b122400bd0358a66d1ecbd7c654b6d6070e8e203173f506a5ad0350d36
C/C++
481
23
#ifndef H_SoloRead #define H_SoloRead #include "SoloReadBarcode.h" #include "SoloReadFeature.h" #include "ReadAnnotations.h" class SoloRead { public: SoloReadBarcode *readBar; SoloReadFeature **readFeat; SoloRead(Parameters &Pin, int32 iChunkIn); void readFlagReset(); void record(uint64 nTr, ...
5658609dbbfd2ccac063837c7c1e8d3b02784d9b3136a58415e463476f8d497f
C/C++
484
17
/* Copyright Rene Ferdinand Rivera Morell 2013-2020 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #if !defined(BOOST_PREDEF_OTHER_H) || defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS) #ifndef BOOST_PREDEF_OTHER_H #def...
d010357e10b6c898d626af8ea95d3517d623390a3b996176405215c41f8ad0d6
C/C++
488
19
#ifndef CODE_ChimericTranscript #define CODE_ChimericTranscript #include "IncludeDefine.h" #include "Parameters.h" #include "Transcript.h" class ChimericTranscript {// public: Transcript **chTrs; //all chimeric transcripts uint nCh; //number of recorded (best) chimeric transcripts ...
029fb0fe83110bdc872309acafcbea87a99043beb9f5e68a7c31627f8d765bcd
C/C++
489
26
#pragma once #ifndef TAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define TAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #include <string> namespace YAML { struct Token; struct ParserState; struct Tag { enum TYPE { VERBATIM, PRIMARY_HANDLE, SECONDARY_HANDLE, NAMED_HANDLE, NON_SPECIFIC }; Tag(const Token& t...
9ba01c10e50507e495c6e33cd8b11173f572bcbab509a511af51d7b6855a45b1
C/C++
513
26
#pragma once #include <iostream> namespace plog { template<class Formatter> class ConsoleAppender : public IAppender { public: ConsoleAppender() { #ifdef _WIN32 ::setlocale(LC_ALL, ""); #endif } virtual void write(const Record& record) ...
92666722eaeba0b7657fffa8f86255d08c9f0582a1204fd794cfca83ffc365ee
C/C++
515
18
/* Copyright Rene Rivera 2011-2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #if !defined(BOOST_PREDEF_LANGUAGE_H) || defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS) #ifndef BOOST_PREDEF_LANGUAGE_H #define BOOST_P...
816b8007e1cabf8a7c09cd8aa266714bb1b80b3f3cb283b3336e00447cf4b490
C/C++
528
24
#pragma once #include <iomanip> #include <plog/Util.h> namespace plog { class FuncMessageFormatter { public: static util::nstring header() { return util::nstring(); } static util::nstring format(const Record& record) { util::n...
ddcf1de6fc401edb1d332dafc92d56e17ce48a5691cac6a84d2b2775d238acca
C/C++
528
19
/** * Copyright 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <torch/extension.h> // @manual=//caffe2:torch_extension #define CHECK_CUDA(x) \ TORCH_CHECK(x....
f97cce62b7fb4a9e09e7521d83cbc1dc3e74e23cab24c6b251e30da5df55c54d
C/C++
533
12
#include "IncludeDefine.h" #include "Parameters.h" #include "Transcript.h" #include "extendAlign.h" #include "stitchAlignToTranscript.h" #include "ReadAlign.h" void stitchWindowAligns(uint iA, uint nA, int Score, bool WAincl[], uint tR2, uint tG2, Transcript trA, \ uint Lread, uiWA* WA, char* R...
a152688ffce13341f3ef96901a21537c065d2d79de0e20b588ae0d670687eede
C/C++
540
23
#ifndef INOUTSTREAMS_DEF #define INOUTSTREAMS_DEF #include "IncludeDefine.h" #include SAMTOOLS_BGZF_H class InOutStreams { public: ostream *logStdOut, *outSAM; ofstream logStdOutFile, outSAMfile; BGZF *outBAMfileUnsorted, *outBAMfileCoord, *outQuantBAMfile; ofstream outChimSAM, outChimJunction, l...
bb086a8ab9621e859469bcf4b04f68ee8ca408e5949cda8f8e2fc7722fc2f6a1
C/C++
546
23
#ifndef CODE_ChimericSegment #define CODE_ChimericSegment #include "IncludeDefine.h" #include "Parameters.h" #include "Transcript.h" #include "ParametersChimeric.h" class ChimericSegment {// public: Parameters &P; ParametersChimeric &pCh; Transcript &align; //alignment uint r...
b8851135a68e54bd9df8319cef352aebb7bf7d9574878c6e5be67ec88f95a396
C/C++
551
24
#ifndef BASE_CORRECTOR_H #define BASE_CORRECTOR_H #include <stdio.h> #include <stdlib.h> #include <string> #include "overlapanalysis.h" #include "filterresult.h" #include "options.h" using namespace std; class BaseCorrector{ public: BaseCorrector(); ~BaseCorrector(); static int correctByOverlapAnalysis(...
3349778aec8946f850e1906e486477bdb0f53f8ec9382024cca9a673b9717592
C/C++
555
30
#pragma once using namespace System; using namespace Thermo::Interfaces::ExactiveAccess_V1; using namespace Thermo::Interfaces::InstrumentAccess_V1::Control::Scans; namespace ManagedCppLoad { public ref class ApiUsageTest : IDisposable { private: IExactiveInstrumentAccess^ m_instrument; private: Object^ Load...
311e77d3f576e63fe335ff1a200bd750e523c0ec86a0a97803a0aec9377b6e7d
C/C++
556
30
#ifndef H_Solo #define H_Solo #include "IncludeDefine.h" #include "ReadAlignChunk.h" #include "Transcriptome.h" #include <fstream> #include "SoloFeature.h" class Solo { private: ReadAlignChunk **RAchunk; Parameters &P; Transcriptome &Trans; public: ParametersSolo &pSolo; SoloFeature **soloFeat; ...
57c134cd34bcc45b6b066fa7acd9cdf94ffe7865841e588494f21dff4f2efae9
C/C++
573
28
#pragma once #include <plog/Util.h> namespace plog { class UTF8Converter { public: static std::string header(const util::nstring& str) { const char kBOM[] = "\xEF\xBB\xBF"; return std::string(kBOM) + convert(str); } #ifdef WIN32 stat...
066d95754c44e26ef924aea109f534fb3e4b59608af836ae4729bf786f3884ee
C/C++
581
28
#ifndef POLY_X_H #define POLY_X_H #include <stdio.h> #include <stdlib.h> #include <string> #include "overlapanalysis.h" #include "filterresult.h" #include "options.h" using namespace std; class PolyX{ public: PolyX(); ~PolyX(); static void trimPolyG(Read* r1, Read* r2, FilterResult* fr, int compareReq);...
205973ca7c5aafa5ebeef7008a5de4833cec2300f74eb475e324965002eee0ca
C/C++
600
24
#pragma once using namespace System; using namespace System::Threading; using namespace Thermo::Interfaces::InstrumentAccess_V1::Control::Scans; namespace ManagedCppLoad { // Event handler for setting a mutex on receiving an event of an IScans->PossibleParametersChanged. // We set the event if and only if at least ...
cd68425c1beadec2fadc37e1b144315b34b08abe236903f00209c042db64ad24
C/C++
601
32
#ifndef FILTER_H #define FILTER_H #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> #include "options.h" #include "read.h" using namespace std; class Filter{ public: Filter(Options* opt); ~Filter(); int passFilter(Read* r); bool passLowComplexityFilter(Read* r); Read* tri...
4bd3710a1477118a3694ce4a204d0e0fb4ed160ba2fbd3be275ef0ede5481e9c
C/C++
605
21
/* Copyright Rene Rivera 2008-2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #if !defined(BOOST_PREDEF_LIBRARY_C_H) || defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS) #ifndef BOOST_PREDEF_LIBRARY_C_H #define BOOST...
4be6910d936cd81a5f41bf126d5080a39a7a8cb15d4645e5c06a3b2f3e234ecb
C/C++
619
21
#pragma once #include <lsl_cpp.h> struct Streampair { lsl::stream_outlet out_; lsl::stream_inlet in_; Streampair(lsl::stream_outlet &&out, lsl::stream_inlet &&in) : out_(std::move(out)), in_(std::move(in)) {} }; static Streampair create_streampair(const lsl::stream_info &info) { lsl::stream_outlet out(info); ...
4de79db0d8cda758a3cbbf7b8f9527297e55deb79d623565a0e5c521c5b21685
C/C++
621
37
#ifndef CODE_ParametersClip #define CODE_ParametersClip #include "IncludeDefine.h" #include "ClipMate.h" #include "ClipCR4.h" #include <array> #include <vector> class Parameters; class ReadClipInput { public: vector <uint32> N; vector <uint32> NafterAd; vector <string> adSeq; vector <double> adMMp; }...
da35efec7008948ea7b22d97ed9a5f3e8d32df1e1aa04af9d7cfda49a8c6c6d7
C/C++
627
25
/** * Copyright 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <torch/extension.h> torch::Tensor LevenshteinDistanceCuda( torch::Tensor source, torch::...
3514ae569e99b8aaadd5d84e944edf5087848b8c2c03ae9f8cfd2c64672e9d98
C/C++
628
40
#ifndef NUCLEICTREE_H #define NUCLEICTREE_H #include <stdio.h> #include <stdlib.h> #include <string> #include <memory.h> #include "options.h" using namespace std; // (A,T,C,G,N) & 0X07 = (1,4,7,6,3) class NucleotideNode{ public: NucleotideNode(); ~NucleotideNode(); void dfs(); public: int count; ...
edd5ae86c93dac1feb35fd0527e4350658be43e55f6ea85e93576c63bbb48aa6
C/C++
635
24
/* Copyright Rene Rivera 2008-2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #if !defined(BOOST_PREDEF_H) || defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS) #ifndef BOOST_PREDEF_H #define BOOST_PREDEF_H #endif #i...
5f7d2bb2ea1eec942115271fa6ea5479740fecd2877672593aa9cbe739dd4efe
C/C++
651
12
#ifndef H_SoloFeatureTypes #define H_SoloFeatureTypes namespace SoloFeatureTypes { // enum {Gene=0, GeneFull=1, SJ=2, Transcript3p=3, VelocytoSpliced=4, VelocytoUnspliced=5, VelocytoAmbiguous=6, N=7}; // const static vector<string> Names={"Gene","GeneFull","SJ","Transcript3p","VelocytoSpliced","VelocytoUnsplic...
53e65c99034616a2eef12688ef1e4f1ee5565376fdbd09128cddc476345d8a3d
C/C++
660
36
#pragma once #ifndef STLNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define STLNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #include <vector> #include <map> namespace YAML { template <typename T> void operator >> (const Node& node, std::vector<T>& v) { v.clear(); v.resize(node.size()); for(unsigned i=0;i<no...