Skip to content

Commit

Permalink
Merge Martin's version 25/05/23 (#6)
Browse files Browse the repository at this point in the history
Merge changes to core miraculix by Martin
  • Loading branch information
alexfreudenberg authored May 26, 2023
1 parent 24afe74 commit 0c86c56
Show file tree
Hide file tree
Showing 38 changed files with 2,802 additions and 834 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*.freq
*.bed
*.mem
*.*~


*.optrpt
*.tgz
171 changes: 0 additions & 171 deletions src/miraculix/1bit128.cc~

This file was deleted.

2 changes: 1 addition & 1 deletion src/miraculix/2bitUint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ if (gV) vD = variant < 256 ? genoVector2_double : genoVector2v256_double;
sparseTGeno_header(2Bit) {
BUG;
// unsinns aufruf!!:
sparseTGenoOrigPlink(code, nrow_code, ncol_code,
sparseTGenoPlink(code, nrow_code, ncol_code,
ldaInByte, coding,
valueB, nIdx, rowIdxB, colIdxB, tSparse,
global, utils,
Expand Down
2 changes: 1 addition & 1 deletion src/miraculix/3bitUint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ void initiate_tableI(table_type **table, int tableSize,

int d;
int *nx = (int *) CALLOC(codesPerPartUnit, sizeof(int));

*table = (table_type*) CALLOC(tableSize, sizeof(table_type));

table_type* pt = *table;

while (true) {
Expand Down
8 changes: 4 additions & 4 deletions src/miraculix/5codes512.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
#include "5codes.h"


#if defined AVX2
#if defined AVX512


ASSERT_SIMD(5codes512, avx2);
ASSERT_SIMD(5codes512, avx512f);

#include "MX.h"
#include "haplogeno.h"
Expand All @@ -47,13 +47,13 @@ ASSERT_SIMD(5codes512, avx2);

#else
#include "avx_miss.h"


gV5_header(512, floatD, LongDouble, float, double) Sv
gV5_header(512, double, LongDouble, double, double) Sv


SIMD_MISS(5codes512, avx2);
SIMD_MISS(5codes512, avx512f);

#endif // defined AVX
// trafo2Geno1Geno128
Expand Down
6 changes: 3 additions & 3 deletions src/miraculix/5codesAPI.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void plink2compressed(char *plink,

// setOptions_compressed(0, 6, 0, 0, 0, 0, 0, 0, 1);

int nbytes = indiv /4; printf("p2c snps=%d indiv=%d max_n=%d bytes/indiv=%d\n", snps, indiv, max_n, nbytes);
int nbytes = indiv /4; //printf("p2c snps=%d indiv=%d max_n=%d bytes/indiv=%d\n", snps, indiv, max_n, nbytes);
// exit(99);
// printf("c byte 1:5 = %d %d %d %d %d\n", *plink, *(plink+1), *(plink+2), *(plink+3), *(plink+4));

Expand Down Expand Up @@ -147,10 +147,10 @@ void sparse_times_plink(char *transsparse,// N: matrix as is (sparse row format)

if (is(transcompressed)) {
int tmp = snps; snps=indiv; indiv=tmp;
plink_transposed = plink;
plink = plink_transposed;
}

sparseTGenoPlinkApi(plink_transposed, snps, indiv,
sparseTGenoPlinkApi(plink, indiv, snps,
B, nIdx, rowIdxB, colIdxB, is(transsparse), C, Ldc);

return;
Expand Down
Loading

0 comments on commit 0c86c56

Please sign in to comment.