leafcutter icon indicating copy to clipboard operation
leafcutter copied to clipboard

Issue with running LeafcutterMD.R

Open looxon93 opened this issue 3 years ago • 4 comments

Hi all,

I wanted to use LeafcutterMD.R script, with this command line: /opt/leafcutter/scripts/leafcutterMD.R --num_threads 4 clust_perind_numers.counts.gz

However it returned following error:

Loading counts from clust_perind_numers.counts.gz
Settings:
$output_prefix
[1] "leafcutter_outlier"

$max_cluster_size
[1] 50

$min_coverage
[1] 20

$timeout
[1] 30

$num_threads
[1] 4

$help
[1] FALSE

Running outlier splicing analysis...
Error in h(simpleError(msg, call)) :
  error in evaluating the argument 'x' in selecting a method for function 't': subscript out of bounds
Calls: processAllClusters ... write.table -> is.data.frame -> t -> .handleSimpleError -> h
Execution halted

I also tried this with number of threads=1, but always bump into the the same issue. Can someone help with this?

looxon93 avatar Aug 09 '21 21:08 looxon93

Hello,

I'm facing the same issue, however with the test data set the command seems to be working fine. When I use my single, lone sample as input I get the same error. Would it be a good idea to take some publicly available RNA-seq data for controls?

Thanks

kvn95ss avatar Nov 15 '21 10:11 kvn95ss

Hello,

I'm trying to run through the tutorial series at http://davidaknowles.github.io/leafcutter/articles/UsageLeafcutterMD.html using SRA data and when I get to the final state trying to run the leafcutter/scripts/leafcutterMD.R script, I receive exactly the same error as @looxon93 and @kvn95ss :

Running outlier splicing analysis...
Error in h(simpleError(msg, call)) :
  error in evaluating the argument 'x' in selecting a method for function 't': subscript out of bounds
Calls: processAllClusters ... write.table -> is.data.frame -> t -> .handleSimpleError -> h
Execution halted

Does anyone have an idea what causes this? The issue seems quite old at this point.

pjewell-biociphers avatar Apr 15 '22 16:04 pjewell-biociphers

This happens because:

  • writeResToFile assumes that the results object has information about at least one cluster in it.
  • There are no clusters in results.
    • this can happen if only one sample is passed in (as for @kvn95ss's case)

This could be fixed by:

  • raising an informative error if count information doesn't have enough experiments in it
  • raising an informative error if results are empty after iterating over clusters.

jaicher avatar Apr 26 '22 21:04 jaicher

Hi all,

I am having the same error as @looxon93. `Settings: $output_prefix [1] "leafcutter_outlier"

$max_cluster_size [1] 50

$min_coverage [1] 20

$timeout [1] 30

$num_threads [1] 4

$help [1] FALSE

Running outlier splicing analysis... Error in results[[1]] : subscript out of bounds Calls: processAllClusters ... writeResToFile -> write.table -> is.data.frame -> t Execution halted`

I have checked the file "perind_numers.counts.gz" and I do have clusters. How did you fixed this?

asegarra22 avatar Sep 27 '22 13:09 asegarra22