Skip to content

Commit

Permalink
Issue 180
Browse files Browse the repository at this point in the history
  • Loading branch information
marekkokot authored Jan 14, 2022
1 parent 2fabec7 commit a68b0c9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ jobs:
name: Linux test (remote)
runs-on: ubuntu-latest
env:
EXE: ./bin/kmc
KMC_SINGLE_READ: ./tests/kmc_CLI/data/single_read.fq

EXE: ./bin/kmc
EXE_DUMP: ./bin/kmc_dump
KMC_SINGLE_READ: ./tests/kmc_CLI/data/single_read.fq
DATA_DIR: ./tests/kmc_CLI/data/
steps:
- uses: actions/checkout@v2
- name: make
run: make -j12 kmc

run: |
g++ -v
make -j12 kmc kmc_tools kmc_dump
- name: KMC single read, k=28, ci=1
run: |
Expand All @@ -38,6 +40,11 @@ jobs:
run: |
$EXE -k10 -v $KMC_SINGLE_READ 10mers .
$EXE -k9 -v -fkmc 10mers 9mers .
- name: issue 180
run: |
$EXE -v -k5 -fa -ci1 -t1 $DATA_DIR/issue-180/input.fa bug-report.kmc .
$EXE_DUMP bug-report.kmc issue-180.kmers
cmp issue-180.kmers $DATA_DIR/issue-180/pattern.dump
macos-remote:
name: macOS build (remote)
Expand Down
2 changes: 1 addition & 1 deletion kmc_api/kmc_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class CKMCFile
uint64_t leftToRead{};
uint64 prefixMask; //for kmc2 db
FILE* file;
uint64_t totalKmers; //for
bool isKMC1 = false;
uint64_t totalKmers; //for

void reload()
{
Expand Down
2 changes: 2 additions & 0 deletions tests/kmc_CLI/data/issue-180/input.fa
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
>palindrome
AACTGACATGTCAGTT
6 changes: 6 additions & 0 deletions tests/kmc_CLI/data/issue-180/pattern.dump
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
AACTG 2
ACATG 2
ACTGA 2
ATGTC 2
CTGAC 2
TGACA 2

0 comments on commit a68b0c9

Please sign in to comment.