Skip to content

Message "Unrecognized base in input sequence" omits problem char #59

@peterjc

Description

@peterjc

I have run into an example failing with Unrecognized base in input sequence, without being told what the problematic base is.

Quoting src/libprimer3/libprimer3.c this warning/error message does not but could easily report the offending character:

  if ((offending_char = dna_to_upper(sa->trimmed_seq, 0))) {
    if (pa->liberal_base) {
      pr_append_new_chunk(warning,
                          "Unrecognized base in input sequence");
    } else {
      pr_append_new_chunk(nonfatal_err,
                          "Unrecognized base in input sequence");
      return 1;
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions