Skip to content

Commit f5d43d9

Browse files
authored
Update quickPCR.R
On lines 60 and 66, "length(temp)" was returning number of columns, when it should have been pulling the number of rows in "temp". Code has been updated to "length(temp[,CT_num])" in both places. The bug would not have an effect on any resulting output files.
1 parent 6f8d5e7 commit f5d43d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/quickPCR.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ quickProcess<-function(data_df,normalizer_char, sampleName_num, targetGene_num,
5757
#store individual CTs based off of how many technical replicates the user ran - assumes the same CTs run for all samples
5858
CT1_vec<-c(CT1_vec, temp[1,CT_num])
5959

60-
if(length(temp)>1){
60+
if(length(temp[,CT_num])>1){
6161
CT2_vec<-c(CT2_vec, temp[2,CT_num])
6262
} else{
6363
CT2_vec<-c(CT2_vec, NA)
6464
}
6565

66-
if(length(temp)>2){
66+
if(length(temp[,CT_num])>2){
6767
CT3_vec<-c(CT3_vec, temp[3,CT_num])
6868
} else{
6969
CT3_vec<-c(CT3_vec, NA)

0 commit comments

Comments
 (0)