CAMISIM icon indicating copy to clipboard operation
CAMISIM copied to clipboard

[MetagenomeSimulationPipeline] Empty bam file list in line 106

Open Louis-MG opened this issue 2 years ago • 6 comments

Hello ! When trying to run the test mini_config.ini, i encountered this error (already mentioned but there was no follow-up):

/mnt/software/bioinfo/samtools-1.9/samtools: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
/mnt/software/bioinfo/samtools-1.9/samtools: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
/mnt/software/bioinfo/samtools-1.9/samtools: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
/mnt/software/bioinfo/samtools-1.9/samtools: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
/mnt/software/bioinfo/samtools-1.9/samtools: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
/mnt/software/bioinfo/samtools-1.9/samtools: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
2023-01-06 15:28:55 INFO: [MetagenomeSimulationPipeline] Generate gold standard assembly
2023-01-06 15:28:55 INFO: [MetadataReader 16932406861] Reading file: '/mnt/projects_tn04/KMER_analysis/tools/CAMISIM/out/internal/genome_locations.tsv'
2023-01-06 15:28:55 ERROR: [MetagenomeSimulationPipeline] Empty bam file list in line 106
2023-01-06 15:28:55 INFO: [MetagenomeSimulationPipeline] Metagenome simulation aborted

I used the default config file. and the following conda environment :

name: camisim
channels:
- default
- conda-forge
- bioconda
dependencies:
  - python=3.8.*
  - perl
  - ncurses
  - perl-libxml-perl
  - pip
  - pip:
    - numpy
    - ete3
    - biom-format
    - biopython
    - numpy
    - matplotlib
    - joblib
    - scikit-learn

Seeing there were problems about ncurses in conda, i tried the conda-forge version as well, and the R channel too, to no avail. I then tried to link the samtools-1.9 of my lab's server, did not work either, still can't find ncurses. That might be an issue with conda more than CAMISIM, i'll retry if the admin can install ncurses with apt or if "ncursing" enough in front of the screen finally makes it work.

Louis-MG avatar Jan 06 '23 20:01 Louis-MG

Hey, yeah this error keeps popping up and unfortunately it is hard for me to reproduce/change something on the CAMISIM end. In this case it might be due to the fact that you use ncurses in your environment but samtools requires ncursesw, so you could try changing your environment accordingly? I've tried the "ncursing" in front of the screen and unfortunately it did not work for me ;)

AlphaSquad avatar Jan 06 '23 21:01 AlphaSquad

We installed libncursesw5-dev, still isn't working (with samtools 1.3 and 1.9). Same error message. Samtools does not work as a standalone, the problem is definitely on this side.

Louis-MG avatar Jan 09 '23 21:01 Louis-MG

That is unfortunate. If you are able to get some version of samtools to run, you could try to link that version to CAMISIM using the samtools option. CAMISIM has not been tested on these other versions though, so if some command line arguments changed then it becomes difficult

AlphaSquad avatar Jan 10 '23 09:01 AlphaSquad

We found a way to make it work, installing ncorses before samtools in the conda environment. The order must mess with the versions. Or soemthing else, anyway it works. Final conda :

name: camisim
channels:
- conda-forge
- bioconda
- default
dependencies:
  - python=3.8.*
  - perl
  - ncurses
  - perl-libxml-perl
  - samtools
  - pip
  - pip:
    - numpy
    - ete3
    - biom-format
    - biopython
    - numpy
    - matplotlib
    - joblib
    - scikit-learn

Louis-MG avatar Jan 11 '23 19:01 Louis-MG

We found a way to make it work, installing ncorses before samtools in the conda environment. The order must mess with the versions. Or soemthing else, anyway it works. Final conda :

name: camisim
channels:
- conda-forge
- bioconda
- default
dependencies:
  - python=3.8.*
  - perl
  - ncurses
  - perl-libxml-perl
  - samtools
  - pip
  - pip:
    - numpy
    - ete3
    - biom-format
    - biopython
    - numpy
    - matplotlib
    - joblib
    - scikit-learn

Hi! I am experiencing the same problem. Could you tell me how you managed to install ncurses? I am using Ubuntu 23.10 and I can't make it work

TakacsBertalan avatar Apr 26 '24 08:04 TakacsBertalan