Software Designing Interface – user friendly (think about MSoffice) –using menu, form, toolbars … –as simple as possible –using default setting, but allow.

Slides:



Advertisements
Similar presentations
Sep-05 Slide:1 VBA in Excel Walter Milner. Sep-05 Slide:2 VBA in Excel Introduction VBA = Visual Basic for Applications Enables end-user programming In.
Advertisements

Mapping a trait. Types of trait: 1.Monogenic 2.Polygenic-Quantitative-continuous QT are the cumulative effect of many genes and are environment dependent.
Slides 2c: Using Spreadsheets for Modeling - Excel Concepts (Updated 1/19/2005) There are several reasons for the popularity of spreadsheets: –Data are.
Excel and Visual Basic. Outline Data exchange between Excel and Visual Basic. Programming VB in Excel.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
OBJECT ORIENTED PROGRAMMING M Taimoor Khan
Put Markers and Trait Data into box below Linkage Disequilibrium Mapping - Natural Population OR.
Joint Linkage and Linkage Disequilibrium Mapping
1 QTL mapping in mice Lecture 10, Statistics 246 February 24, 2004.
CS320n –Visual Programming LabVIEW Foundations. Visual ProgrammingLabVIEW Foundations2 What We Will Do Today Hand back and review the midterm Look at.
Lecture 9: QTL Mapping I:
Compunet Corporation Programming with Visual Studio.NET GUI Week 13 Tariq Aziz and Kevin Jones.
Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second.
Welcome to Transforming PowerPoint: Creating an Interactive Environment using VBA Log onto computer Open Internet Explorer URL -
An Introduction to Scilab Tsing Nam Kiu 丁南僑 Department of Mathematics The University of Hong Kong 2009 January 7.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Visual Basic: An Object Oriented Approach 12 – Creating and using ActiveX objects.
VBA session 3 Paul Rubinov  My job: diverse audience so Bore you for 15 minutes. Confuse you for the other 15 min.  Feel free to contact me
Java Beans.
Stephen Mildenhall September 2001
QTL mapping in animals. It works QTL mapping in animals It works It’s cheap.
Operations 343 Spreadsheet Modeling Week 15 Quiz Review Homework Review Course Review Lab session.
Visual Basic Advanced Programming.
1 Visual Basic for Applications (VBA) for Excel Prof. Yitzchak Rosenthal.
Why to Create a Procedure
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
CSCI 3327 Visual Basic Chapter 6: Methods: A Deeper Look UTPA – Fall 2011.
Lecture Excel: Macros & Pivot Tables. Macros A macro is a series of commands that are stored and can be run whenever you need to perform the task.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Module Fall 2005 Session One Alex Fadeev - Link for this PPT:
Lab 01 Forms in excel Tahani ALdweesh Insert form into your project. 2. Change form’s properties. 3. Put controls on the form. 4. Change controls’
Lecture 8 Visual Basic (2).
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Outline Software and Programming Program Structure Tools for Designing Software Programming Languages Introduction to Visual Basic (VBA)
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 2.
Sample of our Normal Home Price Evaluator July
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
Rational Expressions: Multiply & Divide Polynomials Aim: Simplify a polynomial expression by multiplying and/or dividing polynomials.
Mathematics and Statistics Boot Camp II David Siroky Duke University.
Composite Method for QTL Mapping Zeng (1993, 1994) Limitations of single marker analysis Limitations of interval mapping The test statistic on one interval.
Physics Fluctuomatics/Applied Stochastic Process (Tohoku University) 1 Physical Fluctuomatics Applied Stochastic Process 3rd Random variable, probability.
Parameter Study Principles & Practices. What is Parameter Study? Parameter study is the application of a single algorithm over a set of independent inputs:
QTL Cartographer A Program Package for finding Quantitative Trait Loci C. J. Basten Z.-B. Zeng and B. S. Weir.
Macro’s Within excel. Most functionality can be driven from VBA VBA is the programming language that runs inside of excel. It uses visual basic as the.
Physics Fluctuomatics (Tohoku University) 1 Physical Fluctuomatics 3rd Random variable, probability distribution and probability density function Kazuyuki.
QTL Mapping Quantitative Trait Loci (QTL): A chromosomal segments that contribute to variation in a quantitative phenotype.
Population structure at QTL d A B C D E Q F G H a b c d e q f g h The population content at a quantitative trait locus (backcross, RIL, DH). Can be deduced.
IMS 4480: Introduction to Web Services 1 Dr. Lawrence West, MIS Dept., University of Central Florida Introduction to Web Services—Topics.
Interval mapping with maximum likelihood Data Files: Marker file – all markers Traits file – all traits Linkage map – built based on markers For example:
Lecture 23: Quantitative Traits III Date: 11/12/02  Single locus backcross regression  Single locus backcross likelihood  F2 – regression, likelihood,
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
- Type of Study Composite Interval Mapping Program - Genetic Design.
G043: Lecture 11 Task D Guidance Mr C Johnston ICT Teacher
More Visual Basic Code: if-then-else, for loops Controls: Multiple forms, List Boxes, Radio buttons, frames,
Genetic mapping and QTL analysis - JoinMap and QTLNetwork -
(1) Schedule Mar 15Linkage disequilibrium (LD) mapping Mar 17LD mapping Mar 22Guest speaker, Dr Yang Mar 24Overview Attend ENAR Biometrical meeting in.
Visual Basic Fundamental Concepts
Excel: Macros & Pivot Tables
ETM 607 – Spreadsheet Simulations
Graduate School of Information Sciences, Tohoku University
Interval Mapping.
Visual Basic..
Lecture 7: QTL Mapping I:
Tonga Institute of Higher Education
Procedures: Functions and Subroutines
Linkage Disequilibrium Mapping - Natural Population
Classes & Objects A deeper Look Chapter 10 & 11
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
GUI Programming in Visual Studio .NET
Composite Interval Mapping Program
Presentation transcript:

Software Designing Interface – user friendly (think about MSoffice) –using menu, form, toolbars … –as simple as possible –using default setting, but allow advanced user to change the settings. –language: Visual Basic, VC++, Web-Based (Microsoft.net, JavaScript), Visual Basic for Application…

Software Designing Program Design –Understand your problem and get all the formulas –Try to make it extendable –Try to make it more functional –Split the job into small, independent pieces, each can be tested separately –Write each functions –Testing, Revised it, Testing …

Interval Mapping and Composite Interval Mapping Program Language: VBA built in PowerPoint Program Design –Interface –Simulation data –Analysis (IM, CIM) –Permutation Test –Using graphics to display profiles –Save results

IM and CIM – Interface Design Design user forms Drag and Drop controls into the form Write code corresponding the controls

IM and CIM – Simulate Data Simulate Markers –Joint probability give one marker –Random number of polynomial distribution Simulate Trait –Joint probability of a QTL allele given two markers –Normal random number

Joint Probability Public Sub SetJointProb1(GeneticDesign As Integer) ' Set Jopint Probablity for One Point Analysis If GeneticDesign = 2 Then 'backcross jprob1(1) = 1 / 2 ‘Qq jprob1(2) = 1 / 2 ‘qq cumprob1(1) = 1 / 2 ‘cumulate probability cumprob1(2) = 1 End If If GeneticDesign = 3 Then 'F2 jprob1(1) = 1 / 4 ‘QQ jprob1(2) = 1 / 2 ‘Qq jprob1(3) = 1 / 4 ‘qq cumprob1(1) = 1 / 4 ‘cumulate probability cumprob1(2) = 3 / 4 cumprob1(3) = 1 End If End Sub

Joint Probability Public Sub SetJointProb2(r, GeneticDesign) ' Set Jopint Probablity for Two Point Analysis ' r is recomenant fraction between the two marker If GeneticDesign = 2 Then 'backcross jprob2(1, 1) = (1 - r) / 2 ' Prob(Qq | Mm ) jprob2(1, 2) = r / 2 ' Prob(qq | Mm ) jprob2(2, 1) = r / 2 ' Prob(Qq | mm ) jprob2(2, 2) = (1 - r) / 2 ' Prob(qq | mm ) cprob2(1, 1) = (1 - r) ‘cumulative probability cprob2(1, 2) = r cprob2(2, 1) = r cprob2(2, 2) = (1 - r) End If

Joint Probability Public Sub SetJointProb3(a, b, GeneticDesign As Integer) ' Set Jopint Probablity for Three Point Analysis ' a is recomenant fraction between marker1 and qtl ' b is recomenant fraction between qtl and marker2 If GeneticDesign = 2 Then 'backcross jprob3(1, 1) = (1 - a) * (1 - b) / 2 ' Prob(Qq | Mm, Nn ) 2*0+0+1=1 jprob3(1, 2) = a * b / 2 ' Prob(qq | Mm, Nn ) mrk=(0,0) jprob3(2, 1) = (1 - a) * b / 2 ' Prob(Qq | Mm, nn ) 2*0+1+1=2 jprob3(2, 2) = a * (1 - b) / 2 ' Prob(qq | Mm, nn ) mrk=(0,1) jprob3(3, 1) = a * (1 - b) / 2 ' Prob(Qq | mm, Nn ) 2*1+0+1=3 jprob3(3, 2) = (1 - a) * b / 2 ' Prob(qq | mm, Nn ) mrk=(1,0) jprob3(4, 1) = a * b / 2 ' Prob(Qq | mm, nn ) 2*1+1+1=4 jprob3(4, 2) = (1 - a) * (1 - b) / 2 ' Prob(qq | mm, nn ) mrk=(1,1)

Simulate Markers Public Sub simulatemarkerandtrait(ByVal N, ByVal cumdist As String, ByVal smu As String, ByVal s2, ByVal qtl, ByVal GeneticDesign As Integer, ByVal MapFunction As Integer) chrom = Split(trimemptyline(cumdist), VBA.Chr(13) + VBA.Chr(10)) qtls = Split(trimemptyline(qtl), VBA.Chr(13) + VBA.Chr(10)) numofchroms = UBound(chrom) + 1 ………………. Subroutines called in this simulation program –trimemptyline –SetJointProb1, SetJointProb2, SetJointProb3 –splitmutoeffect –SGNC: random normal See the real code.

Analysis - CIM Subroutines used: –trimemptyline –SetJointProb1, SetJointProb2, SetJointProb3 –formXmatrix: form control matrix X based on ControlMethod –matrixprod: A’*B –truematrixprod: A*B –SAMIDS: inverse of A and determinant of A See the real code.

L(y,M|  ) =  i=1 n  k=1 g [  k|i f k (y i )] log L(y,M|  ) =  i=1 n log[  k=1 g  k|i f k (y i )] g=2 for BC, 3 for F2 f k (y i ) = 1/[(2  ) ½  ]exp[- ½ (y-  k ) 2 ],  k =  g k +X i B k=1, …,g  k|i =  k|i f 1 (y i )/[  k=1 g  k|i f 1 (y i )] (1) B =  k=1 g  k (X´X) -1 X´(Y-  g k ) (2)  g k =  i=1 n  k|i (y i -X i B)/  i=1 n  k|i (3)  2 = 1/n  i=1 n  k=1 g  k|i (y i -X i B -  g k ) 2 (4) Y = {y i } nx1,  k = {  k|i } nx1

Save to Word File Private Sub CommandButton3_Click() Dim tmp As Long Dim wap As Word.Application Set wap = New Word.Application wap.Visible = False wap.Documents.Open VBA.CurDir$ + "\CIMRes.doc" tmp = wap.Documents("CIMRes.doc").Range().End wap.Documents("CIMRes.doc").Range(tmp - 1, tmp - 1).InsertBreak (wdPageBreak) tmp = wap.Documents("CIMRes.doc").Range().End wap.Documents("CIMRes.doc").Range(tmp - 1, tmp - 1) = gettruepars Slide24.Shapes("Object 6").OLEFormat.Object.Application.Chart.ChartArea.Copy tmp = wap.Documents("CIMRes.doc").Range().End wap.Documents("CIMRes.doc").Range(tmp - 1, tmp - 1).Paste wap.Documents("CIMRes.doc").Save wap.Documents("CIMRes.doc").Close Set wap = Nothing End Sub