Entering edit mode
8.3 years ago
Rox
★
1.4k
Hi everyone !
I have some trouble with using bowtie2 through tophat2.
I'm trying to align a bunch of reads against my assembly :
Loutre:~$ tophat2 --num-threads 25 --max-intron-length 50000 -o \
> /media/loutre/SUZUKII/annotation/tophat_out \
> /media/loutre/SUZUKII/annotation/indexes/cleaned_canu3_suzukii \
> '/media/loutre/SUZUKII/annotation/evidences/suz_ant.R1.fastq.gz'\
> ,'/media/loutre/SUZUKII/annotation/evidences/suz_ovi.R1.fastq.gz'\
> ,'/media/loutre/SUZUKII/annotation/evidences/suz_pro.R1.fastq.gz'\
> ,'/media/loutre/SUZUKII/annotation/evidences/suz_tar.R1.fastq.gz'\
> '/media/loutre/SUZUKII/annotation/evidences/suz_ant.R2.fastq.gz'\
> ,'/media/loutre/SUZUKII/annotation/evidences/suz_ovi.R2.fastq.gz'\
> ,'/media/loutre/SUZUKII/annotation/evidences/suz_pro.R2.fastq.gz'\
> ,'/media/loutre/SUZUKII/annotation/evidences/suz_tar.R2.fastq.gz'
This command seem to work at first, but after approximatively 2hours, it throws an bowtie2 error message :
[2016-08-16 13:31:56] Beginning TopHat run (v2.0.9)
[2016-08-16 13:31:56] Checking for Bowtie
Bowtie version: 2.1.0.0
[2016-08-16 13:31:56] Checking for Samtools
Samtools version: 0.1.19.0
[2016-08-16 13:31:56] Checking for Bowtie index files (genome)..
[2016-08-16 13:31:56] Checking for reference FASTA file
[2016-08-16 13:31:56] Generating SAM header for /media/loutre/SUZUKII/annotation/indexes/cleaned_canu3_suzukii
format: fastq
quality scale: phred33 (default)
[2016-08-16 13:31:56] Preparing reads
left reads: min. length=100, max. length=100, 180811539 kept reads (47437 discarded)
right reads: min. length=100, max. length=100, 180039152 kept reads (819824 discarded)
[2016-08-16 15:05:07] Mapping left_kept_reads to genome cleaned_canu3_suzukii with Bowtie2
[FAILED]
Error running bowtie:
Error reading RefRecord 'first' flag
Error: Encountered internal Bowtie 2 exception (#1)
Command: /usr/bin/bowtie2-align -q -k 20 -D 15 -R 2 -N 0 -L 20 -i S,1,1.25 --gbar 4 --mp 6,2 --np 1 --rdg 5,3 --rfg 5,3 --score-min C,-14,0 -p 25 --sam-no-hd -x /media/loutre/SUZUKII/annotation/indexes/cleaned_canu3_suzukii -
Am I doing something wrong ?
Thanks for helping,
Cheers,
Roxane
And this error also happen when I use bowtie2 only, without calling tophat2, here my command :
Here the same error I get :
An other hint, when I tried with an other index file (canu3_suz), it worked. Some clarifications : I manually cleaned canu3_suz (I throw away some contigs that was redundant) to obtain cleaned_canu3_suzukii. Bowtie2 work well on canu3_suz, but not on the cleaned_canu3_suzukii... Could that come from the way I am deleting contigs ?
I'm determining which contigs to throw with an home made bash script. At the end, I have a list of all contigs to delete, and a python script remove theses contigs :
Here the python script that remove the contig for me :
Do you see something wrong ?
Could you please try running bowtie2-inspect -s -v <refindex> ? . Maybe something pops up.
Here what I tried, everything seem to look fine in bowtie2_inspect.log, in detect everything as contig
And the output is exactly the same (except lengths) for the non-cleaned file which work with bowtie2
Why are you using versions of TopHat/Bowtie2/Samtools that are several years old? With TopHat suite it is always best to upgrade to the latest since many of these types of errors have been addressed over the years.
I've just downloaded them using apt-get install a few weeks ago, so for me I was downloading the latest version, and not a several years ago version.
The versions based on the log above are several years old. apt-get is not the foolproof way to get the latest versions. I suggest that you download the executables directly from TopHat/Bowtie2 sites. Samtools you will need to compile yourself.
TopHat (https://ccb.jhu.edu/software/tophat/downloads/tophat-2.1.1.Linux_x86_64.tar.gz )
Bowtie2 (https://sourceforge.net/projects/bowtie-bio/files/bowtie2/2.2.9/bowtie2-2.2.9-linux-x86_64.zip/download )
Samtools (http://www.htslib.org/download/ )
Thank you, it actually worked when I upgraded everything, thanks for the suggestion !