complearn 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/AUTHORS +13 -0
- data/COPYING +340 -0
- data/ChangeLog +0 -0
- data/INSTALL +231 -0
- data/Makefile +352 -0
- data/Makefile.am +76 -0
- data/Makefile.in +352 -0
- data/NEWS +7 -0
- data/README +0 -0
- data/aclocal.m4 +104 -0
- data/bin/Makefile +209 -0
- data/bin/Makefile.am +8 -0
- data/bin/Makefile.in +209 -0
- data/bin/labeltree +68 -0
- data/bin/labeltree.in +68 -0
- data/bin/makesvm +70 -0
- data/bin/makesvm.in +70 -0
- data/bin/maketree +98 -0
- data/bin/maketree.in +98 -0
- data/bin/ncd +43 -0
- data/bin/ncd.in +43 -0
- data/bin/ncdmatrix +54 -0
- data/bin/ncdmatrix.in +54 -0
- data/bin/ncdvector +50 -0
- data/bin/ncdvector.in +50 -0
- data/complearn-0.6.2.gem +0 -0
- data/complearn.gemspec +57 -0
- data/config.log +597 -0
- data/config.status +1082 -0
- data/configure +4922 -0
- data/configure.ac +91 -0
- data/confstat5FpLBf/config.h +65 -0
- data/confstat5FpLBf/subs-1.sed +50 -0
- data/confstat5FpLBf/subs-2.sed +13 -0
- data/confstat5FpLBf/subs.frag +0 -0
- data/confstat5FpLBf/subs.sed +59 -0
- data/confstat5FpLBf/undefs.sed +24 -0
- data/doc/FAQ.txt +67 -0
- data/doc/Makefile +286 -0
- data/doc/Makefile.am +11 -0
- data/doc/Makefile.in +286 -0
- data/doc/devguide.txt +15 -0
- data/doc/example.complearnrc +14 -0
- data/doc/examples.txt +35 -0
- data/doc/man/Makefile +255 -0
- data/doc/man/Makefile.am +11 -0
- data/doc/man/Makefile.in +255 -0
- data/doc/man/complearn.5 +91 -0
- data/doc/man/labeltree.1 +35 -0
- data/doc/man/makesvm.1 +60 -0
- data/doc/man/maketree.1 +58 -0
- data/doc/man/ncd.1 +51 -0
- data/doc/man/ncdmatrix.1 +40 -0
- data/doc/man/ncdvector.1 +42 -0
- data/doc/readme.txt +101 -0
- data/doc/userguide.txt +46 -0
- data/examples/genes/blueWhale.txt +1 -0
- data/examples/genes/cat.txt +1 -0
- data/examples/genes/chimpanzee.txt +1 -0
- data/examples/genes/finWhale.txt +1 -0
- data/examples/genes/graySeal.txt +1 -0
- data/examples/genes/harborSeal.txt +1 -0
- data/examples/genes/horse.txt +1 -0
- data/examples/genes/human.txt +1 -0
- data/examples/genes/mouse.txt +1 -0
- data/examples/genes/rat.txt +1 -0
- data/ext/Makefile +167 -0
- data/ext/Quartet.c +399 -0
- data/ext/Quartet.h +62 -0
- data/ext/TreeScore.c +244 -0
- data/ext/TreeScore.h +3 -0
- data/ext/config.h +65 -0
- data/ext/config.h.in +64 -0
- data/ext/extconf.rb +3 -0
- data/ext/lib/CompLearnLib/CLConfig.rb +241 -0
- data/ext/lib/CompLearnLib/CompressionObject.rb +59 -0
- data/ext/lib/CompLearnLib/CompressionTask.rb +99 -0
- data/ext/lib/CompLearnLib/DistMatrix.rb +18 -0
- data/ext/lib/CompLearnLib/FoundComp.rb +10 -0
- data/ext/lib/CompLearnLib/FoundComp.rb.in +10 -0
- data/ext/lib/CompLearnLib/Ncd.rb +248 -0
- data/ext/lib/CompLearnLib/RunEnv.rb +150 -0
- data/ext/lib/CompLearnLib/Task.rb +39 -0
- data/ext/lib/CompLearnLib/TaskMaster.rb +13 -0
- data/ext/lib/CompLearnLib/TaskMasterMPI.rb +112 -0
- data/ext/lib/CompLearnLib/TaskMasterSingle.rb +39 -0
- data/ext/lib/CompLearnLib/Tree.rb +300 -0
- data/install-sh +294 -0
- data/missing +336 -0
- data/mkinstalldirs +111 -0
- data/o +24 -0
- data/scripts/CompLearn.iss +89 -0
- data/scripts/CompLearn.iss.in +89 -0
- data/scripts/debian/changelog +6 -0
- data/scripts/debian/control +14 -0
- data/scripts/makeSetup.sh +23 -0
- data/scripts/makeSetup.sh.in +23 -0
- data/scripts/makedeb.zsh +46 -0
- data/scripts/makedeb.zsh.in +46 -0
- data/tests/alltests.rb +2 -0
- data/tests/bz2test.rb +516 -0
- data/tests/sshagent-test.rb +48 -0
- data/tests/tests.rb +275 -0
- metadata +164 -0
data/configure.ac
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# -*- Autoconf -*-
|
2
|
+
# Process this file with autoconf to produce a configure script.
|
3
|
+
|
4
|
+
AC_PREREQ(2.57)
|
5
|
+
AC_INIT()
|
6
|
+
AC_SUBST(SET_MAKE, MAKE=make)
|
7
|
+
TOPDIR=`pwd`
|
8
|
+
AC_SUBST(TOPDIR)
|
9
|
+
AC_CONFIG_SRCDIR([ext/Quartet.c])
|
10
|
+
AM_INIT_AUTOMAKE(complearn,0.6.2)
|
11
|
+
AC_CONFIG_HEADERS([ext/config.h])
|
12
|
+
|
13
|
+
AC_ARG_ENABLE(winbuild, "Cross compile for windows MinGW/MSYS", winbuild=true, winbuild=false)
|
14
|
+
if $winbuild ; then
|
15
|
+
echo "Building for windows"
|
16
|
+
else
|
17
|
+
echo "Building for Linux"
|
18
|
+
fi
|
19
|
+
|
20
|
+
AC_PROG_RANLIB
|
21
|
+
|
22
|
+
WINBUILDDIR="c:\build"
|
23
|
+
AC_SUBST(WINBUILDDIR)
|
24
|
+
|
25
|
+
# Checks for programs.
|
26
|
+
AC_PROG_CC
|
27
|
+
if $winbuild ; then
|
28
|
+
RUBYBIN=/usr/local/bin/ruby
|
29
|
+
else
|
30
|
+
AC_PATH_PROGS([RUBYBIN], [ruby1.8 ruby])
|
31
|
+
fi
|
32
|
+
|
33
|
+
AC_MSG_CHECKING([for Ruby bz2 (bzip2) library])
|
34
|
+
if $RUBYBIN -e "require 'bz2'" 2>/dev/null; then
|
35
|
+
FOUNDBZIP2=true
|
36
|
+
else
|
37
|
+
FOUNDBZIP2=nil
|
38
|
+
fi
|
39
|
+
|
40
|
+
echo $FOUNDBZIP2
|
41
|
+
AC_SUBST(FOUNDBZIP2)
|
42
|
+
|
43
|
+
AC_MSG_CHECKING([for Ruby zlib (gzip) library])
|
44
|
+
if $RUBYBIN -e "require 'zlib'" 2>/dev/null ; then
|
45
|
+
FOUNDGZIP=true
|
46
|
+
else
|
47
|
+
FOUNDGZIP=nil
|
48
|
+
fi
|
49
|
+
echo $FOUNDGZIP
|
50
|
+
AC_SUBST(FOUNDGZIP)
|
51
|
+
|
52
|
+
if $winbuild ; then
|
53
|
+
FOUNDBZIP=true
|
54
|
+
FOUNDGZIP=true
|
55
|
+
fi
|
56
|
+
|
57
|
+
# Checks for libraries.
|
58
|
+
|
59
|
+
# Checks for header files.
|
60
|
+
AC_HEADER_STDC
|
61
|
+
AC_CHECK_HEADERS([stdlib.h sys/time.h unistd.h])
|
62
|
+
|
63
|
+
# Checks for typedefs, structures, and compiler characteristics.
|
64
|
+
AC_HEADER_STDBOOL
|
65
|
+
AC_C_CONST
|
66
|
+
|
67
|
+
# Checks for library functions.
|
68
|
+
|
69
|
+
AC_CONFIG_FILES([Makefile])
|
70
|
+
AC_CONFIG_FILES([doc/Makefile])
|
71
|
+
AC_CONFIG_FILES([doc/man/Makefile])
|
72
|
+
AC_CONFIG_FILES([bin/Makefile])
|
73
|
+
AC_CONFIG_FILES([ext/lib/CompLearnLib/FoundComp.rb])
|
74
|
+
AC_CONFIG_FILES([bin/ncd],[chmod +x bin/ncd])
|
75
|
+
AC_CONFIG_FILES([bin/ncdvector],[chmod +x bin/ncdvector])
|
76
|
+
AC_CONFIG_FILES([bin/ncdmatrix],[chmod +x bin/ncdmatrix])
|
77
|
+
AC_CONFIG_FILES([bin/labeltree],[chmod +x bin/labeltree])
|
78
|
+
AC_CONFIG_FILES([bin/maketree],[chmod +x bin/maketree])
|
79
|
+
AC_CONFIG_FILES([bin/makesvm],[chmod +x bin/makesvm])
|
80
|
+
AC_CONFIG_FILES([scripts/CompLearn.iss])
|
81
|
+
AC_CONFIG_FILES([scripts/makeSetup.sh],[chmod +x scripts/makeSetup.sh])
|
82
|
+
AC_CONFIG_FILES([scripts/makedeb.zsh],[chmod +x scripts/makedeb.zsh])
|
83
|
+
if $winbuild ; then
|
84
|
+
cp ext/winbuild/Makefile.winbuild ext/Makefile
|
85
|
+
else
|
86
|
+
AC_CONFIG_COMMANDS([ext/Makefile],[cd $srcdir/ext ; $RUBYBIN extconf.rb ; echo 'distdir:' >> Makefile ], [RUBYBIN=$RUBYBIN])
|
87
|
+
fi
|
88
|
+
|
89
|
+
#AC_CONFIG_FILES([ext/Makefile])
|
90
|
+
|
91
|
+
AC_OUTPUT
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/* ext/config.h. Generated by configure. */
|
2
|
+
/* ext/config.h.in. Generated from configure.ac by autoheader. */
|
3
|
+
|
4
|
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
5
|
+
#define HAVE_INTTYPES_H 1
|
6
|
+
|
7
|
+
/* Define to 1 if you have the <memory.h> header file. */
|
8
|
+
#define HAVE_MEMORY_H 1
|
9
|
+
|
10
|
+
/* Define to 1 if stdbool.h conforms to C99. */
|
11
|
+
/* #undef HAVE_STDBOOL_H */
|
12
|
+
|
13
|
+
/* Define to 1 if you have the <stdint.h> header file. */
|
14
|
+
#define HAVE_STDINT_H 1
|
15
|
+
|
16
|
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
17
|
+
#define HAVE_STDLIB_H 1
|
18
|
+
|
19
|
+
/* Define to 1 if you have the <strings.h> header file. */
|
20
|
+
#define HAVE_STRINGS_H 1
|
21
|
+
|
22
|
+
/* Define to 1 if you have the <string.h> header file. */
|
23
|
+
#define HAVE_STRING_H 1
|
24
|
+
|
25
|
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
26
|
+
#define HAVE_SYS_STAT_H 1
|
27
|
+
|
28
|
+
/* Define to 1 if you have the <sys/time.h> header file. */
|
29
|
+
#define HAVE_SYS_TIME_H 1
|
30
|
+
|
31
|
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
32
|
+
#define HAVE_SYS_TYPES_H 1
|
33
|
+
|
34
|
+
/* Define to 1 if you have the <unistd.h> header file. */
|
35
|
+
#define HAVE_UNISTD_H 1
|
36
|
+
|
37
|
+
/* Define to 1 if the system has the type `_Bool'. */
|
38
|
+
/* #undef HAVE__BOOL */
|
39
|
+
|
40
|
+
/* Name of package */
|
41
|
+
#define PACKAGE "complearn"
|
42
|
+
|
43
|
+
/* Define to the address where bug reports for this package should be sent. */
|
44
|
+
#define PACKAGE_BUGREPORT ""
|
45
|
+
|
46
|
+
/* Define to the full name of this package. */
|
47
|
+
#define PACKAGE_NAME ""
|
48
|
+
|
49
|
+
/* Define to the full name and version of this package. */
|
50
|
+
#define PACKAGE_STRING ""
|
51
|
+
|
52
|
+
/* Define to the one symbol short name of this package. */
|
53
|
+
#define PACKAGE_TARNAME ""
|
54
|
+
|
55
|
+
/* Define to the version of this package. */
|
56
|
+
#define PACKAGE_VERSION ""
|
57
|
+
|
58
|
+
/* Define to 1 if you have the ANSI C header files. */
|
59
|
+
#define STDC_HEADERS 1
|
60
|
+
|
61
|
+
/* Version number of package */
|
62
|
+
#define VERSION "0.6.2"
|
63
|
+
|
64
|
+
/* Define to empty if `const' does not conform to ANSI C. */
|
65
|
+
/* #undef const */
|
@@ -0,0 +1,50 @@
|
|
1
|
+
:t
|
2
|
+
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
3
|
+
s,@SHELL@,/bin/sh,;t t
|
4
|
+
s,@PATH_SEPARATOR@,:,;t t
|
5
|
+
s,@PACKAGE_NAME@,,;t t
|
6
|
+
s,@PACKAGE_TARNAME@,,;t t
|
7
|
+
s,@PACKAGE_VERSION@,,;t t
|
8
|
+
s,@PACKAGE_STRING@,,;t t
|
9
|
+
s,@PACKAGE_BUGREPORT@,,;t t
|
10
|
+
s,@exec_prefix@,${prefix},;t t
|
11
|
+
s,@prefix@,/usr/local,;t t
|
12
|
+
s,@program_transform_name@,s\,x\,x\,,;t t
|
13
|
+
s,@bindir@,${exec_prefix}/bin,;t t
|
14
|
+
s,@sbindir@,${exec_prefix}/sbin,;t t
|
15
|
+
s,@libexecdir@,${exec_prefix}/libexec,;t t
|
16
|
+
s,@datadir@,${prefix}/share,;t t
|
17
|
+
s,@sysconfdir@,${prefix}/etc,;t t
|
18
|
+
s,@sharedstatedir@,${prefix}/com,;t t
|
19
|
+
s,@localstatedir@,${prefix}/var,;t t
|
20
|
+
s,@libdir@,${exec_prefix}/lib,;t t
|
21
|
+
s,@includedir@,${prefix}/include,;t t
|
22
|
+
s,@oldincludedir@,/usr/include,;t t
|
23
|
+
s,@infodir@,${prefix}/info,;t t
|
24
|
+
s,@mandir@,${prefix}/man,;t t
|
25
|
+
s,@build_alias@,,;t t
|
26
|
+
s,@host_alias@,,;t t
|
27
|
+
s,@target_alias@,,;t t
|
28
|
+
s,@DEFS@,-DHAVE_CONFIG_H,;t t
|
29
|
+
s,@ECHO_C@,,;t t
|
30
|
+
s,@ECHO_N@,-n,;t t
|
31
|
+
s,@ECHO_T@,,;t t
|
32
|
+
s,@LIBS@,,;t t
|
33
|
+
s,@SET_MAKE@,,;t t
|
34
|
+
s,@TOPDIR@,/home/cilibrar/src/complearngem/complearn-0.6.2,;t t
|
35
|
+
s,@INSTALL_PROGRAM@,${INSTALL},;t t
|
36
|
+
s,@INSTALL_SCRIPT@,${INSTALL},;t t
|
37
|
+
s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
|
38
|
+
s,@PACKAGE@,complearn,;t t
|
39
|
+
s,@VERSION@,0.6.2,;t t
|
40
|
+
s,@ACLOCAL@,aclocal,;t t
|
41
|
+
s,@AUTOCONF@,autoconf,;t t
|
42
|
+
s,@AUTOMAKE@,automake,;t t
|
43
|
+
s,@AUTOHEADER@,autoheader,;t t
|
44
|
+
s,@MAKEINFO@,makeinfo,;t t
|
45
|
+
s,@RANLIB@,ranlib,;t t
|
46
|
+
s,@ac_ct_RANLIB@,ranlib,;t t
|
47
|
+
s,@WINBUILDDIR@,c:\\build,;t t
|
48
|
+
s,@CC@,gcc,;t t
|
49
|
+
s,@CFLAGS@,-g -O2,;t t
|
50
|
+
s,@LDFLAGS@,,;t t
|
@@ -0,0 +1,13 @@
|
|
1
|
+
:t
|
2
|
+
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
3
|
+
s,@CPPFLAGS@,,;t t
|
4
|
+
s,@ac_ct_CC@,gcc,;t t
|
5
|
+
s,@EXEEXT@,,;t t
|
6
|
+
s,@OBJEXT@,o,;t t
|
7
|
+
s,@RUBYBIN@,/usr/bin/ruby1.8,;t t
|
8
|
+
s,@FOUNDBZIP2@,true,;t t
|
9
|
+
s,@FOUNDGZIP@,true,;t t
|
10
|
+
s,@CPP@,gcc -E,;t t
|
11
|
+
s,@EGREP@,grep -E,;t t
|
12
|
+
s,@LIBOBJS@,,;t t
|
13
|
+
s,@LTLIBOBJS@,,;t t
|
File without changes
|
@@ -0,0 +1,59 @@
|
|
1
|
+
s,@SHELL@,/bin/sh,;t t
|
2
|
+
s,@PATH_SEPARATOR@,:,;t t
|
3
|
+
s,@PACKAGE_NAME@,,;t t
|
4
|
+
s,@PACKAGE_TARNAME@,,;t t
|
5
|
+
s,@PACKAGE_VERSION@,,;t t
|
6
|
+
s,@PACKAGE_STRING@,,;t t
|
7
|
+
s,@PACKAGE_BUGREPORT@,,;t t
|
8
|
+
s,@exec_prefix@,${prefix},;t t
|
9
|
+
s,@prefix@,/usr/local,;t t
|
10
|
+
s,@program_transform_name@,s\,x\,x\,,;t t
|
11
|
+
s,@bindir@,${exec_prefix}/bin,;t t
|
12
|
+
s,@sbindir@,${exec_prefix}/sbin,;t t
|
13
|
+
s,@libexecdir@,${exec_prefix}/libexec,;t t
|
14
|
+
s,@datadir@,${prefix}/share,;t t
|
15
|
+
s,@sysconfdir@,${prefix}/etc,;t t
|
16
|
+
s,@sharedstatedir@,${prefix}/com,;t t
|
17
|
+
s,@localstatedir@,${prefix}/var,;t t
|
18
|
+
s,@libdir@,${exec_prefix}/lib,;t t
|
19
|
+
s,@includedir@,${prefix}/include,;t t
|
20
|
+
s,@oldincludedir@,/usr/include,;t t
|
21
|
+
s,@infodir@,${prefix}/info,;t t
|
22
|
+
s,@mandir@,${prefix}/man,;t t
|
23
|
+
s,@build_alias@,,;t t
|
24
|
+
s,@host_alias@,,;t t
|
25
|
+
s,@target_alias@,,;t t
|
26
|
+
s,@DEFS@,-DHAVE_CONFIG_H,;t t
|
27
|
+
s,@ECHO_C@,,;t t
|
28
|
+
s,@ECHO_N@,-n,;t t
|
29
|
+
s,@ECHO_T@,,;t t
|
30
|
+
s,@LIBS@,,;t t
|
31
|
+
s,@SET_MAKE@,,;t t
|
32
|
+
s,@TOPDIR@,/home/cilibrar/src/complearngem/complearn-0.6.2,;t t
|
33
|
+
s,@INSTALL_PROGRAM@,${INSTALL},;t t
|
34
|
+
s,@INSTALL_SCRIPT@,${INSTALL},;t t
|
35
|
+
s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
|
36
|
+
s,@PACKAGE@,complearn,;t t
|
37
|
+
s,@VERSION@,0.6.2,;t t
|
38
|
+
s,@ACLOCAL@,aclocal,;t t
|
39
|
+
s,@AUTOCONF@,autoconf,;t t
|
40
|
+
s,@AUTOMAKE@,automake,;t t
|
41
|
+
s,@AUTOHEADER@,autoheader,;t t
|
42
|
+
s,@MAKEINFO@,makeinfo,;t t
|
43
|
+
s,@RANLIB@,ranlib,;t t
|
44
|
+
s,@ac_ct_RANLIB@,ranlib,;t t
|
45
|
+
s,@WINBUILDDIR@,c:\\build,;t t
|
46
|
+
s,@CC@,gcc,;t t
|
47
|
+
s,@CFLAGS@,-g -O2,;t t
|
48
|
+
s,@LDFLAGS@,,;t t
|
49
|
+
s,@CPPFLAGS@,,;t t
|
50
|
+
s,@ac_ct_CC@,gcc,;t t
|
51
|
+
s,@EXEEXT@,,;t t
|
52
|
+
s,@OBJEXT@,o,;t t
|
53
|
+
s,@RUBYBIN@,/usr/bin/ruby1.8,;t t
|
54
|
+
s,@FOUNDBZIP2@,true,;t t
|
55
|
+
s,@FOUNDGZIP@,true,;t t
|
56
|
+
s,@CPP@,gcc -E,;t t
|
57
|
+
s,@EGREP@,grep -E,;t t
|
58
|
+
s,@LIBOBJS@,,;t t
|
59
|
+
s,@LTLIBOBJS@,,;t t
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/^[ ]*#[ ]*undef/!b
|
2
|
+
t clr
|
3
|
+
: clr
|
4
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)PACKAGE_NAME$,\1#\2define\3PACKAGE_NAME "",;t
|
5
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)PACKAGE_TARNAME$,\1#\2define\3PACKAGE_TARNAME "",;t
|
6
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)PACKAGE_VERSION$,\1#\2define\3PACKAGE_VERSION "",;t
|
7
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)PACKAGE_STRING$,\1#\2define\3PACKAGE_STRING "",;t
|
8
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)PACKAGE_BUGREPORT$,\1#\2define\3PACKAGE_BUGREPORT "",;t
|
9
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)PACKAGE$,\1#\2define\3PACKAGE "complearn",;t
|
10
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)VERSION$,\1#\2define\3VERSION "0.6.2",;t
|
11
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)STDC_HEADERS$,\1#\2define\3STDC_HEADERS 1,;t
|
12
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_SYS_TYPES_H$,\1#\2define\3HAVE_SYS_TYPES_H 1,;t
|
13
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_SYS_STAT_H$,\1#\2define\3HAVE_SYS_STAT_H 1,;t
|
14
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_STDLIB_H$,\1#\2define\3HAVE_STDLIB_H 1,;t
|
15
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_STRING_H$,\1#\2define\3HAVE_STRING_H 1,;t
|
16
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_MEMORY_H$,\1#\2define\3HAVE_MEMORY_H 1,;t
|
17
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_STRINGS_H$,\1#\2define\3HAVE_STRINGS_H 1,;t
|
18
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_INTTYPES_H$,\1#\2define\3HAVE_INTTYPES_H 1,;t
|
19
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_STDINT_H$,\1#\2define\3HAVE_STDINT_H 1,;t
|
20
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_UNISTD_H$,\1#\2define\3HAVE_UNISTD_H 1,;t
|
21
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_STDLIB_H$,\1#\2define\3HAVE_STDLIB_H 1,;t
|
22
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_SYS_TIME_H$,\1#\2define\3HAVE_SYS_TIME_H 1,;t
|
23
|
+
s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)HAVE_UNISTD_H$,\1#\2define\3HAVE_UNISTD_H 1,;t
|
24
|
+
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
data/doc/FAQ.txt
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
1) Q. The MPI parallel execution environment doesn't seem to be working, why?
|
2
|
+
A. If you are using the bash shell, there is a known problem in that
|
3
|
+
bash does not execute ~/.bash_profile in non-interactive shells. In
|
4
|
+
order to fix this, make sure that you set your important environment
|
5
|
+
variables (LAMRSH, PATH, LD_LIBRARY_CONFIG, RUBYLIB) inside your ~/.bashrc
|
6
|
+
instead.
|
7
|
+
|
8
|
+
2) Q. Where can I find out more about the algorithms used in this system?
|
9
|
+
A. Check out our paper: http://www.arxiv.org/abs/cs.SD/0303025
|
10
|
+
|
11
|
+
3) Q. What do I need to install in order to run this under Windows?
|
12
|
+
A. First, you must install MinGW, Minimalist GNU for Windows, which can
|
13
|
+
be downloaded from
|
14
|
+
http://www.mingw.org/
|
15
|
+
This version of CompLearn is tested with MinGW-3.1.0-1.exe
|
16
|
+
|
17
|
+
Next, you must install MSYS, the Minimal System for MinGW.
|
18
|
+
The author tests with version MSYS-1.0.10.exe
|
19
|
+
|
20
|
+
It is best to install these two programs in the default locations if
|
21
|
+
possible, as the windows packaging scripts assume default locations for
|
22
|
+
all prerequisite software.
|
23
|
+
|
24
|
+
Finally, you must install Ruby for Windows, MinGW version, from
|
25
|
+
http://ftp.ruby-lang.org/pub/ruby/binaries/mingw/1.8
|
26
|
+
The current version is ruby-1.8.1-20040506-i386-mingw32.tar.gz
|
27
|
+
This is installed from within an MSYS command shell using the command
|
28
|
+
tar xCvfz / ruby-1.8.1-20040506-i386-mingw32.tar.gz
|
29
|
+
Once all these are installed, you may download and install the
|
30
|
+
self-extracting CompLearn windows .exe executable file.
|
31
|
+
|
32
|
+
4) Q. What other Debian packages do I need to install to use this software?
|
33
|
+
A. Try:
|
34
|
+
apt-get install ruby1.8 zlib1g libbz2-1.0 libiconv-ruby1.8 libyaml-ruby1.8 libbz2-dev libtest-unit-ruby1.8
|
35
|
+
dpkg -i libbz2lib-ruby1.8*.deb
|
36
|
+
dpkg -i complearn*.deb
|
37
|
+
|
38
|
+
5) Q. What sorts of things might this system do well analyzing?
|
39
|
+
A. So far, I have used this system to analyze
|
40
|
+
|
41
|
+
a) Musical genres rock/jazz/classical (maketree)
|
42
|
+
b) Celtic music classification: jig/reel (makesvm)
|
43
|
+
c) Novel author identification (various)
|
44
|
+
d) Astronomical data spectral state categorization (various)
|
45
|
+
e) Novel translator identification (various)
|
46
|
+
f) Written language development (maketree)
|
47
|
+
g) Online editorialist authorship identification (makesvm)
|
48
|
+
h) Animal kingdom evolutionary trees from genome sequences (maketree)
|
49
|
+
i) SARS virus epidemiology (maketree)
|
50
|
+
j) Scientific paper subject classification (maketree)
|
51
|
+
k) Handwritten digit recognition using NIST special database 19 (makesvm)
|
52
|
+
l) File type identification: binary executable, text, bytecode, MIDI
|
53
|
+
m) Yeast species-strain / genetic sequence analysis
|
54
|
+
n) Network packet categorization, e.g. intrusion detection and monitoring
|
55
|
+
|
56
|
+
Clearly, this method can be used in a wide range of applications.
|
57
|
+
It is up to you to think of new ways to use it. If you do find something
|
58
|
+
interesting, or have questions, please don't hesitate to let me know by
|
59
|
+
email:
|
60
|
+
|
61
|
+
Rudi Cilibrasi
|
62
|
|
63
|
+
|
64
|
+
Have fun!
|
65
|
+
|
66
|
+
-Rudi
|
67
|
+
|
data/doc/Makefile
ADDED
@@ -0,0 +1,286 @@
|
|
1
|
+
# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
|
2
|
+
|
3
|
+
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
4
|
+
# This Makefile.in is free software; the Free Software Foundation
|
5
|
+
# gives unlimited permission to copy and/or distribute it,
|
6
|
+
# with or without modifications, as long as this notice is preserved.
|
7
|
+
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
10
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
11
|
+
# PARTICULAR PURPOSE.
|
12
|
+
|
13
|
+
|
14
|
+
SHELL = /bin/sh
|
15
|
+
|
16
|
+
srcdir = .
|
17
|
+
top_srcdir = ..
|
18
|
+
|
19
|
+
prefix = /usr/local
|
20
|
+
exec_prefix = ${prefix}
|
21
|
+
|
22
|
+
bindir = ${exec_prefix}/bin
|
23
|
+
sbindir = ${exec_prefix}/sbin
|
24
|
+
libexecdir = ${exec_prefix}/libexec
|
25
|
+
datadir = ${prefix}/share
|
26
|
+
sysconfdir = ${prefix}/etc
|
27
|
+
sharedstatedir = ${prefix}/com
|
28
|
+
localstatedir = ${prefix}/var
|
29
|
+
libdir = ${exec_prefix}/lib
|
30
|
+
infodir = ${prefix}/info
|
31
|
+
mandir = ${prefix}/man
|
32
|
+
includedir = ${prefix}/include
|
33
|
+
oldincludedir = /usr/include
|
34
|
+
|
35
|
+
DESTDIR =
|
36
|
+
|
37
|
+
pkgdatadir = $(datadir)/complearn
|
38
|
+
pkglibdir = $(libdir)/complearn
|
39
|
+
pkgincludedir = $(includedir)/complearn
|
40
|
+
|
41
|
+
top_builddir = ..
|
42
|
+
|
43
|
+
ACLOCAL = aclocal
|
44
|
+
AUTOCONF = autoconf
|
45
|
+
AUTOMAKE = automake
|
46
|
+
AUTOHEADER = autoheader
|
47
|
+
|
48
|
+
INSTALL = /usr/bin/install -c
|
49
|
+
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
|
50
|
+
INSTALL_DATA = ${INSTALL} -m 644
|
51
|
+
INSTALL_SCRIPT = ${INSTALL}
|
52
|
+
transform = s,x,x,
|
53
|
+
|
54
|
+
NORMAL_INSTALL = :
|
55
|
+
PRE_INSTALL = :
|
56
|
+
POST_INSTALL = :
|
57
|
+
NORMAL_UNINSTALL = :
|
58
|
+
PRE_UNINSTALL = :
|
59
|
+
POST_UNINSTALL = :
|
60
|
+
CC = gcc
|
61
|
+
FOUNDBZIP2 = true
|
62
|
+
FOUNDGZIP = true
|
63
|
+
MAKEINFO = makeinfo
|
64
|
+
PACKAGE = complearn
|
65
|
+
RANLIB = ranlib
|
66
|
+
RUBYBIN = /usr/bin/ruby1.8
|
67
|
+
SET_MAKE =
|
68
|
+
TOPDIR = /home/cilibrar/src/complearngem/complearn-0.6.2
|
69
|
+
VERSION = 0.6.2
|
70
|
+
WINBUILDDIR = c:\build
|
71
|
+
|
72
|
+
SUBDIRS = man
|
73
|
+
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
74
|
+
CONFIG_CLEAN_FILES =
|
75
|
+
DIST_COMMON = Makefile.am Makefile.in
|
76
|
+
|
77
|
+
|
78
|
+
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
79
|
+
|
80
|
+
TAR = tar
|
81
|
+
GZIP_ENV = --best
|
82
|
+
all: all-redirect
|
83
|
+
.SUFFIXES:
|
84
|
+
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
85
|
+
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps doc/Makefile
|
86
|
+
|
87
|
+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
88
|
+
cd $(top_builddir) \
|
89
|
+
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
90
|
+
|
91
|
+
|
92
|
+
# This directory's subdirectories are mostly independent; you can cd
|
93
|
+
# into them and run `make' without going through this Makefile.
|
94
|
+
# To change the values of `make' variables: instead of editing Makefiles,
|
95
|
+
# (1) if the variable is set in `config.status', edit `config.status'
|
96
|
+
# (which will cause the Makefiles to be regenerated when you run `make');
|
97
|
+
# (2) otherwise, pass the desired values on the `make' command line.
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
all-recursive install-data-recursive install-exec-recursive \
|
102
|
+
installdirs-recursive install-recursive uninstall-recursive \
|
103
|
+
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
104
|
+
@set fnord $(MAKEFLAGS); amf=$$2; \
|
105
|
+
dot_seen=no; \
|
106
|
+
target=`echo $@ | sed s/-recursive//`; \
|
107
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
108
|
+
echo "Making $$target in $$subdir"; \
|
109
|
+
if test "$$subdir" = "."; then \
|
110
|
+
dot_seen=yes; \
|
111
|
+
local_target="$$target-am"; \
|
112
|
+
else \
|
113
|
+
local_target="$$target"; \
|
114
|
+
fi; \
|
115
|
+
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
116
|
+
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
117
|
+
done; \
|
118
|
+
if test "$$dot_seen" = "no"; then \
|
119
|
+
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
120
|
+
fi; test -z "$$fail"
|
121
|
+
|
122
|
+
mostlyclean-recursive clean-recursive distclean-recursive \
|
123
|
+
maintainer-clean-recursive:
|
124
|
+
@set fnord $(MAKEFLAGS); amf=$$2; \
|
125
|
+
dot_seen=no; \
|
126
|
+
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
127
|
+
rev="$$subdir $$rev"; \
|
128
|
+
test "$$subdir" = "." && dot_seen=yes; \
|
129
|
+
done; \
|
130
|
+
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
131
|
+
target=`echo $@ | sed s/-recursive//`; \
|
132
|
+
for subdir in $$rev; do \
|
133
|
+
echo "Making $$target in $$subdir"; \
|
134
|
+
if test "$$subdir" = "."; then \
|
135
|
+
local_target="$$target-am"; \
|
136
|
+
else \
|
137
|
+
local_target="$$target"; \
|
138
|
+
fi; \
|
139
|
+
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
140
|
+
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
141
|
+
done && test -z "$$fail"
|
142
|
+
tags-recursive:
|
143
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
144
|
+
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
145
|
+
done
|
146
|
+
|
147
|
+
tags: TAGS
|
148
|
+
|
149
|
+
ID: $(HEADERS) $(SOURCES) $(LISP)
|
150
|
+
list='$(SOURCES) $(HEADERS)'; \
|
151
|
+
unique=`for i in $$list; do echo $$i; done | \
|
152
|
+
awk ' { files[$$0] = 1; } \
|
153
|
+
END { for (i in files) print i; }'`; \
|
154
|
+
here=`pwd` && cd $(srcdir) \
|
155
|
+
&& mkid -f$$here/ID $$unique $(LISP)
|
156
|
+
|
157
|
+
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
158
|
+
tags=; \
|
159
|
+
here=`pwd`; \
|
160
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
161
|
+
if test "$$subdir" = .; then :; else \
|
162
|
+
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
163
|
+
fi; \
|
164
|
+
done; \
|
165
|
+
list='$(SOURCES) $(HEADERS)'; \
|
166
|
+
unique=`for i in $$list; do echo $$i; done | \
|
167
|
+
awk ' { files[$$0] = 1; } \
|
168
|
+
END { for (i in files) print i; }'`; \
|
169
|
+
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
170
|
+
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
171
|
+
|
172
|
+
mostlyclean-tags:
|
173
|
+
|
174
|
+
clean-tags:
|
175
|
+
|
176
|
+
distclean-tags:
|
177
|
+
-rm -f TAGS ID
|
178
|
+
|
179
|
+
maintainer-clean-tags:
|
180
|
+
|
181
|
+
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
182
|
+
|
183
|
+
subdir = doc
|
184
|
+
|
185
|
+
distdir: $(DISTFILES)
|
186
|
+
@for file in $(DISTFILES); do \
|
187
|
+
d=$(srcdir); \
|
188
|
+
if test -d $$d/$$file; then \
|
189
|
+
cp -pr $$d/$$file $(distdir)/$$file; \
|
190
|
+
else \
|
191
|
+
test -f $(distdir)/$$file \
|
192
|
+
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
193
|
+
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
194
|
+
fi; \
|
195
|
+
done
|
196
|
+
for subdir in $(SUBDIRS); do \
|
197
|
+
if test "$$subdir" = .; then :; else \
|
198
|
+
test -d $(distdir)/$$subdir \
|
199
|
+
|| mkdir $(distdir)/$$subdir \
|
200
|
+
|| exit 1; \
|
201
|
+
chmod 777 $(distdir)/$$subdir; \
|
202
|
+
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
|
203
|
+
|| exit 1; \
|
204
|
+
fi; \
|
205
|
+
done
|
206
|
+
info-am:
|
207
|
+
info: info-recursive
|
208
|
+
dvi-am:
|
209
|
+
dvi: dvi-recursive
|
210
|
+
check-am: all-am
|
211
|
+
check: check-recursive
|
212
|
+
installcheck-am:
|
213
|
+
installcheck: installcheck-recursive
|
214
|
+
install-exec-am:
|
215
|
+
install-exec: install-exec-recursive
|
216
|
+
|
217
|
+
install-data-am:
|
218
|
+
install-data: install-data-recursive
|
219
|
+
|
220
|
+
install-am: all-am
|
221
|
+
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
222
|
+
install: install-recursive
|
223
|
+
uninstall-am:
|
224
|
+
uninstall: uninstall-recursive
|
225
|
+
all-am: Makefile
|
226
|
+
all-redirect: all-recursive
|
227
|
+
install-strip:
|
228
|
+
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
229
|
+
installdirs: installdirs-recursive
|
230
|
+
installdirs-am:
|
231
|
+
|
232
|
+
|
233
|
+
mostlyclean-generic:
|
234
|
+
|
235
|
+
clean-generic:
|
236
|
+
|
237
|
+
distclean-generic:
|
238
|
+
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
239
|
+
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
240
|
+
|
241
|
+
maintainer-clean-generic:
|
242
|
+
mostlyclean-am: mostlyclean-tags mostlyclean-generic
|
243
|
+
|
244
|
+
mostlyclean: mostlyclean-recursive
|
245
|
+
|
246
|
+
clean-am: clean-tags clean-generic mostlyclean-am
|
247
|
+
|
248
|
+
clean: clean-recursive
|
249
|
+
|
250
|
+
distclean-am: distclean-tags distclean-generic clean-am
|
251
|
+
|
252
|
+
distclean: distclean-recursive
|
253
|
+
|
254
|
+
maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
|
255
|
+
distclean-am
|
256
|
+
@echo "This command is intended for maintainers to use;"
|
257
|
+
@echo "it deletes files that may require special tools to rebuild."
|
258
|
+
|
259
|
+
maintainer-clean: maintainer-clean-recursive
|
260
|
+
|
261
|
+
.PHONY: install-data-recursive uninstall-data-recursive \
|
262
|
+
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
|
263
|
+
uninstalldirs-recursive all-recursive check-recursive \
|
264
|
+
installcheck-recursive info-recursive dvi-recursive \
|
265
|
+
mostlyclean-recursive distclean-recursive clean-recursive \
|
266
|
+
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
267
|
+
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
268
|
+
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
|
269
|
+
install-exec install-data-am install-data install-am install \
|
270
|
+
uninstall-am uninstall all-redirect all-am all installdirs-am \
|
271
|
+
installdirs mostlyclean-generic distclean-generic clean-generic \
|
272
|
+
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
273
|
+
|
274
|
+
|
275
|
+
rdoc:
|
276
|
+
(cd .. ; rdoc --op doc/rdoc)
|
277
|
+
|
278
|
+
www:
|
279
|
+
(cd .. ; rdoc --op www/rdoc)
|
280
|
+
|
281
|
+
clean:
|
282
|
+
rm -rf rdoc
|
283
|
+
|
284
|
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
285
|
+
# Otherwise a system limit (for SysV at least) may be exceeded.
|
286
|
+
.NOEXPORT:
|