-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStandCurv.R
More file actions
38 lines (25 loc) · 875 Bytes
/
StandCurv.R
File metadata and controls
38 lines (25 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## StandCurv.R ##
#' @export
#'
##############################################
## Author Information ##
# * Author: E.Frolli
# * Orginization: Univeristy of Texas Marine Science Institute
# * Contact: frolli.erin@utexas.edu
# * Date: 9 Aug 2017
##############################################
## The Code ##
StandCurv <- function (qPCRData,E=NULL){
n = nrow(qPCRData) # Number of rows
L = ncol(qPCRData) # Number of col
# Or Defult E values 100% Efficency
if(is.null(E)){
E = rep(2,L)
}
# Create a matrix out of the E values that is the same size as the qPCRData
qPCRDataE = matrix(rep(E,each=n),nrow = n)
# Transform to a linear scale of expression values.
qPCRDataE = round(qPCRDataE^qPCRData ,digits = 2)
# Return the data
return(qPCRDataE)
}