Uploaded image for project: 'UGENE'
  1. UGENE
  2. UGENE-1096

Script function "addToAlignment" can not be used correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Workflow
    • Labels:
      None
    • Affect Type:
      Userdefined

      Description

      This script is used in one of WD samples elements:
      var length;
      length = size(in_sequence);
      if (length < len) {
      out_msa = addToAlignment(out_msa, in_sequence);
      }

      If you run this scheme with 3 input sequences (3 messages with one sequence) then it is logically right that @out_msa should be one alignment with 3 sequences.

      But the current behavior is incorrect. For example, the sequences' names are S1, S2 and S3. So, the element produces 3 resulting alignments:
      1) S1

      2) S1
      S2

      3) S1
      S2
      S3

      It is needed to create some mechanism of data accumulation for scripts. This mechanism will allow to store all data in the script context and produce only one message after finishing of the input channel.

      Currently, this sample is excluded in 1.11.* versions (UGENE-1095). Return the sample after fixing this issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iprotsyuk Ivan Protsyuk
              Reporter:
              ggrekhov German Grekhov
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: