Skip to content

Commit 9d5c970

Browse files
committed
window id product subdirectory
1 parent 072a8a4 commit 9d5c970

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

c-core/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.20.2 FATAL_ERROR)
2-
project(deciphon VERSION 0.18.2 LANGUAGES C)
2+
project(deciphon VERSION 0.19.0 LANGUAGES C)
33

44
include(cmake/warnings.cmake)
55
include(cmake/sanitizers.cmake)

c-core/product_thread.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,14 @@ int product_thread_put_hmmer(struct product_thread *x,
6969
int rc = 0;
7070
char const *dir = x->dirname;
7171
long seq = x->line.sequence;
72+
int win = x->line.window;
7273
char *prot = x->line.protein;
7374

74-
if ((rc = format(file, FS_PATH_MAX, "%s/hmmer/%ld", dir, seq))) return rc;
75+
if ((rc = format(file, FS_PATH_MAX, "%s/hmmer/%ld/%d", dir, seq, win)))
76+
return rc;
7577
if ((rc = fs_mkdir(file, true))) return rc;
76-
if ((rc = format(file, FS_PATH_MAX, "%s/hmmer/%ld/%s.h3r", dir, seq, prot)))
78+
if ((rc = format(file, FS_PATH_MAX, "%s/hmmer/%ld/%d/%s.h3r", dir, seq, win,
79+
prot)))
7780
return rc;
7881

7982
FILE *fp = fopen(file, "wb");

c-core/test_scan.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ static struct params params_list[] = {
1515
{1, false, false}, {1, false, false}, {1, false, true}, {1, false, true},
1616
{1, true, false}, {1, true, false}, {1, true, true}, {1, true, true}};
1717
static bool dial_list[] = {true, false, true, false, true, false, true, false};
18-
static long chksum_list[] = {34728, 34728, 55553, 55553,
19-
46028, 46028, 46028, 46028};
18+
static long chksum_list[] = {61836, 34728, 61836, 55553,
19+
61836, 46028, 61836, 46028};
2020

2121
static void test_invalid_sequence();
2222
static void test_normal_scan(void);

0 commit comments

Comments
 (0)