Skip to content

Commit

Permalink
NRPsMatcher: remove technical output
Browse files Browse the repository at this point in the history
  • Loading branch information
azmtag committed Sep 12, 2021
1 parent f0e4742 commit 76134e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/Aminoacid/MonomerInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace aminoacid {
std::unordered_map<int, double> MonomerInfo::LogP;

void MonomerInfo::init(const std::string& filename, const std::string& logp_filename, double default_logp) {
std::cout << "INIT\n";
// std::cout << "INIT\n";
DEFAULT_LOG_P = default_logp;
std::fstream in(filename);
std::string buffer;
Expand All @@ -42,7 +42,7 @@ namespace aminoacid {
MONOMER_TO_MODIFICATIONS["@L-" + code] = modificationIds;
}

std::cout << logp_filename << "\n";
// std::cout << logp_filename << "\n";
std::fstream in_logp(logp_filename);
getline(in_logp, buffer); // skip header

Expand All @@ -51,7 +51,7 @@ namespace aminoacid {
std::string nameId;
double log_p = 0;
ss >> nameId >> log_p;
std::cout << nameId << " " << log_p << " " << aminoacid::AminoacidInfo::getIdByNameId(nameId) << "\n";
// std::cout << nameId << " " << log_p << " " << aminoacid::AminoacidInfo::getIdByNameId(nameId) << "\n";
if (nameId == "none") { // TODO: make it nicer
DEFAULT_LOG_P = log_p;
} else {
Expand Down
16 changes: 8 additions & 8 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ int main(int argc, char* argv[]) {
aminoacid::ModificationInfo::init(config::get().modification_cfg);
aminoacid::MonomerInfo::init(config::get().monomer_cfg, config::get().monomer_logP_cfg, config::get().monomer_info_default_logp);

std::cout << config::get().modification_cfg << "\n";
for (int i = 0; i != aminoacid::ModificationInfo::MODIFICATION_CNT; ++i) {
std::cout << aminoacid::ModificationInfo::NAMES[i] << " ";
for (double x : aminoacid::ModificationInfo::COEFFICIENT[i]) {
std::cout << x << " ";
}
std::cout << std::endl;
}
// std::cout << config::get().modification_cfg << "\n";
// for (int i = 0; i != aminoacid::ModificationInfo::MODIFICATION_CNT; ++i) {
// std::cout << aminoacid::ModificationInfo::NAMES[i] << " ";
// for (double x : aminoacid::ModificationInfo::COEFFICIENT[i]) {
// std::cout << x << " ";
// }
// std::cout << std::endl;
// }

INFO("NRPs Matcher START");
INFO("Loading predictions");
Expand Down

0 comments on commit 76134e0

Please sign in to comment.