I would like to use edgeR's GLM functionality to determine the influence of several factors on a gene's expression levels. For performance reasons I would like to estimate the dispersion using the entire count table, but then determine the fit just for the gene I am interested in.
Is there any way to do this, i.e. call glmFit() on just one row of the table? I already tried to create a new CDS for just the gene and copy over the dispersion from the full CDS, but that does not seem to work.
I know that it does the fit one gene at a time, but I only want to obtain the fit for one specific gene anyway. So it would be quite a waste of computing time if I did the fit for every single gene, just to ignore everything but one line afterwards. I was hoping there was some way to use the entire count table for dispersion estimation, but then only do the fitting on the relevant row.