Closed davos-i closed 6 years ago
Hi @davos-i
Thank you for opening this issue. I just made some changes to fix two of the issues you raised.
pcr_lm()
takes an argument mode
which you can set to "subtract" (default) or "divide". This will be passed to the internal normalization function.position = 'dodge'
to the geom_errorbar()
function when the input data.frame has more than one gene. So the plot = TRUE
should work fine now.pcr_test
. I actually use the base R lm
to run the model and this is its default behavior. It compares all the groups to the control. I think if you want the pairwise comparisons, then you need to run ttest
individually for the comparisons you are interested in. You can, however, specify a contrast
which will be passed to lm
. Alternatively, you can construct a model.matrix
and pass it to pcr_test
and used to run the model.Hi @MahShaaban Thank you for your help, that will be great.
Hi, Thanks for the great package, I've found it very useful. I am new to RStudio and new to real-time PCR, so I have been trying to understand the maths behind your package. I am researching gene expression in animal tissue based on different dietary treatments. I have a standard curve for every run of my qPCR. Therefore, I have used the relative_curve method in the function pcr_analyze. From what I understand, if I use the "relative_curve" method it will normalize the data to a reference gene using "divide" (if separate tubes). However, if I then want to use pcr_test to run a linear model, it will use the same data but normalize using the "subtract" method as default. I don't know how to make changes as you mention in your contributing guidelines, but I have a working example to show you that the statistical results are different when I ran the pcr_test with a "divide" normalization. Can you please confirm with method is correct?
Other issues I've made work-arounds for in this example:
Thanks