Hey, I am trying to create a model of gene degradation specifacally in zebrafish embryo of maternal genes. After trying linear regression that did not lead to good results, my supervisor suggested to use gradient descent model with 5 parameters:
- x0 - inital expression
- t1- time the degradation starts
- t2-time the degradation ends -> expression is 0
- s1 - slope between t0-t1
- s2 - slope between t1-t2
My data looks like this: for each gene, I have RNA expression in each stage starting from 3h->12h.
I don't have any experience creating a model using gradient descent and have to implement in R. the problem is not to create a function but how to create my parameters, since they would be the same for each sample (if I calculate for each gene the five ones with linear regression)
Any experience or idea? thanks