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

Singularity error: cannot locate file #1415

Open
FaithBoyer opened this issue May 15, 2024 · 4 comments
Open

Singularity error: cannot locate file #1415

FaithBoyer opened this issue May 15, 2024 · 4 comments

Comments

@FaithBoyer
Copy link

I am attempting to run Trinity 2.14.0 through Singularity. This is my code:

#!/bin/bash

export TRINITY_HOME=/scratch/aubfjb001/DeNovo/Trinity
FQ1="/scratch/aubfjb001/DeNovo/Trinity/C12_0_1_fwd_paired.fastq"
FQ2="/scratch/aubfjb001/DeNovo/Trinity/C12_0_1_rvs_paired.fastq"

         singularity exec -W /scratch/aubfjb001/DeNovo/Trinity trinityrnaseq.v2.14.0.simg Trinity \
          --seqType fq \
          --left "$FQ1"  \
          --right "$FQ2" \
          --max_memory 1G --CPU 4 \

I am confident about the locations of my files and directories, but I am getting this error:

Error, cannot locate file: /scratch/aubfjb001/DeNovo/TrinityDocker/C12_0_1_fwd_paired.fastq at /usr/local/bin/Trinity line 2848.
main::create_full_path(ARRAY(0x55d0091fa3d8), 1) called at /usr/local/bin/Trinity line 1319

I think the problem is that trinity is looking in /usr/local/bin, as that is where singularity default unpacks, but I need it to look in my current working directory.

Any insights on how to fix this issue are much appreciated.

@brianjohnhaas
Copy link
Member

brianjohnhaas commented May 15, 2024 via email

@FaithBoyer
Copy link
Author

Hi, Try explicitly binding the directory like so: singularity exec -B /scratch/aubfjb001/DeNovo/Trinity followed by the rest. I haven't used -W before You could include singularity exec -e -H /tmp -B pwd where pwd is surrounded by backticks and see if that helps

On Wed, May 15, 2024 at 3:07 PM FaithBoyer @.> wrote: I am attempting to run Trinity 2.14.0 through Singularity. This is my code: #!/bin/bash export TRINITY_HOME=/scratch/aubfjb001/DeNovo/Trinity FQ1="/scratch/aubfjb001/DeNovo/Trinity/C12_0_1_fwd_paired.fastq" FQ2="/scratch/aubfjb001/DeNovo/Trinity/C12_0_1_rvs_paired.fastq" singularity exec -W /scratch/aubfjb001/DeNovo/Trinity trinityrnaseq.v2.14.0.simg Trinity \ --seqType fq \ --left "$FQ1" \ --right "$FQ2" \ --max_memory 1G --CPU 4 \ I am confident about the locations of my files and directories, but I am getting this error: Error, cannot locate file: /scratch/aubfjb001/DeNovo/TrinityDocker/C12_0_1_fwd_paired.fastq at /usr/local/bin/Trinity line 2848. main::create_full_path(ARRAY(0x55d0091fa3d8), 1) called at /usr/local/bin/Trinity line 1319 I think the problem is that trinity is looking in /usr/local/bin, as that is where singularity default unpacks, but I need it to look in my current working directory. Any insights on how to fix this issue are much appreciated. — Reply to this email directly, view it on GitHub <#1415>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRKX7WDY3NSD7TMRDHCBTZCOW5ZAVCNFSM6AAAAABHYX3QHOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4TQNRUGM4TQMQ . You are receiving this because you are subscribed to this thread.Message ID: @.>
-- -- Brian J. Haas The Broad Institute http://broadinstitute.org/~bhaas http://broad.mit.edu/~bhaas

Thank you for your feedback. I tried both of these options, but am getting the same error. Could it be anything else? I am running the job on an HPC, so it may not be a problem with Trinity, but rather my permissions on my side.

@brianjohnhaas
Copy link
Member

brianjohnhaas commented May 16, 2024 via email

@FaithBoyer
Copy link
Author

This issue has been resolved through the HPC side of things. Thank you for your help!

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

2 participants