Closed PanZiwei closed 3 years ago
Hi @PanZiwei
the latest version of thebowtie2-build
process requires that you've got Python (3?) in your PATH
as well. If you could add that that to your singularity image, it should work (I hope)...
Hi @FelixKrueger
Thank you so much for your quick response.
I checked the python version and it is 3.7.10 on the cluster. So you are suggesting that I have to add the python path into the singularity image?
Do you have an official docker image singularity? I download the image from https://hub.docker.com/r/kerstenbreuer/bismark, maybe their image didn't contain python3...
(base) [c-panz@sumner065 sif]$ python3 --version
Python 3.7.10
(base) [c-panz@sumner065 sif]$ python --version
Python 3.7.10
I'm afraid I don't have a Docker or Singularity image myself. As far as I know, Bowtie2 alignments do not need a working version of Python, but the indexing does (not sure it is mentioned as a dependency, it is probably some wrapper script...).
I guess the options would be to modify the Docker image to include Python, or ask Kersten Breuer to update theirs. Or, if you've got Python and Bowtie2 installed on your cluster, as a one-off you could clone or download Bismark (https://github.com/FelixKrueger/Bismark/releases) and then run the same command (bismark_genome_preparation --verbose /fastscratch/c-panz/nextflow/references/
) offline.
I guess after this the Singularity image you were using will work just fine.
I checked the downloaded image and found that it indeed lacks python3 package.
Maybe a naive question, how do can I set up Bowtie2 in the PATH environment after I downloaded Bismark successfully? Do you mean that the Bowtie2 has to be under the Bismark folder for usage? Thanks!
You can install Bowtie2 (http://bowtie-bio.sourceforge.net/bowtie2/index.shtml) via conda, or download and extract the zip file from: https://sourceforge.net/projects/bowtie-bio/files/bowtie2/2.4.4
Once you have done that, add that folder to the PATH
, or you can point bismark_genome_preparation to the Bowtie2 installation folder using --path_to_aligner
(or so, please see --help for details). It doesn't need to be in the same folder as Bismark itself.
Hi,
Thanks for the suggestion. I finally finished the preparation step with your suggestion.
To be more specific, I create a conda environment with bowtie2 installed and relocate the conda environment dir to run it.
Excellent, glad you got it to work!
Hi, I am trying to use bismark_genome_preparation in bismark via singularity to prepare the hg38 genome on the cluster, but I failed to launch the bowtier2 index at step3(See information below). And I checked the output, it only produced two files:
genome_mfa.CT_conversion.fa
andgenome_mfa.GA_conversion.fa
, no BS_*.fa files are produced.I checked your answers https://github.com/FelixKrueger/Bismark/issues/449#issuecomment-898968970 to another similar question, but I am sure that the memory should be enough since I asked 16 CPU with 20G.
Do you have an idea on this issue? Thanks!