#include "config.h" #include #include #include #include #include #include #include #include "parasail.h" #include "parasail/matrices/blosum62.h" #define UNUSED(expr) do { (void)(expr); } while (0) int main(int argc, char **argv) { const char *seqA = "MEFYDVAVTVGMLCIIIYLLLVRQFRYWTERNVPQLNPHLLFGDVRDVNKTHHIGEKFRQLYNELKGKHPFGGIYMFTKPVALVTDLELVKNVFVKDFQYFHDRGTYYDEKHDPLSAHLFNLEGYKWKSLRNKITPTFTSGKMKMMFPTVAAAGKQFKDYLEDAIGEQEEFELKELLARYTTDVIGTCAFGIECNSMRNPNAEFRVMGKKIFGRSRSNLQLLLMNAFPSVAKLVGIKLILPEVSDFFMNAVRDTIKYRVENNVQRNDFMDILIRMRSDKETKSDDGTLTFHEIAAQAFVFFVAGFETSSSLMAFTLYELALDQDMQDKARKCVTDVLERHNGELTYEAAMEMDYLDCVLKGWVR" "MEFYDVAVTVGMLCIIIYLLLVRQFRYWTERNVPQLNPHLLFGDVRDVNKTHHIGEKFRQLYNELKGKHPFGGIYMFTKPVALVTDLELVKNVFVKDFQYFHDRGTYYDEKHDPLSAHLFNLEGYKWKSLRNKITPTFTSGKMKMMFPTVAAAGKQFKDYLEDAIGEQEEFELKELLARYTTDVIGTCAFGIECNSMRNPNAEFRVMGKKIFGRSRSNLQLLLMNAFPSVAKLVGIKLILPEVSDFFMNAVRDTIKYRVENNVQRNDFMDILIRMRSDKETKSDDGTLTFHEIAAQAFVFFVAGFETSSSLMAFTLYELALDQDMQDKARKCVTDVLERHNGELTYEAAMEMDYLDCVLKGWVR"; const char *seqB = "AALGVAARAGFLAAGFASSSELSSELSSEDSAAFLAAAAGVAAFAGVFTIAAFGVAATADLLAAGLHSSSELSSELSSEDSAAFFAATAGVAALAGVLAAAAAFGVAATADFFAAGLESSSELSSELSSDDSAVFFAAAAGVATFAGVLAAAATFGVAACAGFFAAGLDSSSELSSELSSEDSAAFFAAAAGVATFTGVLAAAAACAAAACVGFFAAGLDSSSELSSELSSEDSAAFFAAAAGVAALAGVLAAAAACAGFFAAGLESSSELSSE" "AALGVAARAGFLAAGFASSSELSSELSSEDSAAFLAAAAGVAAFAGVFTIAAFGVAATADLLAAGLHSSSELSSELSSEDSAAFFAATAGVAALAGVLAAAAAFGVAATADFFAAGLESSSELSSELSSDDSAVFFAAAAGVATFAGVLAAAATFGVAACAGFFAAGLDSSSELSSELSSEDSAAFFAAAAGVATFTGVLAAAAACAAAACVGFFAAGLDSSSELSSELSSEDSAAFFAAAAGVAALAGVLAAAAACAGFFAAGLESSSELSSE"; size_t lena = strlen(seqA); size_t lenb = strlen(seqB); parasail_result_t * result = NULL; parasail_matrix_t *matrix = NULL; UNUSED(argc); UNUSED(argv); result = parasail_sw_scan_64(seqA, lena, seqB, lenb, 10, 1, ¶sail_blosum62); printf("score64=%d\n", result->score); parasail_result_free(result); result = parasail_sw_scan_32(seqA, lena, seqB, lenb, 10, 1, ¶sail_blosum62); printf("score32=%d\n", result->score); parasail_result_free(result); result = parasail_sw_scan_16(seqA, lena, seqB, lenb, 10, 1, ¶sail_blosum62); printf("score16=%d\n", result->score); parasail_result_free(result); result = parasail_sw_scan_8(seqA, lena, seqB, lenb, 10, 1, ¶sail_blosum62); printf("score8=%d\n", result->score); parasail_result_free(result); matrix = parasail_matrix_create("ASDF", 1, -1); parasail_matrix_free(matrix); parasail_matrix_free((parasail_matrix_t*)¶sail_blosum62); return 0; }