Skip to content

Commit

Permalink
PD-4888 mutate.cpp is added
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav Brover committed Feb 27, 2024
1 parent 9405804 commit d2d9846
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ data/
*.o
amr_report
amrfinder
fasta_check
fasta_extract
dna_mutation
gff_check
amrfinder_index
amrfinder_update
amrfinder_customize
dna_mutation
fasta_check
fasta_extract
fasta2parts
gff_check
mutate
*.got
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ COMPILE.cpp= $(CXX) $(CPPFLAGS) $(SVNREV) $(DBDIR) $(TEST_UPDATE_DB) -c

.PHONY: all clean install release

BINARIES= amr_report amrfinder amrfinder_index amrfinder_update fasta_check fasta_extract fasta2parts gff_check dna_mutation
BINARIES= amr_report amrfinder amrfinder_index amrfinder_update fasta_check fasta_extract fasta2parts gff_check dna_mutation mutate

all: $(BINARIES)

Expand All @@ -95,6 +95,7 @@ common.o: common.hpp common.inc
curl_easy.o: curl_easy.hpp common.hpp common.inc
gff.o: gff.hpp common.hpp common.inc
alignment.o: alignment.hpp alignment.hpp common.inc
seq.o: seq.hpp common.hpp common.inc

amr_report.o: common.hpp common.inc gff.hpp alignment.hpp
amr_reportOBJS=amr_report.o common.o gff.o alignment.o
Expand Down Expand Up @@ -145,6 +146,11 @@ dna_mutationOBJS=dna_mutation.o common.o alignment.o
dna_mutation: $(dna_mutationOBJS)
$(CXX) -o $@ $(dna_mutationOBJS)

mutate.o: common.hpp common.inc alignment.hpp seq.hpp
mutateOBJS=mutate.o common.o alignment.o seq.o
mutate: $(mutateOBJS)
$(CXX) -o $@ $(mutateOBJS)



clean:
Expand Down
1 change: 1 addition & 0 deletions amrfinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* Dependencies: NCBI BLAST, HMMer, gunzip (optional)
*
* Release changes:
* 3.12.13 02/27/2024 PD-4888 mutation.cpp is added to the distribution (used only in testing)
* 3.12.12 02/21/2024 PD-4906 --print_node for fusion proteins
* move DOCUMENTATION section to the end of the usage message
* 3.12.11 02/13/2024 PD-4893 move DOCUMENTATION and UPDATES sections to the end of the --help message
Expand Down
7 changes: 4 additions & 3 deletions common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,16 @@ namespace
cxml->print (string (error_caption) + ": " + msg);

if (segmFault)
abort ();
abort ();
exit (1);
}



[[noreturn]] void errorExitStr (const string &msg)
void errorExitStr (const string &msg)
{
errorExit (msg. c_str ());
if (! uncaught_exceptions ())
errorExit (msg. c_str ());
}


Expand Down
6 changes: 3 additions & 3 deletions common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ constexpr const char* error_caption ("*** ERROR ***");
// Update: *logPtr
// Invokes: if segmFault then abort() else exit(1)

[[noreturn]] void errorExitStr (const string &msg);
// For debugger
void errorExitStr (const string &msg);
// For debugger: should not be inline

[[noreturn]] void throwf (const string &s);
// For debugger: should not be in-line
// For debugger: should not be inline

void beep ();
// Requires: !isRedirected()
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12.12
3.12.13

0 comments on commit d2d9846

Please sign in to comment.