> class(sample2cov)
[1] "data.frame"
> head(sample2cov)
sample age treatment timepoint path
1 S1 young baseline 1mo S1
2 S2 young baseline 1mo S2
3 S3 young baseline 1mo S3
4 S4 young baseline 1mo S4
5 S5 young baseline 3mo S5
6 S6 young baseline 3mo S6
And when I try to create the sleuth object, I get the following error:
so <- sleuth_prep(sample2cov, target_mapping = tx2gene_dict, full_model = ~ treatment*timepoint, aggregation_column = 'ens_gene', extra_bootstrap_summary = T)
reading in kallisto results
dropping unused factor levels
...............
normalizing est_counts
59550 targets passed the filter
normalizing tpm
merging in metadata
summarizing bootstraps
.Error in bs_mat[, which_ids] : subscript out of bounds
I did check whether my .h5 files are corrupted with hdf5-tester and they passed the check.
I also tried to run it outside RStudio, just in case there was a conflict. But still the same error, a bit more expanded:
reading in kallisto results
dropping unused factor levels
...............
normalizing est_counts
59550 targets passed the filter
normalizing tpm
merging in metadata
summarizing bootstraps
.......Sample 'S1' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S2' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S3' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S4' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S5' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S6' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S7' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S8' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S9' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S10' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S11' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S12' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S13' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S14' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Sample 'S15' had this error message: Error in bs_mat[, which_ids] : subscript out of bounds
Error in sleuth_prep(sample2cov, target_mapping = tx2gene_dict, :
At least one core from mclapply had an error. See the above error message(s) for more details.
I have also tried to create the sleuth object by eliminating each option, but I get the exact same error.
so <- sleuth_prep(sample2cov, target_mapping = tx2gene_dict, full_model = ~ treatment*timepoint)
so <- sleuth_prep(sample2cov, target_mapping = tx2gene_dict)
so <- sleuth_prep(sample2cov)
Plus , I tried running it on a cluster in case memory was the issue, but I keep getting the error.
Hi, I am trying to run sleuth with kallisto abundances, but fails at the preparation stage.
This is how I run kallisto:
When I read the annotation dictionary, I do use stringsAsFactors = F as recommended in one of the fixes.
This is my sample to covariates dataframe:
And when I try to create the sleuth object, I get the following error:
I did check whether my .h5 files are corrupted with hdf5-tester and they passed the check.
I also tried to run it outside RStudio, just in case there was a conflict. But still the same error, a bit more expanded:
I have also tried to create the sleuth object by eliminating each option, but I get the exact same error.
Plus , I tried running it on a cluster in case memory was the issue, but I keep getting the error.
Any ideas would be highly appreciated, thank you!
My session info is: