application: pasteseq [
  documentation: "Insert one sequence into another"
  groups: "Edit"
    relations: "EDAM_topic:0091 Data handling"
    relations: "EDAM_operation:0232 Sequence merging"
]

section: input [
  information: "Input section"
  type: "page"
]

  sequence: asequence [
    parameter: "Y"
    type: "gapany"
    relations: "EDAM_data:0849 Sequence record"
  ]

  sequence: bsequence [
    parameter: "Y"
    information: "Sequence to insert"
    type: "@($(acdprotein) ? gapstopprotein : gapnucleotide)"
    relations: "EDAM_data:0849 Sequence record"
  ]

endsection: input

section: required [
  information: "Required section"
  type: "page"
]

  integer: pos [
    standard: "Y"
    default: "$(asequence.end)"
    maximum: "$(asequence.end)"
    minimum: "0"
    failrange: "N"
    trueminimum: "Y"
    information: "Position to insert after"
    help: "The position in the main input sequence to insert after. \
           To insert before the start use the position 0."
    relations: "EDAM_data:1016 Sequence position"
  ]

endsection: required

section: output [
  information: "Output section"
  type: "page"
]

  seqout: outseq [
    parameter: "Y"
    relations: "EDAM_data:0849 Sequence record"
  ]

endsection: output
