jltsiren / gbwt Goto Github PK
View Code? Open in Web Editor NEWSubstring index for paths in a graph
License: MIT License
Substring index for paths in a graph
License: MIT License
In PrivVG project, document frequencies will be necessary in order to satisfy the differential privacy definition (a single new document might inflate counts a lot if it visits the same edge many times). While FastLocate
is good enough for initial prototyping, it won't scale well.
I noticed there's support for that in GCSA2 (SadaCount
/SadaSparse
), can we please have that in GBWT as well? (cc: @ekg)
I tried to build on our crimson server (which runs on CentOS), but I'm getting compilation failures on the GBWT. I couldn't tell what was causing the failure myself though--it looks correct to me. Here's the error output:
gbwt.cpp:51:1: error: no declaration matches ‘gbwt::GBWT::GBWT(const gbwt::DynamicGBWT&)’
GBWT::GBWT(const DynamicGBWT& source) :
^~~~
In file included from gbwt.cpp:26:
/private/home/jeizenga/GitHub/vg/include/gbwt/gbwt.h:56:12: note: candidates are: ‘gbwt::GBWT::GBWT(const std::vector<gbwt::GBWT>&)’
explicit GBWT(const std::vector<GBWT>& sources);
^~~~
/private/home/jeizenga/GitHub/vg/include/gbwt/gbwt.h:51:3: note: ‘gbwt::GBWT::GBWT(gbwt::GBWT&&)’
GBWT(GBWT&& source);
^~~~
gbwt.cpp:46:1: note: ‘gbwt::GBWT::GBWT(const gbwt::GBWT&)’
GBWT::GBWT(const GBWT& source)
^~~~
gbwt.cpp:42:1: note: ‘gbwt::GBWT::GBWT()’
GBWT::GBWT()
^~~~
In file included from gbwt.cpp:26:
/private/home/jeizenga/GitHub/vg/include/gbwt/gbwt.h:42:7: note: ‘class gbwt::GBWT’ defined here
class GBWT
^~~~
gbwt.cpp: In member function ‘void gbwt::GBWT::swap(gbwt::GBWT&)’:
gbwt.cpp:77:28: error: ‘struct gbwt::DecompressedRecord’ has no member named ‘swap’
this->endmarker_record.swap(another.endmarker_record);
^~~~
gbwt.cpp: At global scope:
gbwt.cpp:89:1: error: no declaration matches ‘gbwt::GBWT& gbwt::GBWT::operator=(const gbwt::DynamicGBWT&)’
GBWT::operator=(const DynamicGBWT& source)
^~~~
In file included from gbwt.cpp:26:
/private/home/jeizenga/GitHub/vg/include/gbwt/gbwt.h:60:9: note: candidates are: ‘gbwt::GBWT& gbwt::GBWT::operator=(gbwt::GBWT&&)’
GBWT& operator=(GBWT&& source);
^~~~~~~~
gbwt.cpp:82:1: note: ‘gbwt::GBWT& gbwt::GBWT::operator=(const gbwt::GBWT&)’
GBWT::operator=(const GBWT& source)
^~~~
In file included from gbwt.cpp:26:
/private/home/jeizenga/GitHub/vg/include/gbwt/gbwt.h:42:7: note: ‘class gbwt::GBWT’ defined here
class GBWT
^~~~
make: *** [gbwt.o] Error 1
And the compiler info:
-bash-4.2$ c++ --version
c++ (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Hello,
I'm packaging gbwt for Debian; thank you for your contribution to open source scientific software.
One of the tests fail. Can you give us some advice?
$ uname -a
Linux mrcdev 4.18.0-2-amd64 #1 SMP Debian 4.18.10-2 (2018-11-02) x86_64 GNU/Linux
mcrusoe@mrcdev:~/debian/gbwt$ gcc --version
gcc (Debian 8.2.0-12) 8.2.0
[----------] 6 tests from BasicHaplotypes/VariantTest
[ RUN ] BasicHaplotypes/VariantTest.VariantPathsStatistics/0
test_variants: /usr/include/sdsl/int_vector_buffer.hpp:217: sdsl::int_vector_buffer<t_width>& sdsl::int_vector_buffer<t_width>::operator=(sdsl::int_vector_buffer<t_width>&&) [with unsigned char t_width = 8]: Assertion `m_ifile.good()' failed.
The current patches are at https://salsa.debian.org/med-team/gbwt/tree/master/debian/patches
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.