-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in edgeR analysis: library size of zero detected when executing DGEList function #134
Comments
Can you check if this is also the case for |
@lpantano any idea what might be causing this? A bit clueless here, as we see that same behaviour for |
@BioinfoHub-PeiQinNg - you may give |
I believe @apeltzer is right, this was reproduced by some people in the past and that should fixed it. |
Fixed in #136 |
Hello, I am running into this problem, but am using RStudio instead of the command line because I'm pretty new at bioinformatics. I am trying to obtain normalization factors from my alignment files using the edgeR package. When I run regionCounts that my takes in my alignment bam files (pe argument = list of all .bam files in my working directory), the consensus peakset for my experiment, and my parameters, then feed the result of that into asDGEList to get avgLogCPM, I get the following error:
Is there some way to fix this by running some code within RStudio so that peak.counts picks up counts from the reads? Any suggestions greatly appreciated!
|
I have checked the following places for your error:
Description of the bug
I have tried executing nf-core/smrnna workflow, up until the edgeR step the following error shows up
<Command exit status:
1
Command output:
$mature
[1] "SAGCFN_22_00196.mature.stats" "SAGCFN_22_00194.mature.stats"
[3] "SAGCFN_22_00188.mature.stats" "SAGCFN_22_00190.mature.stats"
[5] "SAGCFN_22_00189.mature.stats" "SAGCFN_22_00193.mature.stats"
[7] "SAGCFN_22_00186.mature.stats" "SAGCFN_22_00187.mature.stats"
[9] "SAGCFN_22_00197.mature.stats" "SAGCFN_22_00191.mature.stats"
[11] "SAGCFN_22_00195.mature.stats" "SAGCFN_22_00192.mature.stats"
$hairpin
[1] "SAGCFN_22_00187.hairpin.stats" "SAGCFN_22_00192.hairpin.stats"
[3] "SAGCFN_22_00191.hairpin.stats" "SAGCFN_22_00188.hairpin.stats"
[5] "SAGCFN_22_00186.hairpin.stats" "SAGCFN_22_00195.hairpin.stats"
[7] "SAGCFN_22_00189.hairpin.stats" "SAGCFN_22_00197.hairpin.stats"
[9] "SAGCFN_22_00196.hairpin.stats" "SAGCFN_22_00190.hairpin.stats"
[11] "SAGCFN_22_00193.hairpin.stats" "SAGCFN_22_00194.hairpin.stats"
Command error:
Loading required package: limma
Loading required package: edgeR
Loading required package: statmod
Loading required package: data.table
Loading required package: gplots
Attaching package: ‘gplots’
The following object is masked from ‘package:stats’:
Error in cpm.default(y$counts, lib.size = lib.size, log = log, prior.count = prior.count) :
library sizes should be finite and non-negative
Calls: cpm -> cpm.DGEList -> cpm.default
In addition: Warning message:
In DGEList(counts = data, genes = rownames(data)) :
library size of zero detected
Execution halted
Work dir:
/cancer/storage/SAGC/projects/SAGCQA0237-RainerHaberberger/raw_data/work/9a/6eedaca4a80898bec9761a56b5a926
Tip: when you have fixed the problem you can continue the execution adding the option
-resume
to the run command line>Steps to reproduce
Steps to reproduce the behaviour:
'nextflow run nf-core/smrnaseq --input '*.fastq.gz' --genome GRCh38 -profile sahmri --custom_config_base 'https://raw.githubusercontent.com/sagc-bioinformatics/configs/sahmri' --mature ../miRBase/mature.fa.gz --hairpin ../miRBase/hairpin.fa.gz -resume -r 1.1.0'
2.. See error:
< Error in cpm.default(y$counts, lib.size = lib.size, log = log, prior.count = prior.count) :
library sizes should be finite and non-negative
Calls: cpm -> cpm.DGEList -> cpm.default
In addition: Warning message:
In DGEList(counts = data, genes = rownames(data)) :
library size of zero detected
Execution halted>
Expected behaviour
Log files
Have you provided the following extra information/files:
.nextflow.log
fileSystem
Nextflow Installation
Container engine
The text was updated successfully, but these errors were encountered: