Skip to content

Commit

Permalink
gemmi-residues -e: print SIFTS mapping
Browse files Browse the repository at this point in the history
and tweak whitespace
  • Loading branch information
wojdyr committed May 10, 2024
1 parent 812e36a commit 14a92d7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions prog/residues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ void print_short_info(const gemmi::Model& model, OptParser& p) {
if (p.options[Label])
col = printf("%s (%s) %-11s", chain.name.c_str(), res.subchain.c_str(), etype);
else
col = printf("%-3s %-11s ", chain.name.c_str(), etype);
col = printf("%-4s %-11s ", chain.name.c_str(), etype);
counter = 0;
prev = res.entity_type;
}
if (short_level == 1) {
if (counter == kWrap) {
printf("\n ");
printf("\n ");
counter = 0;
}
printf(" %5s%c %-3s",
Expand Down Expand Up @@ -276,7 +276,7 @@ void print_entity_info(const gemmi::Structure& st) {
sub.c_str(), strand->second.c_str(), length);
if (!polymer.empty()) {
printf(": %s-%s", polymer.front().label_seq.str().c_str(),
polymer.back().label_seq.str().c_str());
polymer.back().label_seq.str().c_str());
if (!gaps.empty()) {
printf(" except");
for (std::pair<int, int> gap : gaps) {
Expand All @@ -287,6 +287,8 @@ void print_entity_info(const gemmi::Structure& st) {
}
}
putchar('\n');
if (!ent.sifts_unp_acc.empty())
printf(" SIFTS mapping: %s\n", gemmi::join_str(ent.sifts_unp_acc, ' ').c_str());
}
}
printf("Others\n");
Expand Down

0 comments on commit 14a92d7

Please sign in to comment.