Question: Ncbi C++ Exception: Ncbi::Cmemoryfilesegment::Cmemoryfilesegment() - File Offset May Not Be Negative
gravatar for SRKR
6.3 years ago by
SRKR180 wrote:

I have tried running a command line blast. The query file is a multi fasta file containing 2600 sequences. It was made a BLASTX against a proteins sequences (ProDom) of size 2 GB (prodom.phr : 1:00 GB, : 46.6 MB, prodom.psq : 2.01 GB). The first 142 sequences are getting the results, after that I am getting an error. The command that I have given and the error that I am getting are given below:

F:\blast\bin>blastx -db db/prodom -query in/seqs.txt -out out/seqs-prodom-blastx-20130811-e-1e-003.txt -evalue 1e-003

BLAST Database error: CSeqDBAtlas::MapMmap: While mapping file [F:\blast\bin\db\prodom.psq] with 602599160 bytes allocated, caught exception:

NCBI C++ Exception:

"..\..\..\..\..\src\corelib\ncbifile.cpp", line 4572: Error: ncbi::CMemoryFileSegment::CMemoryFileSegment() - File offset may not be negative

I have tried repeating the analysis with the 142 sequences removed, but still it's throwing the same error. Please let me know where am I going wrong or should I change any settings.

ncbi blast blast+ • 3.0k views
ADD COMMENTlink modified 6.3 years ago by Michael Dondrup47k • written 6.3 years ago by SRKR180

Could you paste sequences 140-145? Have you tried changing the order of sequences?

Have you tried re-building the ProDom db?

ADD REPLYlink written 6.3 years ago by David Westergaard1.4k

I have tried alternating the sequences, removing the first 143 sequences (as I am getting error after the 142 sequence), and also tried rebuilding the database, still it's the same mistake. I have corresponded with NCBI regarding this, they asked me for the input file and the sequences from which the database was created. I sent them three days back and am waiting for a response. Here is the link to all the sequence that I have used for the analysis:

ADD REPLYlink written 6.3 years ago by SRKR180

Best is to be patient, 3 days back is friday with a weekend in between that is no time at all. I guess that even NCBI has weekends.

ADD REPLYlink modified 6.3 years ago • written 6.3 years ago by Michael Dondrup47k

What is the version of blast+? Please run blastdbcheck on the database.

ADD REPLYlink written 6.3 years ago by Michael Dondrup47k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2348 users visited in the last hour