Skip to content
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

[MetagenomeSimulationPipeline] Empty bam file list in line 106 #150

Open
Louis-MG opened this issue Jan 6, 2023 · 5 comments
Open

[MetagenomeSimulationPipeline] Empty bam file list in line 106 #150

Louis-MG opened this issue Jan 6, 2023 · 5 comments

Comments

@Louis-MG
Copy link

Louis-MG commented Jan 6, 2023

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.

@AlphaSquad
Copy link
Collaborator

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 ;)

@Louis-MG
Copy link
Author

Louis-MG commented Jan 9, 2023

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.

@AlphaSquad
Copy link
Collaborator

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

@Louis-MG
Copy link
Author

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

@TakacsBertalan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants