iterating nodes example 'char const*' error
1
0
Entering edit mode
9.2 years ago
Haluk ▴ 190

Hi,

I'm following the provided code snippet of iterating nodes, but I got the terminate called after throwing an instance of 'char const*' error for the fasta test file in the link below.

GATB • 2.3k views
ADD COMMENT
0
Entering edit mode

What are you trying to do and which software are you using? You've added a gatb tag but said nothing about it on the post. Please, elaborate.

ADD REPLY
0
Entering edit mode

Here is the code snippet provided in the GATB API Documentation.

I have the HDF5 file which is also generated by GATB. However, when I use the HDF5 file as an input to the program in the above, it gave me terminate called after throwing an instance of 'char const* error.

ADD REPLY
3
Entering edit mode
9.2 years ago
Haluk ▴ 190

It worked when I add the -abundance-min 1 option.

ADD COMMENT
1
Entering edit mode

Indeed, you found out what happened. You need to have at least one node in the graph, so in your example, the default abundance threshold (3 by default) is too high for such a small example, ie. there is no 31-mer occuring 3 times in the fasta file.

We will probably change in gatb-core the kind of exception in the case there is no node in the graph (change "char const*" into Exception).

Another solution is NOT to throw an exception if there is no node in the graph, but it may be confusing for the user because the program would do nothing without any notification.

ADD REPLY

Login before adding your answer.

Traffic: 3953 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