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

The "subsequence" function in WD script elements works wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.1, 1.15
    • Component/s: Workflow
    • Labels:
      None
    • Tests Type:
      Functional/Unit
    • Sprint:
      DEV-28/08/2014
    • Affect Type:
      Userdefined

      Description

      1. Make a new script element in WD named "Get half of sequence" with input and output sequence slots and without attributes.
      2. Set the following script to element: "out_sequence = subsequence(in_sequence, 0, size(in_sequence) / 2 - 1);" I.e. the element is to cut off the last half of incoming sequence and pass the left one.
      3. Make the workflow: "Read Sequence" -> "Get half of sequence" -> "Write Sequence"
      4. Make a random sequence with length of 10.
      5. Run the workflow on the sequence.

      Expected state: result sequence has length of 5.
      Current state: result sequence has length of 4.

        Attachments

          Activity

            People

            Assignee:
            iprotsyuk Ivan Protsyuk
            Reporter:
            iprotsyuk Ivan Protsyuk
            Assigned Tester:
            Denis Kandrov
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified