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

Cannot add a path to the input fastq #64

Open
qifasong opened this issue Sep 6, 2024 · 5 comments
Open

Cannot add a path to the input fastq #64

qifasong opened this issue Sep 6, 2024 · 5 comments

Comments

@qifasong
Copy link

qifasong commented Sep 6, 2024

I am sorry to disturb you. I have successfully install mitofinder-1.4.2. When I add an exact path before the input fastq file in the command, I get an erro saying the file not existing.

mitofinder_v1.4.2.sif -j mywork -1 ${datapath}/mt1.fq -2 ${datapath}/mt2.fq -r ${refpath}/NC_012920.1.gb -a ${respath}/out.fasta -o 2

However, the file exists. I can testify it by add [ -f $filename ] or cat its content directly by command line.

Many thanks
Qifa Song

@RemiAllio
Copy link
Owner

Hi,

Can you try running :
singularity run -B ${path_to_your_files_directory}:${path_to_your_files_directory} mitofinder_v1.4.2.sif -j mywork -1 ${datapath}/mt1.fq -2 ${datapath}/mt2.fq -r ${refpath}/NC_012920.1.gb -a ${respath}/out.fasta -o 2

Let me know if it helps!

Best,
Rémi

@qifasong
Copy link
Author

qifasong commented Sep 6, 2024

Sincerely thank you. I try the following commands:
singularity run -B ~/Downloads/singularity-ce-3.10.1/builddir/mitofinder_v1.4.2.sif -j mywork -1 ${datapath}/mt1.fq -2 ${datapath}/mt2.fq -r ${refpath}/NC_012920.1.gb -a ${respath}/out.fasta -o 2

I get this error:

Error for command "run": unknown shorthand flag: 'j' in -j

@RemiAllio
Copy link
Owner

Hi,

this part of the command I sent you is missing ${path_to_your_files_directory}:${path_to_your_files_directory}

Can you try :
singularity run -B ${datapath}:${datapath},${respath}:${respath},${refpath}:${refpath} ~/Downloads/singularity-ce-3.10.1/builddir/mitofinder_v1.4.2.sif -j mywork -1 ${datapath}/mt1.fq -2 ${datapath}/mt2.fq -r ${refpath}/NC_012920.1.gb -a ${respath}/out.fasta -o 2

You can also check this singularity tutorial to see how to bind you path when you are using a singularity image.

Sorry for the inconvenience,
Best,
Rémi

@qifasong
Copy link
Author

qifasong commented Sep 6, 2024

Dear Rémi,
Your instructions work well. My script can find the paths now. Can I specify a different path for
each sample ahead?

Thanks
Qifa song

@RemiAllio
Copy link
Owner

Hi,

As long as your ${datapath} ${respath} ${refpath} variables are updated for each sample, everything should be okay.

Best,
Rémi

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