transfuse 0.4.6 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +34 -1
- data/README.md +5 -17
- data/Rakefile +97 -0
- data/bin/transfuse +11 -11
- data/deps/deps.yaml +53 -4
- data/files.txt +28 -0
- data/lib/transfuse/consensus.rb +0 -1
- data/lib/transfuse/transfuse.rb +11 -1
- data/lib/transfuse/version.rb +2 -2
- data/packaging/build_deps_linux.sh +17 -0
- data/packaging/build_deps_macosx.sh +1 -0
- data/packaging/bundler-config +2 -0
- data/packaging/minify.sh +43 -0
- data/packaging/transfuse +20 -0
- data/test/vagrant/linux-x86_64/Vagrantfile +12 -0
- data/test/vagrant/linux-x86_64/provision.sh +35 -0
- data/transfuse.gemspec +4 -4
- metadata +12 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d2ce7c587a22651d2541e9364d89e2f49ed67eb
|
4
|
+
data.tar.gz: 9b427e13469f85666a8b0f762ec41335e840d090
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faaca3cb15a3268be4d0ac816d71721c58910c8215175aa9bd170b893898aacc34ce5bae146acf2514ee0042b4354ec83cf6fe3b6c2d2cb403b28a8dfae4340f
|
7
|
+
data.tar.gz: bc5ec2f21f650869f112ab7afa10e2bd55066414505afccc2a182ada3737a0e98622738e3dee73d695f0b0e97561ec3fb4e106893c8b9546e3067cb982eebaa7
|
data/.gitignore
CHANGED
@@ -1,3 +1,36 @@
|
|
1
|
+
|
2
|
+
*.gem
|
3
|
+
*.rbc
|
4
|
+
*.so
|
5
|
+
.bundle
|
6
|
+
.config
|
7
|
+
coverage
|
8
|
+
test_data
|
9
|
+
InstalledFiles
|
10
|
+
lib/bundler/man
|
11
|
+
pkg
|
12
|
+
rdoc
|
13
|
+
spec/reports
|
14
|
+
test/tmp
|
15
|
+
test/version_tmp
|
16
|
+
tmp
|
17
|
+
*~
|
18
|
+
.#*
|
19
|
+
\#*
|
20
|
+
*so
|
21
|
+
|
1
22
|
# directories
|
2
23
|
|
3
|
-
coverage
|
24
|
+
coverage
|
25
|
+
|
26
|
+
# vagrant stuff
|
27
|
+
.vagrant
|
28
|
+
|
29
|
+
# packaging stuff
|
30
|
+
*.tar.gz
|
31
|
+
packaging/bindeps
|
32
|
+
packaging/vendor
|
33
|
+
packaging/packaging
|
34
|
+
traveling-ruby*
|
35
|
+
*box
|
36
|
+
|
data/README.md
CHANGED
@@ -2,25 +2,11 @@
|
|
2
2
|
|
3
3
|
Transfuse intelligently merges your multiple de novo transcriptome assemblies. Run multiple assemblies with different de novo assemblers, or different settings in the same assembler and have them combined into a single high quality transcriptome.
|
4
4
|
|
5
|
-
Transfuse takes in the reads you used to
|
5
|
+
Transfuse takes in the reads you used to perform your transcriptome assembly and a list of your assemblies as fasta files and produces a single output fasta file.
|
6
6
|
|
7
7
|
### Installation and Running
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
`gem install transfuse`
|
12
|
-
|
13
|
-
or you can clone this repo:
|
14
|
-
|
15
|
-
`git clone https://github.com/cboursnell/transfuse.git`
|
16
|
-
|
17
|
-
then build and install the ruby gem
|
18
|
-
|
19
|
-
`gem build *spec; gem install *gem`
|
20
|
-
|
21
|
-
Transfuse also requires `vsearch` to be installed which can be downloaded from:
|
22
|
-
|
23
|
-
`https://github.com/torognes/vsearch`
|
9
|
+
Download the latest release and unpack it. This package contains everything that transfuse needs including a version of ruby.
|
24
10
|
|
25
11
|
### Usage
|
26
12
|
|
@@ -40,7 +26,9 @@ Transfuse is run on the command line. The options are:
|
|
40
26
|
|
41
27
|
An example command:
|
42
28
|
|
43
|
-
|
29
|
+
```
|
30
|
+
transfuse --assemblies soap-k31.fa,soap-k41.fa,soap-k51.fa --left reads_1.fq --right reads_2.fq --output soap-merged.fa --threads 12
|
31
|
+
```
|
44
32
|
|
45
33
|
### Contributing
|
46
34
|
|
data/Rakefile
CHANGED
@@ -24,3 +24,100 @@ end
|
|
24
24
|
|
25
25
|
desc "Run tests"
|
26
26
|
task :default => :test
|
27
|
+
|
28
|
+
# packaging
|
29
|
+
|
30
|
+
require 'bundler/setup'
|
31
|
+
|
32
|
+
PACKAGE_NAME = "transfuse"
|
33
|
+
VERSION = "0.5.0"
|
34
|
+
TRAVELING_RUBY_VERSION = "20150210-2.2.0"
|
35
|
+
|
36
|
+
desc "Package your app"
|
37
|
+
task :package => ['package:linux', 'package:osx']
|
38
|
+
|
39
|
+
namespace :package do
|
40
|
+
|
41
|
+
desc "Package your app for Linux x86_64"
|
42
|
+
task :linux => [:bundle_install, "packaging/packaging/traveling-ruby-#{TRAVELING_RUBY_VERSION}-linux-x86_64.tar.gz"] do
|
43
|
+
create_package("linux-x86_64")
|
44
|
+
end
|
45
|
+
|
46
|
+
desc "Package your app for OS X"
|
47
|
+
task :osx => [:bundle_install, "packaging/packaging/traveling-ruby-#{TRAVELING_RUBY_VERSION}-osx.tar.gz"] do
|
48
|
+
create_package("osx")
|
49
|
+
end
|
50
|
+
|
51
|
+
file "packaging/packaging/traveling-ruby-#{TRAVELING_RUBY_VERSION}-linux-x86_64.tar.gz" do
|
52
|
+
download_runtime("linux-x86_64")
|
53
|
+
end
|
54
|
+
|
55
|
+
file "packaging/packaging/traveling-ruby-#{TRAVELING_RUBY_VERSION}-osx.tar.gz" do
|
56
|
+
download_runtime("osx")
|
57
|
+
end
|
58
|
+
|
59
|
+
desc "Install gems to local directory"
|
60
|
+
task :bundle_install do
|
61
|
+
if RUBY_VERSION !~ /^2\.2\./
|
62
|
+
abort "You can only 'bundle install' using Ruby 2.2, because that's what Traveling Ruby uses."
|
63
|
+
end
|
64
|
+
Bundler.with_clean_env do
|
65
|
+
sh "env BUNDLE_IGNORE_CONFIG=1 bundle install --path packaging/vendor"
|
66
|
+
end
|
67
|
+
sh "rm -f packaging/vendor/*/*/cache/*"
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def create_package(target)
|
72
|
+
package_pref = "#{PACKAGE_NAME}-#{VERSION}-#{target}"
|
73
|
+
package_dir = File.join("packaging", package_pref)
|
74
|
+
sh "rm -rf #{package_dir}"
|
75
|
+
sh "mkdir -p #{package_dir}/lib/app"
|
76
|
+
|
77
|
+
# copy things from gem to package
|
78
|
+
sh "cp -r bin #{package_dir}/lib/" # bin
|
79
|
+
sh "cp -r lib #{package_dir}/lib/" # lib
|
80
|
+
sh "cp -r deps #{package_dir}/lib/" # deps
|
81
|
+
sh "cp files.txt #{package_dir}/lib/" # deps
|
82
|
+
sh "cp Gemfile* #{package_dir}/lib/" # Gemfiles
|
83
|
+
sh "cp *gemspec #{package_dir}/lib/" # gemspec
|
84
|
+
|
85
|
+
# download travelling ruby
|
86
|
+
sh "mkdir #{package_dir}/lib/ruby"
|
87
|
+
sh "tar -xzf packaging/packaging/traveling-ruby-#{TRAVELING_RUBY_VERSION}-#{target}.tar.gz -C #{package_dir}/lib/ruby"
|
88
|
+
sh "cp packaging/transfuse #{package_dir}/transfuse"
|
89
|
+
sh "cp -pR packaging/vendor/* #{package_dir}/lib/"
|
90
|
+
sh "cp Gemfile Gemfile.lock #{package_dir}/lib/"
|
91
|
+
|
92
|
+
# install binary dependencies
|
93
|
+
sh "mkdir -p #{package_dir}/bin"
|
94
|
+
sh "mkdir -p #{package_dir}/lib"
|
95
|
+
sh "wget -nc https://github.com/Blahah/snap/releases/download/v1.0beta.18/snap_v1.0beta.18_linux.tar.gz"
|
96
|
+
sh "wget -nc https://github.com/Blahah/transrate-tools/releases/download/v1.0.0/bam-read_v1.0.0_linux.tar.gz"
|
97
|
+
sh "wget -nc https://github.com/COMBINE-lab/salmon/releases/download/v0.4.2/SalmonBeta-0.4.2_DebianSqueeze.tar.gz"
|
98
|
+
sh "wget -nc https://github.com/torognes/vsearch/releases/download/v1.9.5/vsearch-1.9.5-linux-x86_64.tar.gz"
|
99
|
+
sh "find . -maxdepth 1 -name '*.tar.gz' -exec tar xzf '{}' \\;" # unpack
|
100
|
+
sh "cp snap-aligner #{package_dir}/bin/."
|
101
|
+
sh "cp bam-read #{package_dir}/bin/."
|
102
|
+
sh "cp SalmonBeta-0.4.2_DebianSqueeze/bin/salmon #{package_dir}/bin/."
|
103
|
+
sh "cp -r SalmonBeta-0.4.2_DebianSqueeze/lib/* #{package_dir}/lib/."
|
104
|
+
sh "cp vsearch-1.9.5-linux-x86_64/bin/vsearch #{package_dir}/bin/."
|
105
|
+
|
106
|
+
sh "cp packaging/libruby.* #{package_dir}/lib/."
|
107
|
+
|
108
|
+
sh "mkdir #{package_dir}/lib/.bundle"
|
109
|
+
sh "cp packaging/bundler-config #{package_dir}/lib/.bundle/config"
|
110
|
+
# create package
|
111
|
+
if !ENV['DIR_ONLY']
|
112
|
+
sh "cd packaging && tar -czf #{package_pref}.tar.gz #{package_pref}"
|
113
|
+
sh "rm -rf #{package_dir}"
|
114
|
+
end
|
115
|
+
sh "rm -rf packaging/vendor packaging/bindeps .bundle"
|
116
|
+
|
117
|
+
end
|
118
|
+
|
119
|
+
def download_runtime(target)
|
120
|
+
sh "mkdir -p packaging/packaging &&" +
|
121
|
+
"cd packaging/packaging && curl -L -O --fail " +
|
122
|
+
"http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-#{TRAVELING_RUBY_VERSION}-#{target}.tar.gz"
|
123
|
+
end
|
data/bin/transfuse
CHANGED
@@ -31,22 +31,22 @@ opts = Trollop::options do
|
|
31
31
|
opt :output, "write merged assembly to file", :type => String
|
32
32
|
opt :threads, "number of threads", :type => :int, :default => 1
|
33
33
|
opt :id, "sequence identity to cluster at", :type => :float, :default => 1.0
|
34
|
-
|
34
|
+
opt :install, "install dependencies"
|
35
35
|
opt :verbose, "be verbose"
|
36
36
|
end
|
37
37
|
|
38
38
|
transfuse = Transfuse::Transfuse.new opts.threads, opts.verbose
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
#
|
48
|
-
|
49
|
-
|
40
|
+
if opts.install
|
41
|
+
transfuse.install_dependencies
|
42
|
+
abort "Everything installed"
|
43
|
+
end
|
44
|
+
missing = transfuse.check_dependencies
|
45
|
+
unless missing.empty?
|
46
|
+
list = missing.collect {|i| "#{i.name}:#{i.version}"}.join("\n - ")
|
47
|
+
msg = "Not installed: \n - #{list}"
|
48
|
+
abort msg
|
49
|
+
end
|
50
50
|
|
51
51
|
assembly_files = transfuse.check_files(opts.assemblies, "assemblies")
|
52
52
|
left = transfuse.check_files(opts.left, "left")
|
data/deps/deps.yaml
CHANGED
@@ -2,10 +2,59 @@ vsearch:
|
|
2
2
|
binaries:
|
3
3
|
- vsearch
|
4
4
|
version:
|
5
|
-
number: '1.
|
5
|
+
number: '1.8.0'
|
6
6
|
command: 'vsearch --version'
|
7
7
|
url:
|
8
8
|
64bit:
|
9
|
-
linux: https://github.com/torognes/vsearch/releases/download/v1.
|
10
|
-
macosx: https://github.com/torognes/vsearch/releases/download/v1.
|
11
|
-
unpack:
|
9
|
+
linux: https://github.com/torognes/vsearch/releases/download/v1.8.0/vsearch-1.8.0-linux-x86_64.tar.gz
|
10
|
+
macosx: https://github.com/torognes/vsearch/releases/download/v1.8.0/vsearch-1.8.0-osx-x86_64.tar.gz
|
11
|
+
unpack: true
|
12
|
+
snap:
|
13
|
+
binaries:
|
14
|
+
- snap-aligner
|
15
|
+
version:
|
16
|
+
number: '1.0beta.18'
|
17
|
+
command: 'snap-aligner'
|
18
|
+
url:
|
19
|
+
64bit:
|
20
|
+
linux: https://github.com/Blahah/snap/releases/download/v1.0beta.18/snap_v1.0beta.18_linux.tar.gz
|
21
|
+
macosx: https://github.com/Blahah/snap/releases/download/v1.0beta.18/snap_v1.0beta.18_osx.tar.gz
|
22
|
+
bam-read:
|
23
|
+
binaries:
|
24
|
+
- bam-read
|
25
|
+
version:
|
26
|
+
number: '1.0.0'
|
27
|
+
command: 'bam-read'
|
28
|
+
url:
|
29
|
+
64bit:
|
30
|
+
linux: https://github.com/Blahah/transrate-tools/releases/download/v1.0.0/bam-read_v1.0.0_linux.tar.gz
|
31
|
+
macosx: https://github.com/Blahah/transrate-tools/releases/download/v1.0.0/bam-read_v1.0.0_osx.tar.gz
|
32
|
+
unpack: true
|
33
|
+
salmon:
|
34
|
+
binaries:
|
35
|
+
- salmon
|
36
|
+
libraries:
|
37
|
+
- libgcc_s.so.1
|
38
|
+
- libgomp.so.1
|
39
|
+
- libm.so.6
|
40
|
+
- librt.so.1
|
41
|
+
- libstdc++.so.6
|
42
|
+
- libtbb.so
|
43
|
+
- libtbb.so.2
|
44
|
+
- libtbbmalloc.so
|
45
|
+
- libtbbmalloc.so.2
|
46
|
+
- libtbbmalloc_proxy.so
|
47
|
+
- libtbbmalloc_proxy.so.2
|
48
|
+
- libcmph.0.dylib
|
49
|
+
- libcmph.dylib
|
50
|
+
- libtbb.dylib
|
51
|
+
- libtbbmalloc.dylib
|
52
|
+
- libtbbmalloc_proxy.dylib
|
53
|
+
- libsalmon_core.a
|
54
|
+
version:
|
55
|
+
number: '0.4'
|
56
|
+
command: 'salmon -v'
|
57
|
+
url:
|
58
|
+
64bit:
|
59
|
+
linux: https://github.com/COMBINE-lab/salmon/releases/download/v0.4.2/SalmonBeta-0.4.2_DebianSqueeze.tar.gz
|
60
|
+
macosx: https://github.com/COMBINE-lab/salmon/releases/download/v0.4.2/SalmonBeta-0.4.2_OSX-10.10.tar.gz
|
data/files.txt
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
.gitignore
|
2
|
+
Gemfile
|
3
|
+
README.md
|
4
|
+
Rakefile
|
5
|
+
bin/transfuse
|
6
|
+
deps/deps.yaml
|
7
|
+
files.txt
|
8
|
+
lib/transfuse.rb
|
9
|
+
lib/transfuse/cluster.rb
|
10
|
+
lib/transfuse/cmd.rb
|
11
|
+
lib/transfuse/consensus.rb
|
12
|
+
lib/transfuse/transfuse.rb
|
13
|
+
lib/transfuse/version.rb
|
14
|
+
notes.md
|
15
|
+
packaging/build_deps_linux.sh
|
16
|
+
packaging/build_deps_macosx.sh
|
17
|
+
packaging/bundler-config
|
18
|
+
packaging/minify.sh
|
19
|
+
packaging/transfuse
|
20
|
+
test/data/assembly1.fasta
|
21
|
+
test/data/assembly2.fasta
|
22
|
+
test/data/contig_scores1.csv
|
23
|
+
test/helper.rb
|
24
|
+
test/test_cluster.rb
|
25
|
+
test/test_transfuse.rb
|
26
|
+
test/vagrant/linux-x86_64/Vagrantfile
|
27
|
+
test/vagrant/linux-x86_64/provision.sh
|
28
|
+
transfuse.gemspec
|
data/lib/transfuse/consensus.rb
CHANGED
data/lib/transfuse/transfuse.rb
CHANGED
@@ -191,10 +191,20 @@ module Transfuse
|
|
191
191
|
end
|
192
192
|
|
193
193
|
def transrate files, left, right
|
194
|
+
unless left.is_a?(Array)
|
195
|
+
left = [left]
|
196
|
+
end
|
197
|
+
unless right.is_a?(Array)
|
198
|
+
right = [right]
|
199
|
+
end
|
194
200
|
scores = {}
|
195
201
|
shortname = ""
|
196
202
|
files.each do |n|
|
197
|
-
|
203
|
+
a = File.basename(n).split("_").first
|
204
|
+
if a.length > 5
|
205
|
+
a = a[0..4]
|
206
|
+
end
|
207
|
+
# shortname << File.basename(n, File.extname(n))[0..4]
|
198
208
|
end
|
199
209
|
scores_file = "#{shortname}_scores.csv"
|
200
210
|
if File.exist?(scores_file)
|
data/lib/transfuse/version.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
echo "don't use this"
|
2
|
+
|
3
|
+
export PATH=~/gcc-4.8.4/bin:~/cmake-3.1.3-Linux-x86_64/bin:$PATH
|
4
|
+
|
5
|
+
cd ~
|
6
|
+
|
7
|
+
# vsearch
|
8
|
+
wget https://github.com/torognes/vsearch/releases/download/v1.8.0/vsearch-1.8.0-linux-x86_64.tar.gz
|
9
|
+
tar xzf vsearch-1.8.0-linux-x86_64.tar.gz
|
10
|
+
cd vsearch-1.8.0-linux-x86_64
|
11
|
+
cd bin
|
12
|
+
tar zcvf vsearch.tar.gz vsearch
|
13
|
+
## package it up
|
14
|
+
cp vsearch.tar.gz /vagrant/
|
15
|
+
|
16
|
+
|
17
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
echo "mac osx not supported yet"
|
data/packaging/minify.sh
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
|
3
|
+
# Remove tests
|
4
|
+
rm -rf lib/app/ruby/*/gems/*/test
|
5
|
+
rm -rf lib/app/ruby/*/gems/*/tests
|
6
|
+
rm -rf lib/app/ruby/*/gems/*/spec
|
7
|
+
rm -rf lib/app/ruby/*/gems/*/features
|
8
|
+
rm -rf lib/app/ruby/*/gems/*/benchmark
|
9
|
+
|
10
|
+
# Remove documentation
|
11
|
+
rm -f lib/app/ruby/*/gems/*/README*
|
12
|
+
rm -f lib/app/ruby/*/gems/*/CHANGE*
|
13
|
+
rm -f lib/app/ruby/*/gems/*/Change*
|
14
|
+
rm -f lib/app/ruby/*/gems/*/COPYING*
|
15
|
+
rm -f lib/app/ruby/*/gems/*/LICENSE*
|
16
|
+
rm -f lib/app/ruby/*/gems/*/MIT-LICENSE*
|
17
|
+
rm -f lib/app/ruby/*/gems/*/*.txt
|
18
|
+
rm -f lib/app/ruby/*/gems/*/*.md
|
19
|
+
rm -f lib/app/ruby/*/gems/*/*.rdoc
|
20
|
+
rm -rf lib/app/ruby/*/gems/*/doc
|
21
|
+
rm -rf lib/app/ruby/*/gems/*/docs
|
22
|
+
rm -rf lib/app/ruby/*/gems/*/example
|
23
|
+
rm -rf lib/app/ruby/*/gems/*/examples
|
24
|
+
rm -rf lib/app/ruby/*/gems/*/sample
|
25
|
+
rm -rf lib/app/ruby/*/gems/*/doc-api
|
26
|
+
find lib/app/ruby -name '*.md' | xargs rm -f
|
27
|
+
|
28
|
+
# Remove misc unnecessary files
|
29
|
+
rm -rf lib/app/ruby/*/gems/*/.gitignore
|
30
|
+
rm -rf lib/app/ruby/*/gems/*/.travis.yml
|
31
|
+
|
32
|
+
# Remove leftover native extension sources
|
33
|
+
rm -f lib/app/ruby/*/gems/*/ext/Makefile
|
34
|
+
rm -f lib/app/ruby/*/gems/*/ext/*/Makefile
|
35
|
+
find lib/app/ruby -name '*.c' | xargs rm -f
|
36
|
+
find lib/app/ruby -name '*.cpp' | xargs rm -f
|
37
|
+
find lib/app/ruby -name '*.h' | xargs rm -f
|
38
|
+
find lib/app/ruby -name '*.rl' | xargs rm -f
|
39
|
+
find lib/app/ruby -name 'extconf.rb' | xargs rm -f
|
40
|
+
|
41
|
+
# Remove Java files. They're only used for JRuby support
|
42
|
+
find lib/app/ruby -name '*.java' | xargs rm -f
|
43
|
+
find lib/app/ruby -name '*.class' | xargs rm -f
|
data/packaging/transfuse
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
# Figure out where this script is located.
|
5
|
+
SELFDIR="`dirname \"$0\"`"
|
6
|
+
SELFDIR="`cd \"$SELFDIR\" && pwd`"
|
7
|
+
|
8
|
+
# Temporarily set PATH and LD_LIBRARY_PATH
|
9
|
+
export PATH=$SELFDIR/bin:$PATH
|
10
|
+
export LD_LIBRARY_PATH=$SELFDIR/lib:$LD_LIBRARY_PATH
|
11
|
+
export DYLD_FALLBACK_LIBRARY_PATH=$SELFDIR/lib:$DYLD_FALLBACK_LIBRARY_PATH
|
12
|
+
# Tell Bundler where the Gemfile and gems are.
|
13
|
+
export BUNDLE_GEMFILE="$SELFDIR/lib/Gemfile"
|
14
|
+
unset BUNDLE_IGNORE_CONFIG
|
15
|
+
|
16
|
+
# Tell transfuse this is the packaged version
|
17
|
+
# export TRANSFUSE_PACKAGED_BINARY=true
|
18
|
+
|
19
|
+
# Run the actual app using the bundled Ruby interpreter, with Bundler activated.
|
20
|
+
exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$SELFDIR/lib/bin/transfuse" $@
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
5
|
+
VAGRANTFILE_API_VERSION = "2"
|
6
|
+
|
7
|
+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
8
|
+
config.vm.box = "andy_b_84/debian-squeeze64-vanilla"
|
9
|
+
config.vm.network :forwarded_port, guest: 22, host: 18723
|
10
|
+
|
11
|
+
config.vm.provision "shell", path: "provision.sh"
|
12
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
su vagrant
|
2
|
+
|
3
|
+
# Setup
|
4
|
+
sudo apt-get update -y
|
5
|
+
sudo apt-get install -y curl build-essential git zlib1g zlib1g-dev cmake emacs23-nox
|
6
|
+
|
7
|
+
# Install a multi-user RVM install with the latest ruby
|
8
|
+
wget https://keybase.io/mpapis/key.asc
|
9
|
+
gpg --import key.asc
|
10
|
+
|
11
|
+
\curl -sSL https://get.rvm.io | bash -s stable --ruby
|
12
|
+
|
13
|
+
source /home/vagrant/.rvm/scripts/rvm
|
14
|
+
|
15
|
+
# Add user to RVM group
|
16
|
+
#sudo usermod -a -G rvm vagrant
|
17
|
+
|
18
|
+
# Install dependencies
|
19
|
+
gem install bundler rake
|
20
|
+
|
21
|
+
# Install transrate
|
22
|
+
#git clone https://github.com/Blahah/transrate.git
|
23
|
+
#cd transrate
|
24
|
+
#gem build *spec
|
25
|
+
#gem install *gem
|
26
|
+
#rm *gem
|
27
|
+
#cd ..
|
28
|
+
|
29
|
+
# Install transfuse
|
30
|
+
git clone https://github.com/cboursnell/transfuse.git
|
31
|
+
cd transfuse
|
32
|
+
sudo chmod -R 775 .
|
33
|
+
|
34
|
+
|
35
|
+
#bundle exec rake package:linux
|
data/transfuse.gemspec
CHANGED
@@ -4,12 +4,12 @@ require File.expand_path('../lib/transfuse/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = 'transfuse'
|
6
6
|
gem.version = Transfuse::VERSION::STRING.dup
|
7
|
-
gem.date = '2015-
|
7
|
+
gem.date = '2015-12-01'
|
8
8
|
gem.summary = "Merge multiple transcriptome assemblies"
|
9
9
|
gem.description = "See summary"
|
10
|
-
gem.authors = ["
|
11
|
-
gem.email = ['
|
12
|
-
gem.files =
|
10
|
+
gem.authors = ["Chris Boursnell", "Richard Smith-Unna"]
|
11
|
+
gem.email = ['cmb211@cam.ac.uk', 'rds45@cam.ac.uk']
|
12
|
+
gem.files = File.readlines('files.txt').map { |f| f.chomp }
|
13
13
|
gem.executables = ["transfuse"]
|
14
14
|
gem.require_paths = %w( lib )
|
15
15
|
gem.homepage = 'https://github.com/cboursnell/transfuse'
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transfuse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Richard Smith-Unna
|
8
7
|
- Chris Boursnell
|
8
|
+
- Richard Smith-Unna
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: transrate
|
@@ -213,8 +213,8 @@ dependencies:
|
|
213
213
|
version: 0.8.2
|
214
214
|
description: See summary
|
215
215
|
email:
|
216
|
-
- rds45@cam.ac.uk
|
217
216
|
- cmb211@cam.ac.uk
|
217
|
+
- rds45@cam.ac.uk
|
218
218
|
executables:
|
219
219
|
- transfuse
|
220
220
|
extensions: []
|
@@ -226,6 +226,7 @@ files:
|
|
226
226
|
- Rakefile
|
227
227
|
- bin/transfuse
|
228
228
|
- deps/deps.yaml
|
229
|
+
- files.txt
|
229
230
|
- lib/transfuse.rb
|
230
231
|
- lib/transfuse/cluster.rb
|
231
232
|
- lib/transfuse/cmd.rb
|
@@ -233,12 +234,19 @@ files:
|
|
233
234
|
- lib/transfuse/transfuse.rb
|
234
235
|
- lib/transfuse/version.rb
|
235
236
|
- notes.md
|
237
|
+
- packaging/build_deps_linux.sh
|
238
|
+
- packaging/build_deps_macosx.sh
|
239
|
+
- packaging/bundler-config
|
240
|
+
- packaging/minify.sh
|
241
|
+
- packaging/transfuse
|
236
242
|
- test/data/assembly1.fasta
|
237
243
|
- test/data/assembly2.fasta
|
238
244
|
- test/data/contig_scores1.csv
|
239
245
|
- test/helper.rb
|
240
246
|
- test/test_cluster.rb
|
241
247
|
- test/test_transfuse.rb
|
248
|
+
- test/vagrant/linux-x86_64/Vagrantfile
|
249
|
+
- test/vagrant/linux-x86_64/provision.sh
|
242
250
|
- transfuse.gemspec
|
243
251
|
homepage: https://github.com/cboursnell/transfuse
|
244
252
|
licenses:
|