Dear all,
I am new to using bowtie2 and my goal is to do an alignment of a fasta file against the greengenes alignment data base (gg_13_8_99.refalign). I have indexed my db with the bowtie2-build gg_13_8_99.refalign greengenes_reference but when i go though the alignment process (bowtie2 -f -x greengenes_reference -U 035.good.fasta -S test3.sam) there is no alignment report, just the message :
" readU: Success (ERR): bowtie2-align exited with value 1 "
Also, the sam file doesn't seem to look right as you see here:
and below there is a screenshot of how my fasta file is:
Sorry if this is a trivial question, but i just started and i am trying to figure things out, thanks in advance!
1) why a screenshot when you can copy+paste the text ? save the planet. 2) I don't see any problem in the sam. You're showing us a SAM header. 3) as far as U can see bowtie wants fastq http://bowtie-bio.sourceforge.net/bowtie2/manual.shtml , your input is a fasta file.
1) I am sorry i am just in a panic state, 2) There are only the headers nothing more and when i go from SAM -> BAM -> fasta the fasta is empty 3) You can use a fasta also as an input that is why i used the -f option also i was provided with a fasta not a fastq
Edit: i tried converting the fasta i was provided to a fastq with "#" as quality scores but it presented me with the same result
3) You can use a fasta also as an input that is why i used the -f option also i was provided with a fasta not a fastq
I see. ok.
Is there a special reason that you want to use bowtie instead of blast?
Yeah, it is for training purposes for a small project, that the first part was to use mothur for the alignment and for classification and the second part to use bowtie2 for the alignment
Your index may be corrupt. Have you checked to make sure it is ok? Check the log for the indexing job.
I just downloaded it from the https://mothur.org/wiki/greengenes-formatted_databases/ site (greengenes reference alignment) but i could not find how to access the logfiles to check it
I was asking about
bowtie2-build
step where you built the indexes from the fasta reference. Did that step complete without errors?Oh i am sorry, as far as i know yes. This was the output of the bowtie2-build command:
That looks ok. Can you put a couple of test sequences in a fasta file and see if you are able to align those? If that works then the issue may be with your input query fasta. Did you move that file from a windows/macOS machine to Linux?
I just run the example that is provided inside the bowtie2 package with the lambda virus and it seems to work providing the right results. I was sent that file via email guessing from a Windows OS and i have both tried to use the original fasta file and a treated one with mothur ( I just screened it for maxlength etc) with the same results.
Also using the same indexes from the bowtie package, it seems that the alignment works. S0, maybe it is the indexes that cause the problem?
Can you do
dos2unix your.fa
and see if that fixes the line endings and makes the file work with your indexes. Otherwise you may want to try and recreate the index files.That did not seem to work after the format change. I have recreated them many times but still gives the same result, is there a chance that the orignal file is not compatible?