You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the function carpools.hit.overview() from the template script in line 895 I get an error.
carpools.hit.overview(wilcox=data.wilcox, deseq=data.deseq, mageck=data.mageck, cutoff.deseq = sig.pval.deseq, cutoff.wilcox = sig.pval.wilcox, cutoff.mageck = sig.pval.mageck, cutoff.override=cutoff.override, cutoff.hits=NULL, plot.genes="overlapping")
Error in `$<-.data.frame`(`*tmp*`, "wilcox", value = numeric(0)) :
replacement has 0 rows, data has 409
I could backtrack the error to the step where the wilcoxon test is done. In line 695 the function stat.wilcox is used to run the wilcoxon test on the list of sgRNAs.
The problem is, that it returns a table of p-values with no gene names - they are being discarded when the rbind.data.frame call is done on the dataset.combined object (line 68 in the stat.wilcox function).
Therefore the overlap function doesn't work.
I have created a workaround for that by adding the following line before returning the pvals object.
I think this is not an optimal solution, but it works for now, as long as the order of the aggregated means (per gene) is identical to the order of the unique gene names extracted from the dataset.combined object.
Assa
P.S.
It owuld be great if you can check whether or not this solution is correct.
The text was updated successfully, but these errors were encountered:
When running the function
carpools.hit.overview()
from the template script in line 895 I get an error.I could backtrack the error to the step where the wilcoxon test is done. In line 695 the function
stat.wilcox
is used to run the wilcoxon test on the list of sgRNAs.The problem is, that it returns a table of p-values with no gene names - they are being discarded when the
rbind.data.frame
call is done on thedataset.combined
object (line 68 in thestat.wilcox
function).Therefore the overlap function doesn't work.
I have created a workaround for that by adding the following line before returning the
pvals
object.I think this is not an optimal solution, but it works for now, as long as the order of the aggregated means (per gene) is identical to the order of the unique gene names extracted from the
dataset.combined
object.Assa
P.S.
It owuld be great if you can check whether or not this solution is correct.
The text was updated successfully, but these errors were encountered: