Skip to content

Commit

Permalink
PD-5191 StxTyper ver. 1.0.30, stxtyper --threads
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav Brover committed Dec 15, 2024
1 parent 4184b32 commit 52c38f1
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
6 changes: 5 additions & 1 deletion amrfinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
* Dependencies: NCBI BLAST, HMMer, libcurl, gunzip (optional)
*
* Release changes:
* stxtyper --threads
* 4.0.7 12/12/2024 PD-5192 StxTyper ver. 1.0.30
* 4.0.6 12/09/2024 PD-5181 StxTyper ver. 1.0.28
* 4.0.5 11/13/2024 PD-5175 prohibit --database_version and -p or -n
* 4.0.4 10/29/2024 colorizeDir()
Expand Down Expand Up @@ -339,7 +341,7 @@ using namespace GFF_sp;
const string dataVer_min ("2024-08-14.2");
// 3.12: "2023-12-15.2"
// 3.11: "2021-02-18.1"
const string stxTyperVersion ("1.0.28");
const string stxTyperVersion ("1.0.30");



Expand Down Expand Up @@ -1182,6 +1184,7 @@ struct ThisApplication final : ShellApplication
{
stderr. section ("Running stxtyper");
const Chronometer_OnePass_cerr cop ("stxtyper");
ASSERT (threads_max >= 1);
exec ( fullProg ("stxtyper")
+ " -n " + dna_flat
+ prependS (blast_bin, " --blast_bin ")
Expand All @@ -1191,6 +1194,7 @@ struct ThisApplication final : ShellApplication
+ ifS (print_node, " --print_node")
+ " -q " // ifS (getVerbosity () == -1, " -q")
+ ifS (qc_on, " --debug")
+ " --threads " + to_string (threads_max )
+ " > " + logFName
, logFName
);
Expand Down
4 changes: 3 additions & 1 deletion common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ string getStack ()
char** strings = backtrace_symbols (buffer, nptrs);
if (strings /*&& ! which ("addr2line"). empty ()*/)
{
FOR_REV_END (int, i, 1, nptrs)
FOR_START /*FOR_REV_END*/ (int, i, 1, nptrs) // From top to bottom of the stack
s += string (strings [i]) + "\n";
s += "Use: addr2line -f -C -e " + programArgs [0] + " -a <address>";
//free (strings);
Expand Down Expand Up @@ -1918,6 +1918,7 @@ void Root::saveFile (const string &fName) const



#if 0
void Root::trace (ostream& os,
const string& title) const
{
Expand All @@ -1927,6 +1928,7 @@ void Root::trace (ostream& os,
os << title << ": ";
saveText (os);
}
#endif



Expand Down
17 changes: 14 additions & 3 deletions common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ constexpr size_t no_index = numeric_limits<size_t>::max ();
static_assert ((size_t) 0 - 1 == no_index);

constexpr double NaN = numeric_limits<double>::quiet_NaN ();



// Global variables
Expand Down Expand Up @@ -165,6 +165,11 @@ void beep ();



template <typename T>
inline bool isNan (T x)
{ return x != x; }


// Comparison templates

template <typename T>
Expand Down Expand Up @@ -465,10 +470,14 @@ template <typename T /*container*/>
typedef map<string/*key*/,string/*value*/> KeyValue;

inline string find (const KeyValue& kv,
const string& key)
const string& key,
bool force)
{ const auto& it = kv. find (key);
if (it == kv. end ())
{ if (force)
return key;
throw runtime_error ("Key \"" + key + "\" is not found");
}
return it->second;
}

Expand Down Expand Up @@ -2087,15 +2096,17 @@ struct Root
saveText (oss);
return oss. str ();
}
#if 0
void trace (ostream& os,
const string& title) const;
#endif
virtual void saveXml (Xml::File& /*f*/) const
{ throwf ("Root::saveXml() is not implemented"); }
virtual Json* toJson (JsonContainer* /*parent_arg*/,
const string& /*name_arg*/) const
{ throwf ("Root::toJson() is not implemented"); }
virtual bool empty () const
{ return true; }
{ throwf ("Root::empty() is not implemented"); }
virtual void clear ()
{ throwf ("Root::clear() is not implemented"); }
// Postcondition: empty()
Expand Down
2 changes: 1 addition & 1 deletion stx
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.6
4.0.7

0 comments on commit 52c38f1

Please sign in to comment.