Find Jobs
Hire Freelancers

Graphing Enzymes in VB6

$20-25 USD

Completed
Posted about 21 years ago

$20-25 USD

Paid on delivery
Hello, I have an assignment that requires me to graph the action of enzymes in Visual Basic 6. An example was given which graphs normal action. The problem as stated is as follows: Simulate a metabolic pathway with substrates A though E over 1,000 time intervals in which an inhibitor "K" of the forward reaction from B to C is applied at time t1 and is removed at time t2. Graph the concentractions of metabolites A though E. The given code shows what normally happens without any inhibitor. A is the top graph, and E is the last. The forward reactions from A to E are F1-F5 and the reverse reactions are R1-R4 (working from E backward) So the area of concern is from B-C which is "F2". I'm not sure how to add an inhibitor at that point. All that needs to be done is to add on to the existing sample program another button which would graph an inhibitor's activity. I imagine this should be pretty basic for a vb6 expert to do quickly. I will include my latest files as well as the code Does anyone have any ideas? Thanks! ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done in .frm, .vbp and .vbw files. 2) A screen shot of the gui. Here is the original code: 'Here are the calculated metabolite concentrations A-E: Dim A(1000), B(1000), C(1000), D(1000), E(1000) As Single 'Here are the forward and reverse reaction rates Dim F1, F2, F3, F4, F5 As Single Dim R1, R2, R3, R4, R5 As Single 'Here is the independent variable, time Dim t As Integer 'Feed is the rate of addition to A 'bsln is the baseline for the (inverted) vertical axis origin Dim Hscale, Vscale, feed, bsln As Single Private Sub Command1_Click() 'Set some reasonable values Hscale = 6.5: Vscale = 100: feed = 2 F1 = 0.1: F2 = 0.1: F3 = 0.1: F4 = 0.1: F5 = 0.1 R1 = 0.07: R2 = 0.07: R3 = 0.07: R4 = 0.07 bsln = [login to view URL] For t = 1 To 1000 'calculate updates of metabolite concentrations A(t) = A(t - 1) - (F1 * A(t - 1)) + (R1 * B(t - 1)) + feed B(t) = B(t - 1) + (F1 * A(t - 1)) - (R1 * B(t - 1)) - (F2 * B(t - 1)) + (R2 * C(t - 1)) C(t) = C(t - 1) + (F2 * B(t - 1)) - (R2 * C(t - 1)) - (F3 * C(t - 1)) + (R3 * D(t - 1)) D(t) = D(t - 1) + (F3 * C(t - 1)) - (R3 * D(t - 1)) - (F4 * D(t - 1)) + (R4 * E(t - 1)) E(t) = E(t - 1) + (F4 * D(t - 1)) - (R4 * E(t - 1)) - (F5 * E(t - 1)) 'display each metabolite concentration [login to view URL] (t * Hscale, bsln - (A(t) * Vscale)), 15 [login to view URL] (t * Hscale, bsln - (B(t) * Vscale)), 15 [login to view URL] (t * Hscale, bsln - (C(t) * Vscale)), 15 [login to view URL] (t * Hscale, bsln - (D(t) * Vscale)), 15 [login to view URL] (t * Hscale, bsln - (E(t) * Vscale)), 15 'Waste some time so that we can watch the plot grow For w = 1 To 20000: q = q + 1: Next w Next t End Sub Private Sub Command2_Click() End End Sub ## Platform Windows 98
Project ID: 2925884

About the project

2 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$12 USD in 14 days
5.0 (39 reviews)
4.4
4.4
2 freelancers are bidding on average $10 USD for this job
User Avatar
See private message.
$8.50 USD in 14 days
4.6 (28 reviews)
2.6
2.6

About the client

Flag of UNITED STATES
United States
5.0
1
Member since Mar 6, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.