#include "findpath.h" #include #include #include #include "fold.h" #include "fold_vars.h" #include "utils.h" #include typedef struct move { int i; /* i,j>0 insert; i,j<0 delete */ int j; int when; /* 0 if still available, else resulting distance from start */ int E; } move_t; int get_BP_dist(char *struc1, char *struc2); int main(int argc, char *argv[]){ char seq[1000], struc1[1000],struc2[1000]; int maxkeep, dist, i; path_t *route; double myTime; if (argc!=5){ printf("Usage: %s seq struc1 struc2 maxkeep\n", argv[0]); printf("\n\tProgram will then find potential low\n"); printf("\tenergy path, changing one bp at a time,\n"); printf("\tfrom struc1 to struc2, using findPath\n"); printf("\talgorithm.\n"); exit(1); } myTime=clock(); maxkeep=10; strcpy(seq, argv[1]); strcpy(struc1, argv[2]); strcpy(struc2, argv[3]); maxkeep=atoi(argv[4]); route=get_path(seq, struc1, struc2, maxkeep); dist=get_BP_dist(struc1, struc2); for (i=0;i