This is a test version of Biostars. For the public version, visit https://www.biostars.org.
a5 Miseq pipeline error

I am using a5 Miseq pipeline but facing error while running example files of phix as well as sample files. [a5] ERROR:Unable to identify any properly paired reads [a5] ERROR: Please check that you have provided at least one library of paired-end reads with names conforming to the Illumina read pair convention.

Kindly help me out!

assembly software error next-gen

What is the command-line you are running?

perl /home/ambrina/a5_miseq_linux_20160825/bin/a5_pipeline.pl /home/ambrina/a5_miseq_linux_20160825/example/phiX_p1.fastq /home/ambrina/a5_miseq_linux_20160825/example/phiX_p2.fastq microbeslinux

Don't add comments as answers, add them as comments to the appropriate question / answer / comment. Could you fix this?

And what is the output of:

awk 'NR%4==1' /home/ambrina/a5_miseq_linux_20160825/example/phiX_p1.fastq | head

And

awk 'NR%4==1' /home/ambrina/a5_miseq_linux_20160825/example/phiX_p2.fastq | head
microbeslinux@microbeslinux:~$ perl /home/ambrina/a5_miseq_linux_20160825/bin/a5_pipeline.pl /home/ambrina/a5_miseq_linux_20160825/example/phiX_p1.fastq /home/ambrina/a5_miseq_linux_20160825/example/phiX_p2.fastq microbeslinux
[a5] Found the following libraries:
     raw1:
      id=raw1
      p1=/home/ambrina/a5_miseq_linux_20160825/example/phiX_p1.fastq
      p2=/home/ambrina/a5_miseq_linux_20160825/example/phiX_p2.fastq
[a5] Found 1 libraries
[a5] Starting pipeline at step 1
[a5] Cleaning reads with SGA
[a5] Cleaning reads with SGA
cleaning each PE lib

p1 is /home/ambrina/a5_miseq_linux_20160825/example/phiX_p1.fastq
Cleaning reads

[a5] java -Xmx512m -jar '/home/ambrina/a5_miseq_linux_20160825/bin'/trimmomatic.jar SE -threads 4 -phred64  microbeslinux.s1/phiX_p1.fastq.both.fastq microbeslinux.s1/phiX_p1.fastq.trim.fastq ILLUMINACLIP:/home/ambrina/a5_miseq_linux_20160825/bin/../adapter.fasta:2:30:10 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36
TrimmomaticSE: Started with arguments: -threads 4 -phred64 microbeslinux.s1/phiX_p1.fastq.both.fastq microbeslinux.s1/phiX_p1.fastq.trim.fastq ILLUMINACLIP:/home/ambrina/a5_miseq_linux_20160825/bin/../adapter.fasta:2:30:10 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36
Using PrefixPair: 'TACACTCTTTCCCTACACGACGCTCTTCCGATCT' and 'GTGACTGGAGTTCAGACGTGTGCTCTTCCGATCT'
Using PrefixPair: 'TACACTCTTTCCCTACACGACGCTCTTCCGATCT' and 'TCTCGGCATTCCTGCTGAACCGCTCTTCCGATCT'
Using PrefixPair: 'AGATGTGTATAAGAGACAG' and 'AGATGTGTATAAGAGACAG'
Using Long Clipping Sequence: 'AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTA'
Using Long Clipping Sequence: 'CTGTCTCTTATACACATCTCCGAGCCCACGAGAC'
Using Long Clipping Sequence: 'CTGTCTCTTATACACATCTGACGCTGCCGACGA'
Using Long Clipping Sequence: 'TCGTCGGCAGCGTCAGATGTGTATAAGAGACAG'
Using Long Clipping Sequence: 'GCCTCCCTCGCGCCATCAGAGATGTGTATAAGAGACAG'
Using Long Clipping Sequence: 'GCCTTGCCAGCCCGCTCAGAGATGTGTATAAGAGACAG'
Using Long Clipping Sequence: 'TACACTCTTTCCCTACACGACGCTCTTCCGATCT'
Using Long Clipping Sequence: 'AGATCGGAAGAGCGGTTCAGCAGGAATGCCGAGA'
Using Long Clipping Sequence: 'GTGACTGGAGTTCAGACGTGTGCTCTTCCGATCT'
Using Long Clipping Sequence: 'TTTTTTTTTTAATGATACGGCGACCACCGAGATCTACAC'
Using Long Clipping Sequence: 'CTGTCTCTTATACACATCTCTGATGGCGCGAGGGAGGC'
Using Long Clipping Sequence: 'CTGTCTCTTATACACATCTCTGAGCGGGCTGGCAAGGC'
Using Long Clipping Sequence: 'AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC'
Using Long Clipping Sequence: 'TTTTTTTTTTCAAGCAGAAGACGGCATACGA'
Using Long Clipping Sequence: 'GTCTCGTGGGCTCGGAGATGTGTATAAGAGACAG'
Using Long Clipping Sequence: 'TCTCGGCATTCCTGCTGAACCGCTCTTCCGATCT'
ILLUMINACLIP: Using 3 prefix pairs, 16 forward/reverse sequences, 0 forward only sequences, 0 reverse only sequences
Input Reads: 6400 Surviving: 6371 (99.55%) Dropped: 29 (0.45%)
TrimmomaticSE: Completed successfully
[a5] '/home/ambrina/a5_miseq_linux_20160825/bin'/sga preprocess -q 25 -f 20 -m 35  --pe-mode=0 --phred64  microbeslinux.s1/phiX_p1.fastq.trim.fastq > microbeslinux.s1/phiX_p1.fastq.both.pp 2> /dev/null
[a5] sga index -d 494097 -t 4 microbeslinux.s1/microbeslinux.pp.fastq > microbeslinux.s1/index.out 2> microbeslinux.s1/index.err
[a5] '/home/ambrina/a5_miseq_linux_20160825/bin'/sga correct -t 4 -p microbeslinux.pp -o microbeslinux.s1/phiX_p1.fastq.both.pp.ec.fastq microbeslinux.s1/phiX_p1.fastq.both.pp > microbeslinux.s1/raw1.correct.out
sh: 1: /home/ambrina/a5_miseq_linux_20160825/bin/sga: Permission denied
readline() on closed filehandle TDPIPE at /home/ambrina/a5_miseq_linux_20160825/bin/a5_pipeline.pl line 503.
Running cat microbeslinux.s1/phiX_p1.fastq.both.repair.fastq >> microbeslinux.s1/microbeslinux.ec.fastq
Done merging libraries
[a5] ERROR: Unable to identify any properly paired reads
[a5] ERROR: Please check that you have provided at least one library of paired-end reads with names conforming to the Illumina read pair convention.

I asked for the output of the commands:

awk 'NR%4==1' /home/ambrina/a5_miseq_linux_20160825/example/phiX_p1.fastq | head

And

awk 'NR%4==1' /home/ambrina/a5_miseq_linux_20160825/example/phiX_p2.fastq | head

But anyway, the problem is with the SGA binary from A5_MiSeq:

sh: 1: /home/ambrina/a5_miseq_linux_20160825/bin/sga: Permission denied

If you are luck it is just a matter of setting sga execute permissions, but you may even have to recompile it.

yes it works. but now I am having following error

[a5] Found only 3168 read pairs in library
[a5] Using 3168 read pairs for mapping
[a5] java -jar -Xmx512m '/home/ambrina/a5_miseq_linux_20160825/bin'/GetInsertSize.jar test.raw1.sub.pe.sam
[a5] Printing preprocessed library file to test.preproc.libs
[a5] Processed libraries:
     raw1:
      id=raw1
      p1=test.s1/phiX_p1.fastq.split.r1.fq
      p2=test.s1/phiX_p1.fastq.split.r2.fq
      rc=0
      ins=185
      err=0.551
      nlibs=1
      libfile=test.library_1.txt
[a5_s3] Scaffolding contigs from test.contigs.fasta with SSPACE
[a5_s3] Scaffolding contigs from test.contigs.fasta with SSPACE
[a5] Total contig length 5469
[a5] raw1: Insert 185, coverage 49.82, expected links 107
[a5] SSPACE -m 16 -n 10 -k 2 -a 0.4 -o 1 -x 0 -l test.library_1.txt -s test.contigs.fasta -b test.raw1 -d test.s3 > test.s3/test.raw1.out

Bowtie-build error; -1 at /home/ambrina/a5_miseq_linux_20160825/bin/SSPACE/bin/mapWithBowtie.pl line 43.

Bowtie-build error; -1 at /home/ambrina/a5_miseq_linux_20160825/bin/SSPACE/bin/mapWithBowtie.pl line 43.
[a5_s4] Detecting and breaking misassemblies in test.crude.scaffolds.fasta with A5QC
Illegal division by zero at /home/ambrina/a5_miseq_linux_20160825/bin/a5_pipeline.pl line 1556, <READFILE> line 25344.

Hi! I also have almost the same errors as ambrinaakbar. I'm trying to do the test so I can see that everything is ok. But I encounter these errors.

(qiime2-2020.2) root@Enrique:/mnt/c/Users/endih/Desktop/prueba# ./../a5_miseq_linux_20160825/bin/a5_pipeline.pl ./../a5_miseq_linux_20160825/example/phiX_p1.fastq ./../a5_miseq_linux_20160825/example/phiX_p2.fastq  Test_Results
[a5] Found the following libraries:
     raw1:
      id=raw1
      p1=./../a5_miseq_linux_20160825/example/phiX_p1.fastq
      p2=./../a5_miseq_linux_20160825/example/phiX_p2.fastq
[a5] Found 1 libraries
[a5] Starting pipeline at step 1
[a5] Cleaning reads with SGA
[a5] Cleaning reads with SGA
cleaning each PE lib

p1 is ./../a5_miseq_linux_20160825/example/phiX_p1.fastq
Cleaning reads

[a5] java -Xmx512m -jar '/mnt/c/Users/endih/Desktop/a5_miseq_linux_20160825/bin'/trimmomatic.jar SE -threads 4 -phred64  Test_Results.s1/phiX_p1.fastq.both.fastq Test_Results.s1/phiX_p1.fastq.trim.fastq ILLUMINACLIP:/mnt/c/Users/endih/Desktop/a5_miseq_linux_20160825/bin/../adapter.fasta:2:30:10
LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36
TrimmomaticSE: Started with arguments: -threads 4 -phred64 Test_Results.s1/phiX_p1.fastq.both.fastq Test_Results.s1/phiX_p1.fastq.trim.fastq ILLUMINACLIP:/mnt/c/Users/endih/Desktop/a5_miseq_linux_20160825/bin/../adapter.fasta:2:30:10 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36
Using PrefixPair: 'TACACTCTTTCCCTACACGACGCTCTTCCGATCT' and 'GTGACTGGAGTTCAGACGTGTGCTCTTCCGATCT'
Using PrefixPair: 'TACACTCTTTCCCTACACGACGCTCTTCCGATCT' and 'TCTCGGCATTCCTGCTGAACCGCTCTTCCGATCT'
Using PrefixPair: 'AGATGTGTATAAGAGACAG' and 'AGATGTGTATAAGAGACAG'
Using Long Clipping Sequence: 'AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTA'
Using Long Clipping Sequence: 'CTGTCTCTTATACACATCTCCGAGCCCACGAGAC'
Using Long Clipping Sequence: 'CTGTCTCTTATACACATCTGACGCTGCCGACGA'
Using Long Clipping Sequence: 'TCGTCGGCAGCGTCAGATGTGTATAAGAGACAG'
Using Long Clipping Sequence: 'GCCTCCCTCGCGCCATCAGAGATGTGTATAAGAGACAG'
Using Long Clipping Sequence: 'GCCTTGCCAGCCCGCTCAGAGATGTGTATAAGAGACAG'
Using Long Clipping Sequence: 'TACACTCTTTCCCTACACGACGCTCTTCCGATCT'
Using Long Clipping Sequence: 'AGATCGGAAGAGCGGTTCAGCAGGAATGCCGAGA'
Using Long Clipping Sequence: 'GTGACTGGAGTTCAGACGTGTGCTCTTCCGATCT'
Using Long Clipping Sequence: 'TTTTTTTTTTAATGATACGGCGACCACCGAGATCTACAC'
Using Long Clipping Sequence: 'CTGTCTCTTATACACATCTCTGATGGCGCGAGGGAGGC'
Using Long Clipping Sequence: 'CTGTCTCTTATACACATCTCTGAGCGGGCTGGCAAGGC'
Using Long Clipping Sequence: 'AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC'
Using Long Clipping Sequence: 'TTTTTTTTTTCAAGCAGAAGACGGCATACGA'
Using Long Clipping Sequence: 'GTCTCGTGGGCTCGGAGATGTGTATAAGAGACAG'
Using Long Clipping Sequence: 'TCTCGGCATTCCTGCTGAACCGCTCTTCCGATCT'
ILLUMINACLIP: Using 3 prefix pairs, 16 forward/reverse sequences, 0 forward only sequences, 0 reverse only sequences
Input Reads: 6400 Surviving: 6371 (99.55%) Dropped: 29 (0.45%)
TrimmomaticSE: Completed successfully
[a5] '/mnt/c/Users/endih/Desktop/a5_miseq_linux_20160825/bin'/sga preprocess -q 25 -f 20 -m 35  --pe-mode=0 --phred64  Test_Results.s1/phiX_p1.fastq.trim.fastq > Test_Results.s1/phiX_p1.fastq.both.pp 2> /dev/null
[a5] sga index -d 1466142 -t 4 Test_Results.s1/Test_Results.pp.fastq > Test_Results.s1/index.out 2> Test_Results.s1/index.err
[a5] sga index -d 733071 -t 4 Test_Results.s1/Test_Results.pp.fastq > Test_Results.s1/index.out 2> Test_Results.s1/index.err
[a5] '/mnt/c/Users/endih/Desktop/a5_miseq_linux_20160825/bin'/sga correct -t 4 -p Test_Results.pp -o Test_Results.s1/phiX_p1.fastq.both.pp.ec.fastq
Test_Results.s1/phiX_p1.fastq.both.pp > Test_Results.s1/raw1.correct.out

> Error: could not open Test_Results.pp.bwt for read

readline() on closed filehandle TDPIPE at ./../a5_miseq_linux_20160825/bin/a5_pipeline.pl line 503.
Running cat Test_Results.s1/phiX_p1.fastq.both.repair.fastq >> Test_Results.s1/Test_Results.ec.fastq
Done merging libraries

> [a5] ERROR: Unable to identify any properly paired reads

> [a5] ERROR: Please check that you have provided at least one library of paired-end reads with names conforming to the Illumina read pair convent

Could someone help me, please?

I have the same problem:

Error: could not open Test.pp.bwt for read after TrimmomaticSE: Completed successfully and 
[a5] ERROR: Unable to identify any properly paired reads
[a5] ERROR: Please check that you have provided at least one library of paired-end reads with names conforming to the Illumina read pair convention.

Could you please help. Thanks.

1 answer

This thread keeps being revived, so I will provide some recommendations as an answer, even though I am not really answering the actual (repeated) question.

1) I have used A5_MiSeq some years ago and, at the time, it provided the best assemblies for most samples. I also like its rich output, with several summary statistics about the assembly. However, its development stopped, and SPAdes continued improvements means current stand-alone SPAdes (version 3.14) produces better assemblies than A5_MiSeq. In addition, Shovill does an even better job than stand-alone SPAdes, producing the best assemblies for isolates, and also being light on resources and very fast.

So recommendation #1 is to use Shovill (for isolates) or SPAdes instead of A5_MiSeq.

2) A5_MiSeq is available at Bioconda, so, if you really need (or want) to use A5_MiSeq, install with conda.

3) If you really need (or want) to use A5_MiSeq, be sure to carefully read the messages and logs, and try to troubleshoot from there - e.g., try to run directly the command that failed in the pipeline.

Log in to answer this question.