Icon representing a recipe

Recipe: FASTA Amino Setter

created by Jean-Bob

Profile


Name
FASTA Amino Setter
ID
44712
Shared with
Public
Parent
None
Children
None
Created on
November 28, 2012 at 02:48 AM UTC
Updated on
November 28, 2012 at 02:48 AM UTC
Description

Design mode only. Smply paste FASTA sequence on dialog screen

Best for


Code


local ask = dialog.CreateDialog("FASTA Amino Setter") ask.fasta = dialog.AddTextbox("FASTA :", "") ask.OK = dialog.AddButton("OK", 1) ask.Cancel = dialog.AddButton("Cancel", 0) if (dialog.Show(ask) > 0) then segs=structure.GetCount() for i=1, segs do structure.SetAminoAcid(i,ask.fasta.value:sub(i,i)) end end

Comments