Question: Breakdancer Compile Error: Regionlimitedbamreader.Hpp:23:5: Error: ‘Bam_Iter_T’ Does Not Name A Type
0
gravatar for William
5.3 years ago by
William4.3k
Europe
William4.3k wrote:

I tried to get the latest version from github and release 1.4.1 of breakdancer to run but all my attempts failed with this compile error:

I followed the INSTALL.md file. Make of samtools works. cmake of breakdancer works. Make of breakdancer gives the following error:

/home/william/Downloads/breakdancer-1.4.1/src/lib/breakdancer/RegionLimitedBamReader.hpp:23:5: error: ‘bam_iter_t’ does not name a type

It seems like the a iterator variable is used of type ‘bam_iter_t' which is not a known type. See the part of code below. bam_iter_t is also not defined in the object that are included.

\#include "IBamReader.hpp"
\#include "BamReader.hpp"

\#include <boost/format.hpp>
\#include <stdexcept>
\#include <string>

template<typename Filter>
class RegionLimitedBamReader : public BamReader<Filter> {
public:
RegionLimitedBamReader(std::string const& path, char const* region);
~RegionLimitedBamReader();

int next(bam1_t* entry);

int tid() const { return _tid; }
int beg() const { return _beg; }
int end() const { return _end; }

protected:
std::string _region;
bam_index_t* _index;
bam_iter_t _iter;
int _tid;
int _beg;
int _end;
};
breakdancer • 2.3k views
ADD COMMENTlink modified 5.3 years ago • written 5.3 years ago by William4.3k

Which version of Samtools are you compiling against?

ADD REPLYlink written 5.3 years ago by ernfrid380

I followed the INSTALL.md file and downloaded samtools-0.1.6 from the given link, untarred it, build it, and exported it as the samtools root. RegionLimitedBamReader.hpp is not including anything from samtools so I don't expect the error to be related with samtools ?

ADD REPLYlink written 5.3 years ago by William4.3k
1

Can you try linking to a newer samtools like 0.1.19? I believe even though this file isn't linking to samtools explicitly, that type is only present in newer versions.

ADD REPLYlink written 5.3 years ago by ernfrid380
0
gravatar for William
5.3 years ago by
William4.3k
Europe
William4.3k wrote:

The INSTALL.md file of breakdancer is out of date.

Instead of downloading samtools-0.1.6.tar.bz2 you should download samtools-0.1.19.tar.bz2 .

The rest of the installation worked for me after changing this.

ADD COMMENTlink written 5.3 years ago by William4.3k
Please log in to add an answer.

Help
Access

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