Is it possible to skip the estimateSizeFactor step in Deseq2 and define your own size factors? If I just replace the size factor vector with my own values, will the down-stream DE steps use these values? I am pretty new with R so it would be very helpful if I can see some example code on how to do this.
How is this then passed onto another dds object? (I am trying to analyse only a subset of genes from all genes expressed in a dataset because I am focusing on genes which are modulated by eQTLs - but ideally I would like to normalise raw counts to the size factors calculated using the whole dataset to improve the normalisation protocol, right?)
Ooops. I guess it's better I don't do that, actually. Looks like it's better to just use the whole dataset, and perform multiple testing correction on the list of genes I am interested, as it seems tricky to stipulate size factors from one dds object to another. Source: https://support.bioconductor.org/p/79470/#79477