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
Hi, I ran the nf-core differentialabundance pipeline with nf-core/rnaseq output, 6 different contrasts defined in contrasts.csv and the parameter --differential_subset_to_contrast_samples .
I get the following error message (I removed the samplenames for privacy reasons):
Error executing process > 'NFCORE_DIFFERENTIALABUNDANCE:DIFFERENTIALABUNDANCE:PLOT_EXPLORATORY (condition)'
Caused by:
Process `NFCORE_DIFFERENTIALABUNDANCE:DIFFERENTIALABUNDANCE:PLOT_EXPLORATORY (condition)` terminated with an error exit status (1)
Command executed:
exploratory_plots.R \
--sample_metadata "samplesheet.sample_metadata.tsv" \
--feature_metadata "Homo_sapiens.anno.feature_metadata.tsv" \
--assay_files "salmon.merged.gene_counts.assay.tsv,all.normalised_counts.tsv,all.vst.tsv" \
--contrast_variable "condition" \
--outdir "condition" \
--sample_id_col "sample" --feature_id_col "gene_id" --assay_names "raw,normalised,variance_stabilised" --final_assay "variance_stabilised" --outlier_mad_threshold -5 --palette_name "Set1" --log2_assays "raw,normalised"
cat <<-END_VERSIONS > versions.yml
"NFCORE_DIFFERENTIALABUNDANCE:DIFFERENTIALABUNDANCE:PLOT_EXPLORATORY":
r-shinyngs: $(Rscript -e "library(shinyngs); cat(as.character(packageVersion('shinyngs')))")
END_VERSIONS
Command exit status:
1
Command output:
[1] "Reading inputs..."
Command error:
table, tapply, union, unique, unsplit, which.max, which.min
Loading required package: S4Vectors
Attaching package: ‘S4Vectors’
The following object is masked from ‘package:utils’:
findMatches
The following objects are masked from ‘package:base’:
expand.grid, I, unname
Loading required package: IRanges
Loading required package: GenomeInfoDb
Loading required package: Biobase
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Attaching package: ‘Biobase’
The following object is masked from ‘package:MatrixGenerics’:
rowMedians
The following objects are masked from ‘package:matrixStats’:
anyMissing, rowMedians
Attaching package: ‘shinyngs’
The following object is masked from ‘package:MatrixGenerics’:
colMedians
The following object is masked from ‘package:matrixStats’:
colMedians
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'object' in selecting a method for function 'na.omit': Some sample metadata names ({here was a list of samplenames}
Calls: lapply -> lapply -> FUN -> na.omit -> read_matrix
Execution halted
INFO: Cleaning up image...
Work dir:
/differentialabundance_subsetcontrasts/work/6a/8581fed49925b45df360cb03bf6bd0
Tip: you can replicate the issue by changing to the process work dir and entering the command `bash .command.run`
I found the error to be the following:
The samplesheet.sample_metadata.tsv contains all samplenames, while the normalised counts file all.normalised_counts.tsv only contains samples that are defined as contrasts.
Line 190 in the exploratory_plots.R file therefore gives an error, as the assay file has less columns as specified in sample_metadata.
I propose a solution could be to subset the samplesheets for each contrast when --differential_subset_to_contrast_samples is enabled and supply to this process.
Description of the bug
Hi, I ran the nf-core differentialabundance pipeline with nf-core/rnaseq output, 6 different contrasts defined in
contrasts.csv
and the parameter--differential_subset_to_contrast_samples
.I get the following error message (I removed the samplenames for privacy reasons):
I found the error to be the following:
The
samplesheet.sample_metadata.tsv
contains all samplenames, while the normalised counts fileall.normalised_counts.tsv
only contains samples that are defined as contrasts.Line 190 in the
exploratory_plots.R
file therefore gives an error, as the assay file has less columns as specified insample_metadata
.I propose a solution could be to subset the samplesheets for each contrast when
--differential_subset_to_contrast_samples
is enabled and supply to this process.Command used and terminal output
Relevant files
nf-params.json:
profile hilbert & offline:
System information
nextflow version: 24.04.4
version: 1.5.0
The text was updated successfully, but these errors were encountered: