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

fastqc_run_parallel.pbs returns sed error #3

Open
NJNataren opened this issue Feb 28, 2024 · 4 comments
Open

fastqc_run_parallel.pbs returns sed error #3

NJNataren opened this issue Feb 28, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@NJNataren
Copy link

Hi
I am having issues running the fastqc_run_parallel.pbs script on Gadi, the job fails when queued and returns the following error. I am working on Ubuntu 22.04.4 LTS.

sed: can't read ./Inputs/fastqc.inputs: No such file or directory

I have run the fastqc_make_input.sh successfully to generate the following within /Inputs/fastqc.inputs:
../Batch_1/ERR204943_2.fastq.gz,../Batch_1/_fastQC,./Logs/fastQC/test/Batch_1/ERR204943_2.log,1,875404
../Batch_1/ERR204943_1.fastq.gz,../Batch_1/_fastQC,./Logs/fastQC/test/Batch_1/ERR204943_1.log,1,857696

It appears that the file in question has the required persmission:

-rwxr-xr-x 1 nn8573 bt64 206 Feb 28 15:41 fastqc.inputs

Any guidance would be appreciated.

@NJNataren NJNataren reopened this Mar 7, 2024
@nandan75
Copy link

Hi @NJNataren

Are you still encountering this error? If so I will look into it from my side sometime today/tomorrow.

Nandan

@NJNataren
Copy link
Author

Hi @nandan75
Sorry, I meant update. This was solved by adding to the .pbs:

PBS_O_WORKDIR=/path/to/scripts
cd ${PBS_O_WORKDIR}

I have set everything up correctly in terms of directories, but still needed to set the PBS_O_WORKDIR to run the script, then the relative paths worked. Easy fix at least.

@nandan75
Copy link

@NJNataren

Great good to know. We will try and incorporate the fix in the future version and push it to main branch.

regards,

Nandan

@calizilla
Copy link

This is because the set -e command needs to come after the PBS directives. fastqc_run_parallel.pbs will complete without adding the PBS_O_WORKDIR command (this is covered by #PBS -l wd) IF the set -e command is in the correct place. I have created an issue to fix this for all parallel scripts #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants