-
Notifications
You must be signed in to change notification settings - Fork 121
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
Nan - nbind - NonCopyablePersistentTraits - Error - VG #66
Comments
Hi, @jjrv maybe you could help me out here? std::shared_ptr<gcsa::GCSA> buildGcsa(VG& vg) {
vg::id_t head_id = 0, tail_id = 0;
int kmer_size = 13;
int doubling_steps = 2;
bool path_only = false;
bool forward_only = true;
// TODO change this to 200 or more
size_t size_limit = 2; // in Gigabytes
std::string base_file_name = ".vg-kmers-tmp-";
string tmpfile = vg.write_gcsa_kmers_to_tmpfile(kmer_size, path_only,
forward_only, head_id, tail_id, doubling_steps, size_limit,
base_file_name);
// set up the input graph using the kmers
gcsa::InputGraph input_graph( { tmpfile }, true);
gcsa::ConstructionParameters params;
params.setSteps(doubling_steps);
params.setLimit(size_limit);
// run the GCSA construction
//gcsa = new gcsa::GCSA(input_graph, params);
//auto ag = std::make_shared<AG>(in_vg, in_ff);
auto gcsa = std::make_shared<gcsa::GCSA>(input_graph, params);
// and the LCP array construction
// lcp = new gcsa::LCPArray(input_graph, params);
// delete the temporary debruijn graph file
remove(tmpfile.c_str());
return gcsa;
}
Traceback:
It seems to me that |
It occured to me that it is the same problem as in here: https://github.com/charto/nbind/issues/39#issuecomment-261890364 |
Hi,
@jjrv maybe you could help me out here?
Of a given graph I want to create an index to find a sequence in it efficiently.
Thanks in advance :)
The text was updated successfully, but these errors were encountered: