Skip to content

Commit

Permalink
Rename xstr_to_seq to xstr_to_useq
Browse files Browse the repository at this point in the history
  • Loading branch information
marcom committed Jul 10, 2023
1 parent d6cf61d commit 2f0d861
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main-eval-useq.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int main(int argc, char **argv)
print_interactions(inter);
printf("\n");

xstr_to_seq(n, seq, useq);
xstr_to_useq(n, seq, useq);
G = calc_interactions(inter, useq);
printf("G = %5.2f\n", G * 0.01);

Expand Down
4 changes: 2 additions & 2 deletions na.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ xencode_char(char c)
/* translate from a string representation of a sequence to its internal
representation */
void
xstr_to_seq(uint n, const char *str, uint *seq)
xstr_to_useq(uint n, const char *str, uint *useq)
{
uint i;
for (i = 0; i < n; i++)
seq[i] = xencode_char(str[i]);
useq[i] = xencode_char(str[i]);
}

/* translate a continuous sequence representation into a string by
Expand Down
2 changes: 1 addition & 1 deletion na.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int vienna_to_pairs(uint n, const char *vienna, bool verbose, uint *pairs);
void xvienna_to_pairs(uint n, const char *vienna, uint *pairs);
int pairs_to_vienna(uint n, const uint *pairs, bool verbose, char *vienna);
char * xpairs_to_vienna(uint n, const uint *pairs, char *vienna);
void xstr_to_seq(uint n, const char *str, uint *seq);
void xstr_to_useq(uint n, const char *str, uint *useq);
void xstr_to_pseq(uint n, uint ndim, const char *str, double **p);
void pseq_to_str(double **p, uint n, uint ndim, char *str);

Expand Down

0 comments on commit 2f0d861

Please sign in to comment.