File tree 8 files changed +1240
-15
lines changed
8 files changed +1240
-15
lines changed Original file line number Diff line number Diff line change 1
1
thirdParty/cget
2
+ thirdParty/tensorstore-0.1.65
3
+ src/build
Original file line number Diff line number Diff line change @@ -7,5 +7,6 @@ thirdParty/bgen/.hg
7
7
src /* .o
8
8
src /* .so
9
9
src /backup /*
10
+ src /build
10
11
extdata /input /nfam_100_nindep_0_step1_includeMoreRareVariants_poly.raw
11
12
* .swp
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.1...3.29)
2
+
3
+ set (CMAKE_BUILD_TYPE Debug)
4
+ set (CMAKE_CXX_STANDARD 17)
5
+ set (CMAKE_CXX_STANDARD_REQUIRED True )
6
+ set (CMAKE_CXX_EXTENSIONS OFF )
7
+
8
+ add_library (VCZ OBJECT VCZ.cpp)
9
+
10
+ include (FetchContent)
11
+
12
+ FetchContent_Declare(
13
+ tensorstore
14
+ URL "https://github.com/google/tensorstore/archive/refs/tags/v0.1.64.tar.gz"
15
+ URL_HASH SHA256=1dc632c6e9f83c033a2a16fe1a67ca38825902083ea0efe314769eee980c3126
16
+ )
17
+
18
+ # Additional FetchContent_Declare calls as needed...
19
+
20
+ FetchContent_MakeAvailable(tensorstore)
21
+
22
+ # Define a target that depends on TensorStore...
23
+
24
+ target_link_libraries (
25
+ VCZ
26
+ PRIVATE
27
+ tensorstore::tensorstore tensorstore::all_drivers
28
+ )
Original file line number Diff line number Diff line change 20
20
#include " PLINK.hpp"
21
21
#include " BGEN.hpp"
22
22
#include " VCF.hpp"
23
+ #include " VCZ.hpp"
23
24
#include " SAIGE_test.hpp"
24
25
#include " UTIL.hpp"
25
26
#include " CCT.hpp"
34
35
static PLINK::PlinkClass* ptr_gPLINKobj = NULL ;
35
36
static BGEN::BgenClass* ptr_gBGENobj = NULL ;
36
37
static VCF::VcfClass* ptr_gVCFobj = NULL ;
38
+ static VCZ::VczClass* ptr_gVCZobj = NULL ;
37
39
// global objects for different analysis methods
38
40
static SAIGE::SAIGEClass* ptr_gSAIGEobj = NULL ;
39
41
// single, SAIGE
@@ -813,7 +815,7 @@ bool isEnd = ptr_gVCFobj->check_iterator_end();
813
815
814
816
// [[Rcpp::export]]
815
817
void setVCZobjInCPP (std::string t_vczFileName, std::vector<std::string> &t_SampleInModel) {
816
- // TODO
818
+ ptr_gVCZobj = new VCZ::VczClass (t_vczFileName, t_SampleInModel);
817
819
}
818
820
819
821
You can’t perform that action at this time.
0 commit comments