ecopcr: added warnings and check of primer length (related to #75)
This commit is contained in:
@ -739,6 +739,14 @@ int obi_ecopcr(const char* i_dms_name,
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Check primer length (apat lib limits to 32)
|
||||
if ((strlen(primer1) > 32) || (strlen(primer2) > 32))
|
||||
{
|
||||
obi_set_errno(OBI_ECOPCR_ERROR);
|
||||
obidebug(1, "\nError: primer length can not be greater than 32 (primers %s, %s)", primer1, primer2);
|
||||
return -1;
|
||||
}
|
||||
|
||||
o1 = buildPattern(primer1, error_max);
|
||||
o2 = buildPattern(primer2, error_max);
|
||||
|
||||
|
@ -81,8 +81,8 @@
|
||||
* @param o_dms_name The path to the output DMS.
|
||||
* @param o_view_name The name of the output view.
|
||||
* @param o_view_comments The comments to associate with the output view.
|
||||
* @param primer1 The first primer.
|
||||
* @param primer2 The second primer.
|
||||
* @param primer1 The first primer, length must be less than or equal to 32 (because of apat lib limitation).
|
||||
* @param primer2 The second primer, length must be less than or equal to 32 (because of apat lib limitation).
|
||||
* @param error_max The maximum number of errors allowed per primer for amplification.
|
||||
* @param min_len The minimum length of an amplicon.
|
||||
* @param max_len The maximum length of an amplicon.
|
||||
|
Reference in New Issue
Block a user