├── .gitignore
├── test
├── final_g_clusters_to_obtain.txt
├── clusters.list
├── test.input
└── two_clusters.fasta
├── makefile
├── License.txt
├── main.cpp
├── findArticulationPoints.hpp
├── scripts
├── paf_to_CARNAC.py
├── CARNAC_to_fasta.cpp
└── CARNAC_to_fasta.py
├── README.md
├── clustering_cliqueness.hpp
├── findArticulationPoints.cpp
└── clustering_cliqueness.cpp
/.gitignore:
--------------------------------------------------------------------------------
1 | CARNAC-LR
2 | *.o
3 |
--------------------------------------------------------------------------------
/test/final_g_clusters_to_obtain.txt:
--------------------------------------------------------------------------------
1 | 0 1 5 6 11 15 16 17 19
2 | 2 3 4 7 8 9 10 12 13 14 18
3 |
--------------------------------------------------------------------------------
/test/clusters.list:
--------------------------------------------------------------------------------
1 | ch482_read5787 ch123_read6165 ch497_read5679 ch488_read2761 ch182_read5053 ch58_read5008 ch206_read1352 ch114_read985 ch487_read8370 ch428_read2403
2 | ch249_read4487 ch46_read337 ch52_read6550 ch435_read29295 ch165_read1933 ch162_read1733 ch133_read3235 ch322_read2883 ch384_read10549 ch275_read3171
3 |
--------------------------------------------------------------------------------
/makefile:
--------------------------------------------------------------------------------
1 | #CC=/usr/bin/g++
2 | CC=g++
3 | #CC=clang++
4 | CFLAGS= -Wall -O3 -std=c++11 -march=native -pthread -fopenmp
5 | CFLAGS_SIMPLE=-std=c++11
6 |
7 | LDFLAGS= -pthread -fopenmp
8 |
9 |
10 | ifeq ($(gprof),1)
11 | CFLAGS=-std=c++0x -pg -O4 -march=native
12 | LDFLAGS=-pg
13 | endif
14 |
15 | ifeq ($(valgrind),1)
16 | CFLAGS=-std=c++0x -O4 -g
17 | LDFLAGS=-g
18 | endif
19 |
20 |
21 |
22 | EXEC=CARNAC-LR scripts/CARNAC_to_fasta
23 |
24 | all: $(EXEC)
25 |
26 | scripts/CARNAC_to_fasta: scripts/CARNAC_to_fasta.cpp
27 | $(CC) -o $@ -c $^ $(CFLAGS_SIMPLE)
28 |
29 | CARNAC-LR: main.o clustering_cliqueness.o preprocessing.o
30 | $(CC) -o $@ $^ $(LDFLAGS)
31 |
32 | main.o: main.cpp clustering_cliqueness.hpp
33 | $(CC) -o $@ -c $< $(CFLAGS)
34 |
35 | clustering_cliqueness.o: clustering_cliqueness.cpp clustering_cliqueness.hpp findArticulationPoints.hpp
36 | $(CC) -o $@ -c $< $(CFLAGS)
37 |
38 | preprocessing.o: findArticulationPoints.cpp findArticulationPoints.hpp
39 | $(CC) -o $@ -c $< $(CFLAGS)
40 |
41 |
42 |
43 |
44 | clean:
45 | rm -rf *.o
46 | rm -rf $(EXEC)
47 |
48 |
49 | rebuild: clean $(EXEC)
50 |
--------------------------------------------------------------------------------
/License.txt:
--------------------------------------------------------------------------------
1 | /*****************************************************************************
2 | * * * * CARNAC: Clustering coefficient-based Acquisition of RNA Communities
3 | * * * *
4 | * * * * Authors: Camille Marchet
5 | * * * * Contact: camille.marchet@irisaa.fr, INRIA/IRISA/GenScale, Campus de Beaulieu, 35042 Rennes Cedex, France
6 | * * * * Source: https://github.com/Kamimrcht/CARNAC
7 | * * * *
8 | * * * *
9 | * * * * This program is free software: you can redistribute it and/or modify
10 | * * * * it under the terms of the GNU Affero General Public License as
11 | * * * * published by the Free Software Foundation, either version 3 of the
12 | * * * * License, or (at your option) any later version.
13 | * * * *
14 | * * * * This program is distributed in the hope that it will be useful,
15 | * * * * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | * * * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | * * * * GNU Affero General Public License for more details.
18 | * * * *
19 | * * * * You should have received a copy of the GNU Affero General Public License
20 | * * * * along with this program. If not, see .
21 | * * * *****************************************************************************/
22 |
--------------------------------------------------------------------------------
/main.cpp:
--------------------------------------------------------------------------------
1 | /*****************************************************************************
2 | * * * * * CARNAC: Clustering coefficient-based Acquisition of RNA Communities
3 | * * * * *
4 | * * * * * Authors: Camille Marchet
5 | * * * * * Contact: camille.marchet@irisaa.fr, INRIA/IRISA/GenScale, Campus de Beaulieu, 35042 Rennes Cedex, France
6 | * * * * * Source: https://github.com/Kamimrcht/CARNAC
7 | * * * * *
8 | * * * * *
9 | * * * * * This program is free software: you can redistribute it and/or modify
10 | * * * * * it under the terms of the GNU Affero General Public License as
11 | * * * * * published by the Free Software Foundation, either version 3 of the
12 | * * * * * License, or (at your option) any later version.
13 | * * * * *
14 | * * * * * This program is distributed in the hope that it will be useful,
15 | * * * * * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | * * * * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | * * * * * GNU Affero General Public License for more details.
18 | * * * * *
19 | * * * * * You should have received a copy of the GNU Affero General Public License
20 | * * * * * along with this program. If not, see .
21 | * * * * * *****************************************************************************/
22 |
23 |
24 |
25 |
26 | #include
27 | #include
28 | #include
29 | #include
30 | #include
31 | #include
32 | #include
33 | #include
34 | #include
35 | #include
36 | #include
37 | #include
38 | #include
39 | #include