Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAPSearch v2.12 cannot find database issue #4

Closed
MDSharma opened this issue Jun 6, 2014 · 5 comments
Closed

RAPSearch v2.12 cannot find database issue #4

MDSharma opened this issue Jun 6, 2014 · 5 comments

Comments

@MDSharma
Copy link

MDSharma commented Jun 6, 2014

Hello,

I am writing to you because I have come across a small hurdle with using RAPSearch2 (v2.12) for paired-end reads. I have downloaded this version from http://omics.informatics.indiana.edu/mg/get.php?software=rapsearch2.12_pair_64bits.tar.gz and installed as “pair-rapsearch” without any issues. I have also downloaded the latest v2.18 (and installed it as “rapsearch”).

My single file queries using v2.12 and v2.18 work without fail:
………..

rapsearch -q LM_4603_R1.fastq.fasta -d /opt/rapsearch2/nr_db -z 32 -o LM_4603.rap -b 50 -v 50 -a t
QueryFileName LM_4603_R1.fastq.fasta
Queries are nucleotide sequences in fasta format
start 32 threads
………..

However, if I try to run the paired end v2.12 using the same nr_db as above (created using prerapsearch v2.18) then the commands fail with the following warning:

………..

pair-rapsearch -c LM_4601_R1.fastq.fasta LM_4601_R2.fastq.fasta -d /opt/rapsearch2/nr_db -z 6 -o ./LM_4601.rap -b 50 -v 50
QueryFileNames LM_4601_R1.fastq.fastaLM_4601_R2.fastq.fasta
Build Hash File for Query 1...
Queries are nucleotide sequences
Build Hash File for Query 2...
Queries are nucleotide sequences
Can not open the database file
Please check the file name

Main END
Time used: 6 min (0.1 hours)
………..

I have looked into the .cpp files and it seems that the program looks for nr_db.info and should only give this message if it can’t find the file in the same directory as the nr_db file. However, the file clearly exists and is readable – as shown by the use within the single-ended run.

Please can you suggest what is going on and how to fix this?

Best,
MD

@zhaoyanswill
Copy link
Owner

Hi,

It should be no problem because you use an absolute path. Are these two
commands executed under the same account?

Could you try to use 'ln -s' to make links for db and db_info in the
working directory and see what happen? Also could you try to use
presearch of paired-end version to make an indexed nr database? Thanks!

Sincerely,
Y. Z.

On 06/06/2014 01:11 PM, MDSharma wrote:

Hello,

I am writing to you because I have come across a small hurdle with
using RAPSearch2 (v2.12) for paired-end reads. I have downloaded this
version from
http://omics.informatics.indiana.edu/mg/get.php?software=rapsearch2.12_pair_64bits.tar.gz
and installed as “pair-rapsearch” without any issues. I have also
downloaded the latest v2.18 (and installed it as “rapsearch”).

My single file queries using v2.12 and v2.18 work without fail:
………..

rapsearch -q LM_4603_R1.fastq.fasta -d /opt/rapsearch2/nr_db -z 32
-o LM_4603.rap -b 50 -v 50 -a t


  QueryFileName LM_4603_R1.fastq.fasta


  Queries are nucleotide sequences in fasta format


  start 32 threads

………..

However, if I try to run the paired end v2.12 using the same nr_db as
above (created using prerapsearch v2.18) then the commands fail with
the following warning:

………..

pair-rapsearch -c LM_4601_R1.fastq.fasta LM_4601_R2.fastq.fasta -d
/opt/rapsearch2/nr_db -z 6 -o ./LM_4601.rap -b 50 -v 50


  QueryFileNames LM_4601_R1.fastq.fastaLM_4601_R2.fastq.fasta


  Build Hash File for Query 1...


  Queries are nucleotide sequences


  Build Hash File for Query 2...


  Queries are nucleotide sequences


  Can not open the database file


  Please check the file name


  >>>Main END


  Time used: 6 min (0.1 hours)

………..

I have looked into the .cpp files and it seems that the program looks
for nr_db.info and should only give this message if it can’t find the
file in the same directory as the nr_db file. However, the file
clearly exists and is readable – as shown by the use within the
single-ended run.

Please can you suggest what is going on and how to fix this?

Best,
MD


Reply to this email directly or view it on GitHub
#4.

@MDSharma
Copy link
Author

MDSharma commented Jun 9, 2014

Hi,

Yes, both commands were executed under the same account and all file permissions are valid as well.

I just tried to run the paired command against a database prepared using the paired prerapsearch and got the same issue:

Build Hash File for Query 1...
Queries are nucleotide sequences
Build Hash File for Query 2...
Queries are nucleotide sequences
Can not open the database file
Please check the file name

Main END
Time used: 6 min (0.1 hours)

Also tried this with the ln-s solution but to no avail. In both cases, the single fasta file gets processed without any drama.

Any chance you could help debug this?

Cheers,
MD

Dr. M D Sharma
Associate Research Fellow
Centre for Ecology & Conservation
College of Life and Environmental Sciences
University of Exeter
Cornwall Campus
Penryn
TR10 9EZ

[email protected]://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=mailto%3aM.D.Sharma%40Exeter.ac.uk
http://www.publicationslist.org/MD.Sharmahttps://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=http%3a%2f%2fwww.publicationslist.org%2fMD.Sharma
http://www.researcherid.com/rid/F-8530-2013

Shared Tel: (+44) 1326 259384
Mob: (+44) 7919 242450
[http://www.exeter.ac.uk/codebox/email-sig/images/logo.gif]http://www.exeter.ac.uk/

[http://www.exeter.ac.uk/codebox/email-sig/images/fb.gif]http://www.facebook.com/exeteruni[http://www.exeter.ac.uk/codebox/email-sig/images/twitter.gif]http://twitter.com/uniofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/youtube.gif]http://www.youtube.com/universityofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/li.gif]http://www.linkedin.com/groups/University-Exeter-109267?mostPopular=&gid=109267

This email and any attachment may contain information that is confidential, privileged, or subject to copyright, and which may be exempt from disclosure under applicable legislation. It is intended for the addressee only. If you received this message in error, please let me know and delete the email and any attachments immediately. The University will not accept responsibility for the accuracy/completeness of this e-mail and its attachments.

From: zhaoyanswill [mailto:[email protected]]
Sent: 06 June 2014 19:45
To: zhaoyanswill/RAPSearch2
Cc: Sharma, M.D.
Subject: Re: [RAPSearch2] RAPSearch v2.12 cannot find database issue (#4)

Hi,

It should be no problem because you use an absolute path. Are these two
commands executed under the same account?

Could you try to use 'ln -s' to make links for db and db_info in the
working directory and see what happen? Also could you try to use
presearch of paired-end version to make an indexed nr database? Thanks!

Sincerely,
Y. Z.

On 06/06/2014 01:11 PM, MDSharma wrote:

Hello,

I am writing to you because I have come across a small hurdle with
using RAPSearch2 (v2.12) for paired-end reads. I have downloaded this
version from
http://omics.informatics.indiana.edu/mg/get.php?software=rapsearch2.12_pair_64bits.tar.gz
and installed as “pair-rapsearch” without any issues. I have also
downloaded the latest v2.18 (and installed it as “rapsearch”).

My single file queries using v2.12 and v2.18 work without fail:
………..

rapsearch -q LM_4603_R1.fastq.fasta -d /opt/rapsearch2/nr_db -z 32
-o LM_4603.rap -b 50 -v 50 -a t

QueryFileName LM_4603_R1.fastq.fasta

Queries are nucleotide sequences in fasta format

start 32 threads

………..

However, if I try to run the paired end v2.12 using the same nr_db as
above (created using prerapsearch v2.18) then the commands fail with
the following warning:

………..

pair-rapsearch -c LM_4601_R1.fastq.fasta LM_4601_R2.fastq.fasta -d
/opt/rapsearch2/nr_db -z 6 -o ./LM_4601.rap -b 50 -v 50

QueryFileNames LM_4601_R1.fastq.fastaLM_4601_R2.fastq.fasta

Build Hash File for Query 1...

Queries are nucleotide sequences

Build Hash File for Query 2...

Queries are nucleotide sequences

Can not open the database file

Please check the file name

Main END

Time used: 6 min (0.1 hours)

………..

I have looked into the .cpp files and it seems that the program looks
for nr_db.info and should only give this message if it can’t find the
file in the same directory as the nr_db file. However, the file
clearly exists and is readable – as shown by the use within the
single-ended run.

Please can you suggest what is going on and how to fix this?

Best,
MD


Reply to this email directly or view it on GitHub
#4.


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-45371100.

@zhaoyanswill
Copy link
Owner

Hi,

I just did a test on the data in my hand. I indexed the database and
then searched queries. RAPSearch2 worked without any problem.

Could you try to re-build RAPSearch2 and see what happen? Thanks!

Sincerely,
Yongan

On 6/9/2014 4:42 AM, MD Sharma wrote:

Hi,

Yes, both commands were executed under the same account and all file
permissions are valid as well.

I just tried to run the paired command against a database prepared
using the paired prerapsearch and got the same issue:

Build Hash File for Query 1...
Queries are nucleotide sequences
Build Hash File for Query 2...
Queries are nucleotide sequences
Can not open the database file
Please check the file name

Main END
Time used: 6 min (0.1 hours)

Also tried this with the ln-s solution but to no avail. In both cases,
the single fasta file gets processed without any drama.

Any chance you could help debug this?

Cheers,
MD

Dr. M D Sharma
Associate Research Fellow
Centre for Ecology & Conservation
College of Life and Environmental Sciences
University of Exeter
Cornwall Campus
Penryn
TR10 9EZ

[email protected]://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=mailto%3aM.D.Sharma%40Exeter.ac.uk

http://www.publicationslist.org/MD.Sharmahttps://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=http%3a%2f%2fwww.publicationslist.org%2fMD.Sharma

http://www.researcherid.com/rid/F-8530-2013

Shared Tel: (+44) 1326 259384
Mob: (+44) 7919 242450
[http://www.exeter.ac.uk/codebox/email-sig/images/logo.gif]http://www.exeter.ac.uk/

[http://www.exeter.ac.uk/codebox/email-sig/images/fb.gif]http://www.facebook.com/exeteruni[http://www.exeter.ac.uk/codebox/email-sig/images/twitter.gif]http://twitter.com/uniofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/youtube.gif]http://www.youtube.com/universityofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/li.gif]http://www.linkedin.com/groups/University-Exeter-109267?mostPopular=&gid=109267

This email and any attachment may contain information that is
confidential, privileged, or subject to copyright, and which may be
exempt from disclosure under applicable legislation. It is intended
for the addressee only. If you received this message in error, please
let me know and delete the email and any attachments immediately. The
University will not accept responsibility for the
accuracy/completeness of this e-mail and its attachments.

From: zhaoyanswill [mailto:[email protected]]
Sent: 06 June 2014 19:45
To: zhaoyanswill/RAPSearch2
Cc: Sharma, M.D.
Subject: Re: [RAPSearch2] RAPSearch v2.12 cannot find database issue (#4)

Hi,

It should be no problem because you use an absolute path. Are these two
commands executed under the same account?

Could you try to use 'ln -s' to make links for db and db_info in the
working directory and see what happen? Also could you try to use
presearch of paired-end version to make an indexed nr database? Thanks!

Sincerely,
Y. Z.

On 06/06/2014 01:11 PM, MDSharma wrote:

Hello,

I am writing to you because I have come across a small hurdle with
using RAPSearch2 (v2.12) for paired-end reads. I have downloaded this
version from

http://omics.informatics.indiana.edu/mg/get.php?software=rapsearch2.12_pair_64bits.tar.gz
and installed as “pair-rapsearch” without any issues. I have also
downloaded the latest v2.18 (and installed it as “rapsearch”).

My single file queries using v2.12 and v2.18 work without fail:
………..

rapsearch -q LM_4603_R1.fastq.fasta -d /opt/rapsearch2/nr_db -z 32
-o LM_4603.rap -b 50 -v 50 -a t

QueryFileName LM_4603_R1.fastq.fasta

Queries are nucleotide sequences in fasta format

start 32 threads

………..

However, if I try to run the paired end v2.12 using the same nr_db as
above (created using prerapsearch v2.18) then the commands fail with
the following warning:

………..

pair-rapsearch -c LM_4601_R1.fastq.fasta LM_4601_R2.fastq.fasta -d
/opt/rapsearch2/nr_db -z 6 -o ./LM_4601.rap -b 50 -v 50

QueryFileNames LM_4601_R1.fastq.fastaLM_4601_R2.fastq.fasta

Build Hash File for Query 1...

Queries are nucleotide sequences

Build Hash File for Query 2...

Queries are nucleotide sequences

Can not open the database file

Please check the file name

Main END

Time used: 6 min (0.1 hours)

………..

I have looked into the .cpp files and it seems that the program looks
for nr_db.info and should only give this message if it can’t find the
file in the same directory as the nr_db file. However, the file
clearly exists and is readable – as shown by the use within the
single-ended run.

Please can you suggest what is going on and how to fix this?

Best,
MD


Reply to this email directly or view it on GitHub
#4.


Reply to this email directly or view it on
GitHubhttps://github.com//issues/4#issuecomment-45371100.


Reply to this email directly or view it on GitHub
#4 (comment).

@MDSharma
Copy link
Author

MDSharma commented Jun 9, 2014

Hi Yongan,

Turns out that rapsearch2 v 2.12 does not like the db file to be anywhere BUT in the local directory. Even links do not work. I moved the db into the same directory as the .fasta files and it’s running as a charm.

Do you happen to have any instructions / tutorials associated with importing RAPSearch2 data into MEGAN etc?

Best,
MD

Dr. M D Sharma
Associate Research Fellow
Centre for Ecology & Conservation
College of Life and Environmental Sciences
University of Exeter
Cornwall Campus
Penryn
TR10 9EZ

[email protected]://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=mailto%3aM.D.Sharma%40Exeter.ac.uk
http://www.publicationslist.org/MD.Sharmahttps://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=http%3a%2f%2fwww.publicationslist.org%2fMD.Sharma
http://www.researcherid.com/rid/F-8530-2013

Shared Tel: (+44) 1326 259384
Mob: (+44) 7919 242450
[http://www.exeter.ac.uk/codebox/email-sig/images/logo.gif]http://www.exeter.ac.uk/

[http://www.exeter.ac.uk/codebox/email-sig/images/fb.gif]http://www.facebook.com/exeteruni[http://www.exeter.ac.uk/codebox/email-sig/images/twitter.gif]http://twitter.com/uniofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/youtube.gif]http://www.youtube.com/universityofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/li.gif]http://www.linkedin.com/groups/University-Exeter-109267?mostPopular=&gid=109267

This email and any attachment may contain information that is confidential, privileged, or subject to copyright, and which may be exempt from disclosure under applicable legislation. It is intended for the addressee only. If you received this message in error, please let me know and delete the email and any attachments immediately. The University will not accept responsibility for the accuracy/completeness of this e-mail and its attachments.

From: zhaoyanswill [mailto:[email protected]]
Sent: 09 June 2014 15:44
To: zhaoyanswill/RAPSearch2
Cc: Sharma, M.D.
Subject: Re: [RAPSearch2] RAPSearch v2.12 cannot find database issue (#4)

Hi,

I just did a test on the data in my hand. I indexed the database and
then searched queries. RAPSearch2 worked without any problem.

Could you try to re-build RAPSearch2 and see what happen? Thanks!

Sincerely,
Yongan

On 6/9/2014 4:42 AM, MD Sharma wrote:

Hi,

Yes, both commands were executed under the same account and all file
permissions are valid as well.

I just tried to run the paired command against a database prepared
using the paired prerapsearch and got the same issue:

Build Hash File for Query 1...
Queries are nucleotide sequences
Build Hash File for Query 2...
Queries are nucleotide sequences
Can not open the database file
Please check the file name

Main END
Time used: 6 min (0.1 hours)

Also tried this with the ln-s solution but to no avail. In both cases,
the single fasta file gets processed without any drama.

Any chance you could help debug this?

Cheers,
MD

Dr. M D Sharma
Associate Research Fellow
Centre for Ecology & Conservation
College of Life and Environmental Sciences
University of Exeter
Cornwall Campus
Penryn
TR10 9EZ

[email protected]://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=mailto%3aM.D.Sharma%40Exeter.ac.ukmailto:[email protected]%3chttps://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=mailto%3aM.D.Sharma%40Exeter.ac.uk

http://www.publicationslist.org/MD.Sharmahttps://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=http%3a%2f%2fwww.publicationslist.org%2fMD.Sharmahttp://www.publicationslist.org/MD.Sharma%3chttps:/legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=http%3a%2f%2fwww.publicationslist.org%2fMD.Sharma

http://www.researcherid.com/rid/F-8530-2013

Shared Tel: (+44) 1326 259384
Mob: (+44) 7919 242450
[http://www.exeter.ac.uk/codebox/email-sig/images/logo.gif]http://www.exeter.ac.uk/

[http://www.exeter.ac.uk/codebox/email-sig/images/fb.gif]http://www.facebook.com/exeteruni[http://www.exeter.ac.uk/codebox/email-sig/images/twitter.gif]http://twitter.com/uniofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/youtube.gif]http://www.youtube.com/universityofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/li.gif]http://www.linkedin.com/groups/University-Exeter-109267?mostPopular=&gid=109267

This email and any attachment may contain information that is
confidential, privileged, or subject to copyright, and which may be
exempt from disclosure under applicable legislation. It is intended
for the addressee only. If you received this message in error, please
let me know and delete the email and any attachments immediately. The
University will not accept responsibility for the
accuracy/completeness of this e-mail and its attachments.

From: zhaoyanswill [mailto:[email protected]]
Sent: 06 June 2014 19:45
To: zhaoyanswill/RAPSearch2
Cc: Sharma, M.D.
Subject: Re: [RAPSearch2] RAPSearch v2.12 cannot find database issue (#4)

Hi,

It should be no problem because you use an absolute path. Are these two
commands executed under the same account?

Could you try to use 'ln -s' to make links for db and db_info in the
working directory and see what happen? Also could you try to use
presearch of paired-end version to make an indexed nr database? Thanks!

Sincerely,
Y. Z.

On 06/06/2014 01:11 PM, MDSharma wrote:

Hello,

I am writing to you because I have come across a small hurdle with
using RAPSearch2 (v2.12) for paired-end reads. I have downloaded this
version from

http://omics.informatics.indiana.edu/mg/get.php?software=rapsearch2.12_pair_64bits.tar.gz
and installed as “pair-rapsearch” without any issues. I have also
downloaded the latest v2.18 (and installed it as “rapsearch”).

My single file queries using v2.12 and v2.18 work without fail:
………..

rapsearch -q LM_4603_R1.fastq.fasta -d /opt/rapsearch2/nr_db -z 32
-o LM_4603.rap -b 50 -v 50 -a t

QueryFileName LM_4603_R1.fastq.fasta

Queries are nucleotide sequences in fasta format

start 32 threads

………..

However, if I try to run the paired end v2.12 using the same nr_db as
above (created using prerapsearch v2.18) then the commands fail with
the following warning:

………..

pair-rapsearch -c LM_4601_R1.fastq.fasta LM_4601_R2.fastq.fasta -d
/opt/rapsearch2/nr_db -z 6 -o ./LM_4601.rap -b 50 -v 50

QueryFileNames LM_4601_R1.fastq.fastaLM_4601_R2.fastq.fasta

Build Hash File for Query 1...

Queries are nucleotide sequences

Build Hash File for Query 2...

Queries are nucleotide sequences

Can not open the database file

Please check the file name

Main END

Time used: 6 min (0.1 hours)

………..

I have looked into the .cpp files and it seems that the program looks
for nr_db.info and should only give this message if it can’t find the
file in the same directory as the nr_db file. However, the file
clearly exists and is readable – as shown by the use within the
single-ended run.

Please can you suggest what is going on and how to fix this?

Best,
MD


Reply to this email directly or view it on GitHub
#4.


Reply to this email directly or view it on
GitHubhttps://github.com//issues/4#issuecomment-45371100.


Reply to this email directly or view it on GitHub
#4 (comment).


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-45498128.

@zhaoyanswill
Copy link
Owner

Hi,

Happy to hear the problem is solved! I've not seen this before. I
usually put all db file in a directory and run RAPSearch2 where fasta
files are placed. Thanks!

Sincerely,
Y. Z.

On 06/09/2014 12:25 PM, MD Sharma wrote:

Hi Yongan,

Turns out that rapsearch2 v 2.12 does not like the db file to be
anywhere BUT in the local directory. Even links do not work. I moved
the db into the same directory as the .fasta files and it’s running as
a charm.

Do you happen to have any instructions / tutorials associated with
importing RAPSearch2 data into MEGAN etc?

Best,
MD

Dr. M D Sharma
Associate Research Fellow
Centre for Ecology & Conservation
College of Life and Environmental Sciences
University of Exeter
Cornwall Campus
Penryn
TR10 9EZ

[email protected]://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=mailto%3aM.D.Sharma%40Exeter.ac.uk

http://www.publicationslist.org/MD.Sharmahttps://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=http%3a%2f%2fwww.publicationslist.org%2fMD.Sharma

http://www.researcherid.com/rid/F-8530-2013

Shared Tel: (+44) 1326 259384
Mob: (+44) 7919 242450
[http://www.exeter.ac.uk/codebox/email-sig/images/logo.gif]http://www.exeter.ac.uk/

[http://www.exeter.ac.uk/codebox/email-sig/images/fb.gif]http://www.facebook.com/exeteruni[http://www.exeter.ac.uk/codebox/email-sig/images/twitter.gif]http://twitter.com/uniofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/youtube.gif]http://www.youtube.com/universityofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/li.gif]http://www.linkedin.com/groups/University-Exeter-109267?mostPopular=&gid=109267

This email and any attachment may contain information that is
confidential, privileged, or subject to copyright, and which may be
exempt from disclosure under applicable legislation. It is intended
for the addressee only. If you received this message in error, please
let me know and delete the email and any attachments immediately. The
University will not accept responsibility for the
accuracy/completeness of this e-mail and its attachments.

From: zhaoyanswill [mailto:[email protected]]
Sent: 09 June 2014 15:44
To: zhaoyanswill/RAPSearch2
Cc: Sharma, M.D.
Subject: Re: [RAPSearch2] RAPSearch v2.12 cannot find database issue (#4)

Hi,

I just did a test on the data in my hand. I indexed the database and
then searched queries. RAPSearch2 worked without any problem.

Could you try to re-build RAPSearch2 and see what happen? Thanks!

Sincerely,
Yongan

On 6/9/2014 4:42 AM, MD Sharma wrote:

Hi,

Yes, both commands were executed under the same account and all file
permissions are valid as well.

I just tried to run the paired command against a database prepared
using the paired prerapsearch and got the same issue:

Build Hash File for Query 1...
Queries are nucleotide sequences
Build Hash File for Query 2...
Queries are nucleotide sequences
Can not open the database file
Please check the file name

Main END
Time used: 6 min (0.1 hours)

Also tried this with the ln-s solution but to no avail. In both cases,
the single fasta file gets processed without any drama.

Any chance you could help debug this?

Cheers,
MD

Dr. M D Sharma
Associate Research Fellow
Centre for Ecology & Conservation
College of Life and Environmental Sciences
University of Exeter
Cornwall Campus
Penryn
TR10 9EZ

[email protected]://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=mailto%3aM.D.Sharma%40Exeter.ac.ukmailto:[email protected]%3chttps://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=mailto%3aM.D.Sharma%40Exeter.ac.uk

http://www.publicationslist.org/MD.Sharmahttps://legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=http%3a%2f%2fwww.publicationslist.org%2fMD.Sharmahttp://www.publicationslist.org/MD.Sharma%3chttps:/legacy.exeter.ac.uk/owa/redir.aspx?C=2550a33f6b904272a7b1147002360f76&URL=http%3a%2f%2fwww.publicationslist.org%2fMD.Sharma

http://www.researcherid.com/rid/F-8530-2013

Shared Tel: (+44) 1326 259384
Mob: (+44) 7919 242450

[http://www.exeter.ac.uk/codebox/email-sig/images/logo.gif]http://www.exeter.ac.uk/

[http://www.exeter.ac.uk/codebox/email-sig/images/fb.gif]http://www.facebook.com/exeteruni[http://www.exeter.ac.uk/codebox/email-sig/images/twitter.gif]http://twitter.com/uniofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/youtube.gif]http://www.youtube.com/universityofexeter[http://www.exeter.ac.uk/codebox/email-sig/images/li.gif]http://www.linkedin.com/groups/University-Exeter-109267?mostPopular=&gid=109267

This email and any attachment may contain information that is
confidential, privileged, or subject to copyright, and which may be
exempt from disclosure under applicable legislation. It is intended
for the addressee only. If you received this message in error, please
let me know and delete the email and any attachments immediately. The
University will not accept responsibility for the
accuracy/completeness of this e-mail and its attachments.

From: zhaoyanswill [mailto:[email protected]]
Sent: 06 June 2014 19:45
To: zhaoyanswill/RAPSearch2
Cc: Sharma, M.D.
Subject: Re: [RAPSearch2] RAPSearch v2.12 cannot find database issue
(#4)

Hi,

It should be no problem because you use an absolute path. Are these two
commands executed under the same account?

Could you try to use 'ln -s' to make links for db and db_info in the
working directory and see what happen? Also could you try to use
presearch of paired-end version to make an indexed nr database? Thanks!

Sincerely,
Y. Z.

On 06/06/2014 01:11 PM, MDSharma wrote:

Hello,

I am writing to you because I have come across a small hurdle with
using RAPSearch2 (v2.12) for paired-end reads. I have downloaded this
version from

http://omics.informatics.indiana.edu/mg/get.php?software=rapsearch2.12_pair_64bits.tar.gz

and installed as “pair-rapsearch” without any issues. I have also
downloaded the latest v2.18 (and installed it as “rapsearch”).

My single file queries using v2.12 and v2.18 work without fail:
………..

rapsearch -q LM_4603_R1.fastq.fasta -d /opt/rapsearch2/nr_db -z 32
-o LM_4603.rap -b 50 -v 50 -a t

QueryFileName LM_4603_R1.fastq.fasta

Queries are nucleotide sequences in fasta format

start 32 threads

………..

However, if I try to run the paired end v2.12 using the same nr_db as
above (created using prerapsearch v2.18) then the commands fail with
the following warning:

………..

pair-rapsearch -c LM_4601_R1.fastq.fasta LM_4601_R2.fastq.fasta -d
/opt/rapsearch2/nr_db -z 6 -o ./LM_4601.rap -b 50 -v 50

QueryFileNames LM_4601_R1.fastq.fastaLM_4601_R2.fastq.fasta

Build Hash File for Query 1...

Queries are nucleotide sequences

Build Hash File for Query 2...

Queries are nucleotide sequences

Can not open the database file

Please check the file name

Main END

Time used: 6 min (0.1 hours)

………..

I have looked into the .cpp files and it seems that the program looks
for nr_db.info and should only give this message if it can’t find the
file in the same directory as the nr_db file. However, the file
clearly exists and is readable – as shown by the use within the
single-ended run.

Please can you suggest what is going on and how to fix this?

Best,
MD


Reply to this email directly or view it on GitHub
#4.


Reply to this email directly or view it on

GitHubhttps://github.com//issues/4#issuecomment-45371100.


Reply to this email directly or view it on GitHub

#4 (comment).


Reply to this email directly or view it on
GitHubhttps://github.com//issues/4#issuecomment-45498128.


Reply to this email directly or view it on GitHub
#4 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants