covariate with negative and positive values
1
0
Entering edit mode
Brynn • 0
@50ccd6ad
Last seen 8 months ago
United States

Hello,

I am using DEseq2 to analyze the relationship between gene expression and two continuous phenotypic predictor variables, one of which has both positive and negative values. Is this acceptable, or does this variable need to be transformed so that all values are positive?

Thanks

Code should be placed in three backticks as shown below


# include your problematic code here with any corresponding output 
# please also include the results of running the following in an R session 

sessionInfo( )
DESeq2 • 271 views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 1 day ago
United States

Not a problem.

However, if the values are very large (eg 1e6) or very small (eg 1e-6), it's a good idea to center and scale the variable, with dds$x <- (dds$x - mean(dds$x))/sd(dds$x)

ADD COMMENT

Login before adding your answer.

Traffic: 824 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6