Skip to content

Commit 168295e

Browse files
committed
done with this
1 parent f2dea7f commit 168295e

File tree

5 files changed

+22
-3
lines changed

5 files changed

+22
-3
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
"xmemory": "cpp",
5656
"xstring": "cpp",
5757
"xtr1common": "cpp",
58-
"xutility": "cpp"
58+
"xutility": "cpp",
59+
"sstream": "cpp"
5960
},
6061
"C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat",
6162
"C_Cpp_Runner.cCompilerPath": "gcc",

bin/app

0 Bytes
Binary file not shown.

makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,20 @@ run-sample: $(TARGET)
3030
else \
3131
echo "Error: Executable $(TARGET) not found. Please build it first."; \
3232
exit 1; \
33+
fi
34+
35+
run-brca2: $(TARGET)
36+
@if [ -f $(TARGET) ]; then \
37+
./$(TARGET) input/Human-Mouse-BRCA2-cds.fasta; \
38+
else \
39+
echo "Error: Executable $(TARGET) not found. Please build it first."; \
40+
exit 1; \
41+
fi
42+
43+
run-blind: $(TARGET)
44+
@if [ -f $(TARGET) ]; then \
45+
./$(TARGET) input/Opsin1_colorblindness_gene.fasta; \
46+
else \
47+
echo "Error: Executable $(TARGET) not found. Please build it first."; \
48+
exit 1; \
3349
fi

obj/wrapper/program_wrapper.o

344 Bytes
Binary file not shown.

src/wrapper/program_wrapper.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ void program_wrapper::run_program(const int arg_count, const char* const* arg_ve
2323
if (!io_utils::load_two_genes(arg_vector[1], gene_one, gene_two, gene_one_name, gene_two_name)) {
2424
throw std::runtime_error("error, not able to load genes from file");
2525
}
26-
int64_t result = alignment::execute_modified_global_alignment(gene_one, gene_two);
27-
std::cout << result << std::endl;
26+
int64_t result1 = alignment::execute_global_alignment(gene_one, gene_two);
27+
int32_t result2 = alignment::execute_modified_global_alignment(gene_one, gene_two);
28+
std::cout << result1 << std::endl;
29+
std::cout << result2 << std::endl;
2830
}

0 commit comments

Comments
 (0)