xryanglab / xtail

Genome-wide assessment of differential translations with ribosome profiling data
GNU General Public License v3.0
17 stars 18 forks source link

baseLevel error in xtail running #11

Open trumanLuan opened 5 years ago

trumanLuan commented 5 years ago

Hi,

Thanks for your contribution to xtail. Great job. I'm using xtail to estimate differential translation, and i set baseLevel="NC" in my experiments. But in step 5. Estimate the log2 ratio in second condition, xtail return error as following:

Error in relevel.factor(colData(dataSet)$condition, baseLevel) : 'ref' must be an existing level.

Could you tell me what happened with this parameter? I also tried to set conditions as a factor, but it still failed with the same error info. Thanks in advance.

Yizhao Sun Yat-sen university

zhengtaoxiao commented 5 years ago

Hi, Thank you for using our package. It looks like the baseLevel is not found in condition. Please check if the baseLevel (NC for your experiments) was in the condition you fed into the xtail command. For example, if your condition is c("A","A","B","B"), the baseLevel should be "A" or "B".