Open YousufYassouf opened 3 years ago
Edit: I have used the following script
de.utils.preview_coef_names(sample_description=fadata.obs,
formula="~1+Conditions+SampleType+SampleType:Conditions+n_genes+n_genes:Conditions",
as_numeric='n_genes')
and got this output:
['Intercept', 'Conditions[T.2Con]', 'SampleType[T.frozen PBMC]', 'SampleType[T.frozen PBMC]:Conditions[T.2Con]', 'n_genes', 'n_genes:Conditions[T.2Con]']
it seems that '1Con' is in the intercept and the fold change is estimated as 2Con/1Con, so is there a simple way to choose which coefficient from the 'Conditions' will be in the intercept (maybe like selecting reference) to interpret log2c more easily?
Hi, I was trying to find DEGs and their fold change between two conditions (Conditions =['1Con', '2Con']) and to regress out two covariates (SampleType =['Frozen', 'Fresh'], n_genes).
I have two questions:
Any help would be appreciated!
I used this script to perform the analysis:
I got this output:
and this is the head of the resulting tsv file