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

Command line fasta file scaffolds_final.fa does not exist! #39

Closed
austinchipps opened this issue Mar 12, 2024 · 2 comments
Closed

Command line fasta file scaffolds_final.fa does not exist! #39

austinchipps opened this issue Mar 12, 2024 · 2 comments
Assignees

Comments

@austinchipps
Copy link

Hi all,

I'm running RepeatModeler using singularity with command:

singularity run dfam-tetools-latest.sif BuildDatabase -name myDB scaffolds_final.fa

However, when I execute the command on my university's HPC, I receive the error:

Command line fasta file scaffolds_final.fa does not exist!

I should mention that when I run:

singularity run dfam-tetools-latest.sif BuildDatabase -h

I receive the help documentation, as expected. Any suggestions?

Thank you!

@asgray
Copy link
Contributor

asgray commented Mar 12, 2024

My equivalent of your command works for me:

singularity run ../../projects/TETools/tetools BuildDatabase -name myDB test_db-families.fa 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "en_US.UTF-8",
        LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Building database myDB:
  Reading test_db-families.fa...
Number of sequences (bp) added to database: 8 ( 7939 bp )

So the first thing I would check is that you have all the permissions you need on the HPC. You'll need read permissions on your input file, as well as write permissions in your working directory for the database files.

Additionally, singularity usually automatically binds the working directory into the container, but some admin groups choose to disable that feature. You can test this by entering the container and checking if your working directory is still visible:

# in your case:
singularity shell dfam-tetools-latest.sif
# then
ls -al

If it turns out that you don't have automatic binding on, you'll have to do it manually with something like this:

singularity run -B $(pwd):/opt/src dfam-tetools-latest.sif BuildDatabase -name myDB scaffolds_final.fa

You can read more about binding here if needed.

Let me know if it works !

@asgray asgray self-assigned this Mar 12, 2024
@austinchipps
Copy link
Author

Hi Anthony,

Thank you so much for your quick reply. It was definitely an issue with the automatic binding being turned off. It is fixed now and working perfectly. Thank you again for your help!

Austin

@asgray asgray pinned this issue Mar 13, 2024
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