Bowtie2 no build the index
0
0
Entering edit mode
2.8 years ago

Hello, this is my first time using R to create an index with bowtie2. I'm using R on windows, I've installed Rbowtie2 and Rsamtools with "BiocManager::install()". But when I'm trying to index the genome "Saccharomyces_cerevisiae.R64-1-1.dna.toplevel.fa" in the folder "Chromosomes" I'm getting this: enter image description here

Can you help me or give me some advice? Thank you.

bowtie2 • 2.8k views
ADD COMMENT
0
Entering edit mode

Did you read the manual to see exactly how the command bowtie2_build should be used?

ADD REPLY
0
Entering edit mode

Yes, I even tried the following example and got the same thingenter image description hereenter image description here

ADD REPLY
0
Entering edit mode

do you have access to a cluster, or a linux box? an example command would be:

# what ever the latest version is - not this one bwa-mem2-2.0pre2_x64-linux 

/PATH/TO/bwa-mem2-2.0pre2_x64-linux/bwa-mem2 index  NAME_OF_FILE.fasta

it is so easy, you dont need R to run it

ADD REPLY
0
Entering edit mode

Moving this to a comment since it is not answering the question in the original post.

ADD REPLY
0
Entering edit mode

What is the issue exactly ? To have the function returns NULL is not an a problem on its own. Have you looked in the folder Chromosomes/ if the bowtie2 index is built ? The files should be named yeast.x.bt2 or yeast.x.bt2l (where x is an integer).

ADD REPLY
0
Entering edit mode

I've searched the folder but the index is not built, only the fasta file is there.

ADD REPLY
0
Entering edit mode

Ok, have you tried to add the option --verbose option instead of --quiet and see if you can get more details about what went wrong ?

ADD REPLY
0
Entering edit mode

Can you explain me how to do it? Thanks

ADD REPLY
0
Entering edit mode

I don't know how to explain other than that: replace the option (= the text you write in the console when writing the bowtie2_build command) "--quiet" by "--verbose".

ADD REPLY
0
Entering edit mode

I've tried, but I've got the same. enter image description here

ADD REPLY
0
Entering edit mode

Do you have python installed ? On Windows, it is said that you need both perl and python installed to make bowtie2-build work:

The bowtie2 wrapper script is a Perl script and the bowtie2-build wrapper script is a Python script [...] On Windows, both Perl and Python do not come pre-installed and they must be downloaded and installed manually. If either Perl or Python are not installed on your system follow the links below to download and install them.

Python: https://www.python.org/downloads/

Perl: https://www.perl.org/get.html

ADD REPLY

Login before adding your answer.

Traffic: 1918 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6