mhammell-laboratory / TEtranscripts

A package for including transposable elements in differential enrichment analysis of sequencing datasets.
http://hammelllab.labsites.cshl.edu/software/#TEtranscripts
GNU General Public License v3.0
206 stars 29 forks source link

Singularity container derived from docker container misses DESeq2 #120

Closed Rhinogradentia closed 1 year ago

Rhinogradentia commented 1 year ago

HI,

I'm trying to run tetranscripts from a singularity container which was build from your docker container like it is documented in your README.rst (https://github.com/mhammell-laboratory/TEtranscripts/blob/master/README.rst#alternative-singularity-installation-for-hpc). I pulled the latest docker Image yesterday.

 singularity pull tetranscripts.sif docker://mhammelllab/tetranscripts:latest

Singularity Version:

$ singularity --version
singularity version 3.8.7-1.el7

Following Error is thrown:

[...]
In library ../bam_aligned/3.markdup.sorted.bam: 
Total annotated reads = 1190286 
Total non-uniquely mapped reads = 1428031 
Total unannotated reads = 9901076 

INFO  @ Wed, 31 Aug 2022 19:57:18: Finished processing sample files 
INFO  @ Wed, 31 Aug 2022 19:57:18: Generating counts table 
INFO  @ Wed, 31 Aug 2022 19:57:18: Performing differential analysis ...

Error in library(DESeq2) : there is no package called ‘DESeq2’
Calls: suppressPackageStartupMessages -> withCallingHandlers -> library
Execution halted
INFO  @ Wed, 31 Aug 2022 19:57:19: Done 

I call it this way:

singularity exec tetranscripts.sif TEtranscripts \
   -c ../bam_aligned/1.markdup.sorted.bam ../bam_aligned/2.markdup.sorted.bam ../bam_aligned/3.markdup.sorted.bam   \
   -t ../bam_aligned/4.markdup.sorted.bam ../bam_aligned/5.markdup.sorted.bam ../bam_aligned/6.markdup.sorted.bam  \
   --TE GRCh38_Ensembl_rmsk_TE.gtf  \
   --GTF GRCh38_GENCODE_rmsk_TE.gtf \
   --sortByPos --mode multi 

First I tried to build my own singularity container using conda. There the same error occurred despite the fact that I also installed R and Bioconductor libraries. I also tried to use DESeq instead of DESeq2, but it throws the same error.

Any help would be greatly appreciated.

Best, Nadine

olivertam commented 1 year ago

Hi,

Thank you for your interest in the software. I've contacted my colleague who worked on the Singularity section, who might have more insights. It might also be related to something that I found online.

Thank you for your patience.

Rhinogradentia commented 1 year ago

Hi,

thank you for forwarding this - I will wait. Honestly, I don't think it has something to do with your link as it is based on your docker container - I didn't change anything. Alternatively, maybe I'm missing something regarding the requirements for the environment in which the docker container can be run.

Best, Nadine

olivertam commented 1 year ago

Hi,

From @molikd:

There was a silent error and DESeq2 didn't install correctly in the container. I'm working on a fix, locfit library seems to be the issue.

Thank you for your patience.

molikd commented 1 year ago

Pull request #121 should fix this error. It was caused by the package locfit.

Rhinogradentia commented 1 year ago

Thank you a lot - I will try it. Will you update the docker container as well? Best, Nadine

olivertam commented 1 year ago

Hi,

The docker container has been updated.

Thanks.

Rhinogradentia commented 1 year ago

It worked just fine now - thank you again!