Closed kmattioli closed 6 years ago
Hi @kmattioli,
Thanks for bringing this to our attention. The reason for the error is that gene_mode
is TRUE
for your sleuth object, meaning you are doing count aggregation, and then you set pval_aggregate
to TRUE
when you run sleuth_results
. These cannot be both TRUE
at the same time, because p-value aggregation and count aggregation are mutually exclusive (how can you further aggregate p-values when you are reporting statistics on gene-level counts?). The failure here was that we forgot to add in a sanity check for when the user supplies their own argument to pval_aggregate
.
gene_mode
is intended to signal count aggregation, and pval_aggregate
is intended to signal p-value aggregation. If you intend to use count aggregation (the old way of doing things), omit the pval_aggregate
argument from sleuth_results
. If you want to use p-value aggregation, omit the gene_mode
argument from sleuth_prep
.
Hope that helps!
ah - got it! thank you for the explanation!
Hello,
I have been doing differential expression analysis using sleuth today, and I just got this weird error when running DE on my second conditions:
Here is the rest of the code I am running:
Weirdly, I ran the same code but with a different sample_to_covariates dataframe on very similar data and it worked at first. Then I tried it on the second condition, and it gave me that error above. Then I went BACK to try the first condition that I knew should work, and it gave me that error above.
I am super confused and not an R ninja so any advice would be great. FWIW I have quit R and re-installed sleuth and I still can't get the first condition to work (the one that worked earlier).
Here's what t2g_gene looks like by the way. I made it myself (didn't use biomart) as kallisto output is weird when using Gencode. AFAICT, it has all of the IDs that are outputted in the kallisto abundance.tsv files.
Thanks!