Bioinformatics/Subsequence: Difference between revisions

Line 322:
# Email : <calmosoft@gmail.com>
-----------------------------------*/
 
//-----------------------------------------
 
load "stdlibcore.ring"
Line 338 ⟶ 340:
Button = newlist(10,20)
LayoutButtonRow = list(10)
 
//-----------------------------------------
 
app = new qApp
Line 353 ⟶ 357:
LayoutButtonMain.setSpacing(C_Spacing)
LayoutButtonMain.setContentsmargins(0,0,0,0)
 
LabelInd = new qLabel(win) { settext(" DNA subsequences start positions:")
setAlignment(Qt_AlignHCenter | Qt_AlignVCenter)
setStyleSheet("background-color:yellow") }
 
ButtonFindButtonInd = new QPushButton(win) { setStyleSheet("background-color:yellow") }
 
LabelFind = new qLabel(win) { settext(" DNA subsequence to find:")
Line 363 ⟶ 373:
settext("Find")
}
ButtonFind = new QPushButton(win)
for Col = 1 to 21
Line 373 ⟶ 382:
}
next
 
LayoutInd = new QHBoxLayout() { setSpacing(C_Spacing) setContentsMargins(0,0,0,0) }
LayoutInd.AddWidget(LabelInd)
LayoutInd.AddWidget(ButtonInd)
LayoutButtonMain.AddLayout(LayoutInd)
LayoutTitleRow = new QHBoxLayout() { setSpacing(C_Spacing) setContentsMargins(0,0,0,0) }
Line 395 ⟶ 409:
}
next
 
for Row = 1 to 10
LayoutButtonRow[Row] = new QHBoxLayout()
Line 417 ⟶ 430:
 
LayoutDataRow = new QHBoxLayout() { setSpacing(C_Spacing) setContentsMargins(0,0,0,0) }
 
LayoutDataRow.AddWidget(LabelFind)
LayoutDataRow.AddWidget(ButtonFind)
Line 529 ⟶ 542:
ok
next
 
temp = ""
ButtonInd.settext("")
for nr = 1 to len(dnaList)
ind = find(dnaSeq,nr)
if ind > 0
temp = temp + string(dnaSeq[ind]) + " "
ButtonInd.settext(temp)
for n = nr to nr + 3
row = ceil(n/20)
Line 546 ⟶ 563:
 
//-----------------------------------------
 
</lang>
 
2,468

edits