Lines Matching refs:om2

270   P7_OPROFILE  *om2  = NULL;  in p7_oprofile_Copy()  local
275 ESL_ALLOC(om2, sizeof(P7_OPROFILE)); in p7_oprofile_Copy()
276 om2->rbv_mem = NULL; in p7_oprofile_Copy()
277 om2->sbv_mem = NULL; in p7_oprofile_Copy()
278 om2->rwv_mem = NULL; in p7_oprofile_Copy()
279 om2->twv_mem = NULL; in p7_oprofile_Copy()
280 om2->rfv_mem = NULL; in p7_oprofile_Copy()
281 om2->tfv_mem = NULL; in p7_oprofile_Copy()
282 om2->rbv = NULL; in p7_oprofile_Copy()
283 om2->sbv = NULL; in p7_oprofile_Copy()
284 om2->rwv = NULL; in p7_oprofile_Copy()
285 om2->twv = NULL; in p7_oprofile_Copy()
286 om2->rfv = NULL; in p7_oprofile_Copy()
287 om2->tfv = NULL; in p7_oprofile_Copy()
290 …ESL_ALLOC(om2->rbv_mem, sizeof(__m128i) * nqb * abc->Kp +15); /* +15 is for manual 16-byte ali… in p7_oprofile_Copy()
291 ESL_ALLOC(om2->sbv_mem, sizeof(__m128i) * nqs * abc->Kp +15); in p7_oprofile_Copy()
292 ESL_ALLOC(om2->rwv_mem, sizeof(__m128i) * nqw * abc->Kp +15); in p7_oprofile_Copy()
293 ESL_ALLOC(om2->twv_mem, sizeof(__m128i) * nqw * p7O_NTRANS +15); in p7_oprofile_Copy()
294 ESL_ALLOC(om2->rfv_mem, sizeof(__m128) * nqf * abc->Kp +15); in p7_oprofile_Copy()
295 ESL_ALLOC(om2->tfv_mem, sizeof(__m128) * nqf * p7O_NTRANS +15); in p7_oprofile_Copy()
297 ESL_ALLOC(om2->rbv, sizeof(__m128i *) * abc->Kp); in p7_oprofile_Copy()
298 ESL_ALLOC(om2->sbv, sizeof(__m128i *) * abc->Kp); in p7_oprofile_Copy()
299 ESL_ALLOC(om2->rwv, sizeof(__m128i *) * abc->Kp); in p7_oprofile_Copy()
300 ESL_ALLOC(om2->rfv, sizeof(__m128 *) * abc->Kp); in p7_oprofile_Copy()
303 om2->rbv[0] = (__m128i *) (((unsigned long int) om2->rbv_mem + 15) & (~0xf)); in p7_oprofile_Copy()
304 om2->sbv[0] = (__m128i *) (((unsigned long int) om2->sbv_mem + 15) & (~0xf)); in p7_oprofile_Copy()
305 om2->rwv[0] = (__m128i *) (((unsigned long int) om2->rwv_mem + 15) & (~0xf)); in p7_oprofile_Copy()
306 om2->twv = (__m128i *) (((unsigned long int) om2->twv_mem + 15) & (~0xf)); in p7_oprofile_Copy()
307 om2->rfv[0] = (__m128 *) (((unsigned long int) om2->rfv_mem + 15) & (~0xf)); in p7_oprofile_Copy()
308 om2->tfv = (__m128 *) (((unsigned long int) om2->tfv_mem + 15) & (~0xf)); in p7_oprofile_Copy()
311 memcpy(om2->rbv[0], om1->rbv[0], sizeof(__m128i) * nqb * abc->Kp); in p7_oprofile_Copy()
312 memcpy(om2->sbv[0], om1->sbv[0], sizeof(__m128i) * nqs * abc->Kp); in p7_oprofile_Copy()
313 memcpy(om2->rwv[0], om1->rwv[0], sizeof(__m128i) * nqw * abc->Kp); in p7_oprofile_Copy()
314 memcpy(om2->rfv[0], om1->rfv[0], sizeof(__m128i) * nqf * abc->Kp); in p7_oprofile_Copy()
318 om2->rbv[x] = om2->rbv[0] + (x * nqb); in p7_oprofile_Copy()
319 om2->sbv[x] = om2->sbv[0] + (x * nqs); in p7_oprofile_Copy()
320 om2->rwv[x] = om2->rwv[0] + (x * nqw); in p7_oprofile_Copy()
321 om2->rfv[x] = om2->rfv[0] + (x * nqf); in p7_oprofile_Copy()
323 om2->allocQ16 = nqb; in p7_oprofile_Copy()
324 om2->allocQ8 = nqw; in p7_oprofile_Copy()
325 om2->allocQ4 = nqf; in p7_oprofile_Copy()
328 om2->tbm_b = om1->tbm_b; in p7_oprofile_Copy()
329 om2->tec_b = om1->tec_b; in p7_oprofile_Copy()
330 om2->tjb_b = om1->tjb_b; in p7_oprofile_Copy()
331 om2->scale_b = om1->scale_b; in p7_oprofile_Copy()
332 om2->base_b = om1->base_b; in p7_oprofile_Copy()
333 om2->bias_b = om1->bias_b; in p7_oprofile_Copy()
335 om2->scale_w = om1->scale_w; in p7_oprofile_Copy()
336 om2->base_w = om1->base_w; in p7_oprofile_Copy()
337 om2->ddbound_w = om1->ddbound_w; in p7_oprofile_Copy()
338 om2->ncj_roundoff = om1->ncj_roundoff; in p7_oprofile_Copy()
340 for (x = 0; x < p7_NOFFSETS; x++) om2->offs[x] = om1->offs[x]; in p7_oprofile_Copy()
341 for (x = 0; x < p7_NEVPARAM; x++) om2->evparam[x] = om1->evparam[x]; in p7_oprofile_Copy()
342 for (x = 0; x < p7_NCUTOFFS; x++) om2->cutoff[x] = om1->cutoff[x]; in p7_oprofile_Copy()
343 for (x = 0; x < p7_MAXABET; x++) om2->compo[x] = om1->compo[x]; in p7_oprofile_Copy()
345 for (x = 0; x < nqw * p7O_NTRANS; ++x) om2->twv[x] = om1->twv[x]; in p7_oprofile_Copy()
346 for (x = 0; x < nqf * p7O_NTRANS; ++x) om2->tfv[x] = om1->tfv[x]; in p7_oprofile_Copy()
351 om2->xw[x][y] = om1->xw[x][y]; in p7_oprofile_Copy()
352 om2->xf[x][y] = om1->xf[x][y]; in p7_oprofile_Copy()
355 if ((status = esl_strdup(om1->name, -1, &om2->name)) != eslOK) goto ERROR; in p7_oprofile_Copy()
356 if ((status = esl_strdup(om1->acc, -1, &om2->acc)) != eslOK) goto ERROR; in p7_oprofile_Copy()
357 if ((status = esl_strdup(om1->desc, -1, &om2->desc)) != eslOK) goto ERROR; in p7_oprofile_Copy()
364 ESL_ALLOC(om2->rf, size); in p7_oprofile_Copy()
365 ESL_ALLOC(om2->mm, size); in p7_oprofile_Copy()
366 ESL_ALLOC(om2->cs, size); in p7_oprofile_Copy()
367 ESL_ALLOC(om2->consensus, size); in p7_oprofile_Copy()
369 memcpy(om2->rf, om1->rf, size); in p7_oprofile_Copy()
370 memcpy(om2->mm, om1->mm, size); in p7_oprofile_Copy()
371 memcpy(om2->cs, om1->cs, size); in p7_oprofile_Copy()
372 memcpy(om2->consensus, om1->consensus, size); in p7_oprofile_Copy()
374 om2->abc = om1->abc; in p7_oprofile_Copy()
375 om2->L = om1->L; in p7_oprofile_Copy()
376 om2->M = om1->M; in p7_oprofile_Copy()
377 om2->allocM = om1->allocM; in p7_oprofile_Copy()
378 om2->mode = om1->mode; in p7_oprofile_Copy()
379 om2->nj = om1->nj; in p7_oprofile_Copy()
380 om2->max_length = om1->max_length; in p7_oprofile_Copy()
382 om2->clone = om1->clone; in p7_oprofile_Copy()
384 return om2; in p7_oprofile_Copy()
387 p7_oprofile_Destroy(om2); in p7_oprofile_Copy()
406 P7_OPROFILE *om2 = NULL; in p7_oprofile_Clone() local
408 ESL_ALLOC(om2, sizeof(P7_OPROFILE)); in p7_oprofile_Clone()
409 memcpy(om2, om1, sizeof(P7_OPROFILE)); in p7_oprofile_Clone()
411 om2->clone = 1; in p7_oprofile_Clone()
413 return om2; in p7_oprofile_Clone()
416 p7_oprofile_Destroy(om2); in p7_oprofile_Clone()
1799 p7_oprofile_Compare(const P7_OPROFILE *om1, const P7_OPROFILE *om2, float tol, char *errmsg) in p7_oprofile_Compare() argument
1809 if (om1->mode != om2->mode) ESL_FAIL(eslFAIL, errmsg, "comparison failed: mode"); in p7_oprofile_Compare()
1810 if (om1->L != om2->L) ESL_FAIL(eslFAIL, errmsg, "comparison failed: L"); in p7_oprofile_Compare()
1811 if (om1->M != om2->M) ESL_FAIL(eslFAIL, errmsg, "comparison failed: M"); in p7_oprofile_Compare()
1812 if (om1->nj != om2->nj) ESL_FAIL(eslFAIL, errmsg, "comparison failed: nj"); in p7_oprofile_Compare()
1813 …if (om1->abc->type != om2->abc->type) ESL_FAIL(eslFAIL, errmsg, "comparison failed: alphabet type"… in p7_oprofile_Compare()
1819 a16.v = om1->rbv[x][q]; b16.v = om2->rbv[x][q]; in p7_oprofile_Compare()
1822 if (om1->tbm_b != om2->tbm_b) ESL_FAIL(eslFAIL, errmsg, "comparison failed: tbm_b"); in p7_oprofile_Compare()
1823 if (om1->tec_b != om2->tec_b) ESL_FAIL(eslFAIL, errmsg, "comparison failed: tec_b"); in p7_oprofile_Compare()
1824 if (om1->tjb_b != om2->tjb_b) ESL_FAIL(eslFAIL, errmsg, "comparison failed: tjb_b"); in p7_oprofile_Compare()
1825 if (om1->scale_b != om2->scale_b) ESL_FAIL(eslFAIL, errmsg, "comparison failed: scale_b"); in p7_oprofile_Compare()
1826 if (om1->base_b != om2->base_b) ESL_FAIL(eslFAIL, errmsg, "comparison failed: base_b"); in p7_oprofile_Compare()
1827 if (om1->bias_b != om2->bias_b) ESL_FAIL(eslFAIL, errmsg, "comparison failed: bias_b"); in p7_oprofile_Compare()
1833 a8.v = om1->rwv[x][q]; b8.v = om2->rwv[x][q]; in p7_oprofile_Compare()
1838 a8.v = om1->twv[q]; b8.v = om2->twv[q]; in p7_oprofile_Compare()
1843 …if (om1->xw[x][y] != om2->xw[x][y]) ESL_FAIL(eslFAIL, errmsg, "comparison failed: xw[%d][%d]", x, … in p7_oprofile_Compare()
1845 if (om1->scale_w != om2->scale_w) ESL_FAIL(eslFAIL, errmsg, "comparison failed: scale"); in p7_oprofile_Compare()
1846 if (om1->base_w != om2->base_w) ESL_FAIL(eslFAIL, errmsg, "comparison failed: base"); in p7_oprofile_Compare()
1847 if (om1->ddbound_w != om2->ddbound_w) ESL_FAIL(eslFAIL, errmsg, "comparison failed: ddbound_w"); in p7_oprofile_Compare()
1853 a4.v = om1->rfv[x][q]; b4.v = om2->rfv[x][q]; in p7_oprofile_Compare()
1858 a4.v = om1->tfv[q]; b4.v = om2->tfv[q]; in p7_oprofile_Compare()
1862 …if (esl_vec_FCompare(om1->xf[x], om2->xf[x], p7O_NXTRANS, tol) != eslOK) ESL_FAIL(eslFAIL, errmsg,… in p7_oprofile_Compare()
1865 if (om1->offs[x] != om2->offs[x]) ESL_FAIL(eslFAIL, errmsg, "comparison failed: offs[%d]", x); in p7_oprofile_Compare()
1867 …if (esl_strcmp(om1->name, om2->name) != 0) ESL_FAIL(eslFAIL, errmsg, "comparison failed:… in p7_oprofile_Compare()
1868 …if (esl_strcmp(om1->acc, om2->acc) != 0) ESL_FAIL(eslFAIL, errmsg, "comparison failed:… in p7_oprofile_Compare()
1869 …if (esl_strcmp(om1->desc, om2->desc) != 0) ESL_FAIL(eslFAIL, errmsg, "comparison failed:… in p7_oprofile_Compare()
1870 …if (esl_strcmp(om1->rf, om2->rf) != 0) ESL_FAIL(eslFAIL, errmsg, "comparison failed:… in p7_oprofile_Compare()
1871 …if (esl_strcmp(om1->mm, om2->mm) != 0) ESL_FAIL(eslFAIL, errmsg, "comparison failed:… in p7_oprofile_Compare()
1872 …if (esl_strcmp(om1->cs, om2->cs) != 0) ESL_FAIL(eslFAIL, errmsg, "comparison failed:… in p7_oprofile_Compare()
1873 …if (esl_strcmp(om1->consensus, om2->consensus) != 0) ESL_FAIL(eslFAIL, errmsg, "comparison failed:… in p7_oprofile_Compare()
1875 …if (esl_vec_FCompare(om1->evparam, om2->evparam, p7_NEVPARAM, tol) != eslOK) ESL_FAIL(eslFAIL, err… in p7_oprofile_Compare()
1876 …if (esl_vec_FCompare(om1->cutoff, om2->cutoff, p7_NCUTOFFS, tol) != eslOK) ESL_FAIL(eslFAIL, err… in p7_oprofile_Compare()
1877 …if (esl_vec_FCompare(om1->compo, om2->compo, p7_MAXABET, tol) != eslOK) ESL_FAIL(eslFAIL, err… in p7_oprofile_Compare()
2119 P7_OPROFILE *om2 = NULL; in main() local
2142 om2 = p7_oprofile_Copy(om1); in main()
2143 if (p7_oprofile_Compare(om1, om2, 0.001f, errbuf) != eslOK) printf ("ERROR %s\n", errbuf); in main()
2146 p7_oprofile_Destroy(om2); in main()