TobiTekath / DTUrtle

Perform differential transcript usage (DTU) analysis of bulk or single-cell RNA-seq data. See documentation at:
https://tobitekath.github.io/DTUrtle
GNU General Public License v3.0
17 stars 3 forks source link

run_drimseq stops with some datasets #24

Closed MRonzio closed 4 months ago

MRonzio commented 4 months ago

Describe the bug Hi, thanks for your contribution. It is a very useful and documented package. Unfortunately, running the DTU analysis on some datasets it gives error: Error in constrOptim(theta = prop_init[-q], f = dm_likG, grad = dm_scoreG, : initial value is not in the interior of the feasible region. In some cases, removing some samples and/or some transcripts solves the issue but I couldn't understand exactly the rationale. For my understanding, constrOptim function would work adding a value to the theta parameter, but I am not perfectly sure where to add it. Any hint? Thanks To Reproduce

dturtle <- run_drimseq(counts = cts_sub, tx2gene = tx2gene, pd=pd, id_col = "sample_file",
                    cond_col = "cond", cond_levels = c("cond1", "cond2"),
                    filtering_strategy = "bulk", BPPARAM = biocpar)

Adding pseudovalue=T still gives error.

Please complete the following information:

MRonzio commented 4 months ago

For anyone getting the same issue, I was able to solve by adding a pseudovalue (0.01) to the cts_sub matrix.