Projekt iz predmeta Bioinformatika
Installation will install files in folders: headers => '/usr/local/include' sources => '/usr/local/lib'
| ( , 3) ( , 4) ( , 5) ( , 3) ( , 4) ( , 5) ( , 3) ( , 4) ( , 5) ( , 0) ( , 1) ( , 2) ( , 6) ( , 7) ( , 0) ( , 1) ( , 2) ( , 6) ( , 7) ( , 0) ( , 1) ( , 2) ( , 6) ( , 7) ( , 3) ( , 4) ( , 5) ( , 3) ( , 4) ( , 5) | |
| ( , 31) , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 0 | |
| ( , 40) , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 0 | |
| ( , 31) , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 0 | |
| ( , 38) , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 0 | |
| ( , 31) , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 0 | |
| ( , 37) , , , |
| (2, 3) (2, 4) (4, 6) (0, 3) (2, 5) (4, 7) (0, 4) (0, 5) (5, 0) (5, 1) (7, 3) (3, 0) (5, 2) (7, 4) (3, 1) (7, 5) (3, 2) (5, 6) (1, 3) (5, 7) (1, 4) (3, 6) (1, 5) (3, 7) (4, 0) (4, 1) (6, 3) (4, 2) (6, 4) (6, 5) | |
| (7, 39) , , , , 1, , , , , , , , , , , , 1, , , , , , , , , , , , , 0 | |
| (3, 38) , , , , 1, , , , , , , , , , , , 1, , , , , , , , , , , , , 0 | |
| (28, 31) , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 0 | |
| (32, 35) , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 0 | |
| (24, 31) , , , , 1, , , , , , , , , , , , 1, , , , , , , , , , , , , 0 | |
| (28, 37) , , |
| #include <bits/stdc++.h> | |
| #include <sdsl/suffix_arrays.hpp> | |
| using namespace std; | |
| using namespace sdsl; | |
| int main() { | |
| // [1,a], [1,b] | |
| uint64_t a = 5; |
| const unordered_map<pair<node_t, node_t>, vector<int>> Instance::Edges = { | |
| {make_pair(1 -1, 4 -1 ), {1, 4, 1100}}, | |
| {make_pair(1 -1, 5 -1 ), {1, 5, 1100}}, | |
| {make_pair(1 -1, 6 -1 ), {1, 6, 1100}}, | |
| {make_pair(2 -1, 4 -1 ), {2, 4, 1100}}, | |
| {make_pair(2 -1, 5 -1 ), {2, 5, 1100}}, | |
| {make_pair(2 -1, 6 -1 ), {2, 6, 1100}}, | |
| {make_pair(3 -1, 4 -1 ), {3, 4, 1100}}, | |
| {make_pair(3 -1, 5 -1 ), {3, 5, 1100}}, | |
| {make_pair(3 -1, 6 -1 ), {3, 6, 1100}}, |
| In file included from /home/spidey/Gits/bioinf/bioinf/test/tests/sais_tests.cpp:2:0: | |
| /usr/local/include/sais.hxx: In instantiation of | |
| ‘index_type saisxx_bwt(string_type, string_type, sarray_type, index_type, index_type) | |
| [ | |
| with | |
| string_type = __gnu_cxx::__normal_iterator<char*, std::vector<char> >; | |
| sarray_type = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; | |
| index_type = unsigned int |
| fpopic@lenovo:~/Desktop/bioinf-files/bioinf-git/bioinf$ cmake --build /home/fpopic/Desktop/bioinf-files/bioinf-git/bioinf/cmake-build-debug --target bioinf_tests.exe -- -j 4 | |
| [ 22%] Built target mylib | |
| [ 44%] Built target gtest | |
| [ 66%] Built target gtest_main | |
| [100%] Built target bioinf_tests.exe | |
| fpopic@lenovo:~/Desktop/bioinf-files/bioinf-git/bioinf$ |
| private static DataSource getDataSource(final String url, final Properties properties){ | |
| BasicDataSource dataSource = new BasicDataSource(); | |
| dataSource.setDriverClassName(properties.getProperty(DRIVER_CLASS_NAME)); | |
| dataSource.setUrl(properties.getProperty(url)); | |
| dataSource.setUsername(properties.getProperty(USER_NAME)); | |
| dataSource.setPassword(properties.getProperty(PASSWORD)); | |
| return dataSource; | |
| } |
| cd lib/ | |
| cd sdsl-lite/ | |
| ./install.sh | |
| cd sdsl-lite/ | |
| mkdir build | |
| cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="/usr/local" | |
| sudo make |
| #include <bits/stdc++.h> | |
| using namespace std; | |
| using llong = long long; | |
| void faktoriziraj(int x, llong& dvojke, llong& petice){ | |
| while(x%10 ==0 && x>1){ | |
| dvojke++;petice++; | |
| x/=10; | |
| } |