Skip to content

Commit 73abe90

Browse files
committed
Updated startup message.
1 parent 68fbf60 commit 73abe90

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git
2+
.vs
3+
out

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WORKDIR /opt/diamond
66
ADD . .
77

88
WORKDIR build
9-
RUN cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_MARCH=x86-64 ..
9+
RUN cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..
1010
RUN ninja && ninja install
1111

1212
FROM alpine:latest

src/basic/config.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Config::Config(int argc, const char **argv)
7777
.add_command("split", "")
7878
.add_command("upgma", "")
7979
.add_command("upgmamc", "")
80-
.add_command("test", "Run regression test.")
80+
.add_command("test", "")
8181
.add_command("reverse", "")
8282
.add_command("compute-medoids", "")
8383
.add_command("mutate", "");
@@ -396,9 +396,8 @@ Config::Config(int argc, const char **argv)
396396
}
397397

398398
ostream &header_out = command == Config::help ? cout : cerr;
399-
header_out << Const::program_name << " v" << Const::version_string << "." << (unsigned)Const::build_version << " | by Benjamin Buchfink <[email protected]>" << endl;
400-
header_out << "Licensed under the GNU GPL <https://www.gnu.org/licenses/gpl.txt>" << endl;
401-
header_out << "Check http://github.com/bbuchfink/diamond for updates." << endl << endl;
399+
header_out << Const::program_name << " v" << Const::version_string << "." << (unsigned)Const::build_version << " (C) Max Planck Society for the Advancement of Science" << endl;
400+
header_out << "Documentation, support and updates available at http://www.diamondsearch.org" << endl << endl;
402401
log_stream << Const::program_name << " v" << Const::version_string << "." << (unsigned)Const::build_version << endl;
403402
#ifndef NDEBUG
404403
verbose_stream << "Assertions enabled." << endl;

src/test/simulate.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ void mutate() {
7777
input_value_traits = value_traits = nucleotide_traits;
7878
OutputFile out(config.output_file);
7979
std::minstd_rand0 random_engine;
80+
std::uniform_real_distribution<double> id_dist(0.3, 1.0);
8081
while (FASTA_format().get_seq(id, seq, in)) {
81-
Util::Sequence::format(sequence(seq), std::string(id.data(), id.size()).c_str(), nullptr, out, "fasta", nucleotide_traits);
82+
const double i = id_dist(random_engine);
83+
Util::Sequence::format(sequence(simulate_homolog(sequence(seq), i, random_engine)), std::to_string(int(i*100)).c_str(), nullptr, out, "fasta", nucleotide_traits);
8284
}
8385
out.close();
8486
in.close();

src/util/command_line_parser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,5 @@ void Command_line_parser::print_help()
119119
}
120120
cout << endl;
121121
}
122+
cout << "Online documentation at http://www.diamondsearch.org" << endl;
122123
}

0 commit comments

Comments
 (0)