Re: [Seqan-dev] problem to use BamRecordToAlignment
- From: marion dubarry <dubarry.ma@gmail.com>
- To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Date: Tue, 21 Apr 2015 13:03:42 +0200
- Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Subject: Re: [Seqan-dev] problem to use BamRecordToAlignment
BamFileIn bamFileIn;
if (!open(bamFileIn,File.c_str())){
cout << "Error : Cannot open " << File << endl;
exit(1);
}
I don't think this is the error because I can read the headers, or the records. Just the bamRecordToAlignment() function failif (!open(bamFileIn,File.c_str())){
cout << "Error : Cannot open " << File << endl;
exit(1);
}
2015-04-21 12:57 GMT+02:00 Jordan Willis <jwillis0720@gmail.com>:
Hi,Where is you bamFileIn defined?On Apr 21, 2015, at 3:46 AM, marion dubarry <dubarry.ma@gmail.com> wrote:_______________________________________________MarionI try a lot of think for the variable "references", this is my last try. Because references is of type Dna5String. I try a lot of things (most of time absurd things) and I obtain always this error :Hello,I think I have a basic question, sorry in advance. I don't understand what is suppose to contain "references" of a record from the methods BamRecordToAlignment().Reference is suppose to contain : "I start with the example and I modify it :The string with the reference that record lies on."
BamAlignmentRecord record;
StringSet<Dna5String> references;
Align<Dna5String> align;
while (!atEnd(bamFileIn))
{
readRecord(record, bamFileIn);
appendValue(references,record.seq);
if (record.rID != BamAlignmentRecord::INVALID_REFID)
bamRecordToAlignment(align, references[record.rID], record);
}
seqan-src/include/seqan/sequence/string_base.h:429 Assertion failed : static_cast<TStringPos>(pos) < static_cast<TStringPos>(length(me)) was: 1 >= 1 (Trying to access an element behind the last one!)
Aborted (core dumped)I think the problem come from my variable references, could you explain me what is it suppose to contain ?Thanks,Sorry for my (stupid) question,
seqan-dev mailing list
seqan-dev@lists.fu-berlin.de
https://lists.fu-berlin.de/listinfo/seqan-dev
_______________________________________________
seqan-dev mailing list
seqan-dev@lists.fu-berlin.de
https://lists.fu-berlin.de/listinfo/seqan-dev
- References:
- [Seqan-dev] problem to use BamRecordToAlignment
- From: marion dubarry <dubarry.ma@gmail.com>
- Re: [Seqan-dev] problem to use BamRecordToAlignment
- From: Jordan Willis <jwillis0720@gmail.com>
- [Seqan-dev] problem to use BamRecordToAlignment
-
seqan-dev - April 2015 - Archives indexes sorted by:
[ thread ] [ subject ] [ author ] [ date ] - Complete archive of the seqan-dev mailing list
- More info on this list...