Hi,
I'm trying to run ABySS for different kmers using a for loop with PE, SE and MP reads. The MP R1 and R2 were trimmer using NxTrim which give me only one output file with all the MPs together. Below is the code that I'm running and the error message I'm getting. I did look into 'abyss-pe help' but still don't understand what the problem is. This for loop has worked in the past many times.
CODE:
for k in 61 63 65 67 69; do
mkdir trimk_pe_mp$k; \
abyss-pe -C trimk_pe_mp$k lib='pe200' mp='mp1' np=8 name=gm5_abyss_pe_mp$k \
k=$k n=5 \
pe200='gm5_k21corr_trim.Phred2_1P.fastq gm5_k21corr_trim.Phred2_2P.fastq' \
mp1='gm5_mpreads.mp.fastq' \
se='gm5_k21corr_trim.Phred2_1U.fastq /gm5_k21corr_trim.Phred2_2U.fastq'
done
ERROR MESSAGE:
make: Entering directory `/fungi/taruna/geosmithia/assembly/gm5/abyss/trimk_pe_mp61'
abyss-pe: missing parameter `k`
Try `abyss-pe help` for more information.
make: *** [error] Error 1
make: Leaving directory `/fungi/taruna/geosmithia/assembly/gm5/abyss/trimk_pe_mp61'
Please advice. Thank you!
-Taruna
Hi Shaun,
Thank you for checking! Unfortunately, I'm still having problems so I posted the code/script on github. Below is the link. Thank you for your help!
Best,
Taruna
Hi, Taruna. Your script works for me. Can you try running the following two command in an empty directory and report the result? Which version of ABySS are you using?
Cheers,
Shaun
It works! Executing the sh script to run ABySS did the trick. Thank you so much Shaun! Do you know what the issue was? I'm just wondering what I was doing wrong this whole time. Thank you for your help!
-Taruna
Which shell are you using at the interactive command line: bash, zsh, csh?
We are using bash.
I really don't know what went wrong then. Sorry. I'm glad that you got it working, one way or another.
I'm glad it's working as well! Thank you for your help, Shaun!