Skip to content

Commit

Permalink
Initial commit to bio-statsample-timeseries.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkurGel committed Jul 22, 2013
0 parents commit de98d7a
Show file tree
Hide file tree
Showing 16 changed files with 386 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .document
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
lib/**/*.rb
bin/*
-
features/**/*.feature
LICENSE.txt
52 changes: 52 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# rcov generated
coverage
coverage.data

# rdoc generated
rdoc

# yard generated
doc
.yardoc

# bundler
.bundle

# jeweler generated
pkg

# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
#
# * Create a file at ~/.gitignore
# * Include files you want ignored
# * Run: git config --global core.excludesfile ~/.gitignore
#
# After doing this, these files will be ignored in all your git projects,
# saving you from having to 'pollute' every project you touch with them
#
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
#
# For MacOS:
#
#.DS_Store

# For TextMate
#*.tmproj
#tmtags

# For emacs:
#*~
#\#*
#.\#*

# For vim:
#*.swp

# For redcar:
#.redcar

# For rubinius:
#*.rbc
# Ignore Gemfile.lock for gems. See http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
Gemfile.lock
*.gemspec
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: ruby
rvm:
- 1.9.2
- 1.9.3
- jruby-19mode # JRuby in 1.9 mode
- rbx-19mode
# - 1.8.7
# - jruby-18mode # JRuby in 1.8 mode
# - rbx-18mode

# uncomment this line if your project needs to run something other than `rake`:
# script: bundle exec rspec spec
16 changes: 16 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
source "http://rubygems.org"
# Add dependencies required to use your gem here.
# Example:
# gem "activesupport", ">= 2.3.5"

# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "shoulda", ">= 0"
gem "rdoc", "~> 3.12"
gem "cucumber", ">= 0"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.8.4"
gem "bio", ">= 1.4.2"
gem "rdoc", "~> 3.12"
end
20 changes: 20 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2013 Ankur Goel

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# bio-statsample-timeseries

[![Build Status](https://secure.travis-ci.org/ankurgel/bioruby-statsample-timeseries.png)](http://travis-ci.org/ankurgel/bioruby-statsample-timeseries)

Full description goes here

Note: this software is under active development!

## Installation

```sh
gem install bio-statsample-timeseries
```

## Usage

```ruby
require 'bio-statsample-timeseries'
```

The API doc is online. For more code examples see the test files in
the source tree.

## Project home page

Information on the source tree, documentation, examples, issues and
how to contribute, see

http://github.com/ankurgel/bioruby-statsample-timeseries

The BioRuby community is on IRC server: irc.freenode.org, channel: #bioruby.

## Cite

If you use this software, please cite one of

* [BioRuby: bioinformatics software for the Ruby programming language](http://dx.doi.org/10.1093/bioinformatics/btq475)
* [Biogem: an effective tool-based approach for scaling up open source software development in bioinformatics](http://dx.doi.org/10.1093/bioinformatics/bts080)

## Biogems.info

This Biogem is published at [#bio-statsample-timeseries](http://biogems.info/index.html)

## Copyright

Copyright (c) 2013 Ankur Goel. See LICENSE.txt for further details.

48 changes: 48 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
= bio-statsample-timeseries

{<img
src="https://secure.travis-ci.org/ankurgel/bioruby-statsample-timeseries.png"
/>}[http://travis-ci.org/#!/ankurgel/bioruby-statsample-timeseries]

Full description goes here

Note: this software is under active development!

== Installation

gem install bio-statsample-timeseries

== Usage

== Developers

To use the library

require 'bio-statsample-timeseries'

The API doc is online. For more code examples see also the test files in
the source tree.

== Project home page

Information on the source tree, documentation, issues and how to contribute, see

http://github.com/ankurgel/bioruby-statsample-timeseries

The BioRuby community is on IRC server: irc.freenode.org, channel: #bioruby.

== Cite

If you use this software, please cite one of

* [BioRuby: bioinformatics software for the Ruby programming language](http://dx.doi.org/10.1093/bioinformatics/btq475)
* [Biogem: an effective tool-based approach for scaling up open source software development in bioinformatics](http://dx.doi.org/10.1093/bioinformatics/bts080)

== Biogems.info

This Biogem is published at http://biogems.info/index.html#bio-statsample-timeseries

== Copyright

Copyright (c) 2013 Ankur Goel. See LICENSE.txt for further details.

48 changes: 48 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# encoding: utf-8

require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'

require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "bio-statsample-timeseries"
gem.homepage = "http://github.com/ankurgel/bioruby-statsample-timeseries"
gem.license = "MIT"
gem.summary = %Q{TODO: one-line summary of your gem}
gem.description = %Q{TODO: longer description of your gem}
gem.email = "ankurgel@gmail.com"
gem.authors = ["Ankur Goel"]
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)

task :default => :test

require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "bio-statsample-timeseries #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
74 changes: 74 additions & 0 deletions bin/bio-statsample-timeseries
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/usr/bin/env ruby
#
# BioRuby bio-statsample-timeseries Plugin BioStatsampleTimeseries
# Author:: Ankur Goel
# Copyright:: 2013

USAGE = "Describe bio-statsample-timeseries"

if ARGV.size == 0
print USAGE
end

require 'bio-statsample-timeseries'
require 'optparse'

# Uncomment when using the bio-logger
# require 'bio-logger'
# Bio::Log::CLI.logger('stderr')
# Bio::Log::CLI.trace('info')

options = {:example_switch=>false,:show_help=>false}
opts = OptionParser.new do |o|
o.banner = "Usage: #{File.basename($0)} [options] reponame\ne.g. #{File.basename($0)} the-perfect-gem"

o.on('--example_parameter [EXAMPLE_PARAMETER]', 'TODO: put a description for the PARAMETER') do |example_parameter|
# TODO: your logic here, below an example
options[:example_parameter] = 'this is a parameter'
end

o.separator ""
o.on("--switch-example", 'TODO: put a description for the SWITCH') do
# TODO: your logic here, below an example
self[:example_switch] = true
end

# Uncomment the following when using the bio-logger
# o.separator ""
# o.on("--logger filename",String,"Log to file (default stderr)") do | name |
# Bio::Log::CLI.logger(name)
# end
#
# o.on("--trace options",String,"Set log level (default INFO, see bio-logger)") do | s |
# Bio::Log::CLI.trace(s)
# end
#
# o.on("-q", "--quiet", "Run quietly") do |q|
# Bio::Log::CLI.trace('error')
# end
#
# o.on("-v", "--verbose", "Run verbosely") do |v|
# Bio::Log::CLI.trace('info')
# end
#
# o.on("--debug", "Show debug messages") do |v|
# Bio::Log::CLI.trace('debug')
# end

o.separator ""
o.on_tail('-h', '--help', 'display this help and exit') do
options[:show_help] = true
end
end

begin
opts.parse!(ARGV)

# Uncomment the following when using the bio-logger
# Bio::Log::CLI.configure('bio-statsample-timeseries')

# TODO: your code here
# use options for your logic
rescue OptionParser::InvalidOption => e
options[:invalid_argument] = e.message
end
9 changes: 9 additions & 0 deletions features/bio-statsample-timeseries.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Feature: something something
In order to something something
A user something something
something something something

Scenario: something something
Given inspiration
When I create a sweet new gem
Then everyone should see how awesome I am
Empty file.
15 changes: 15 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end

$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'bio-statsample-timeseries'

require 'test/unit/assertions'

World(Test::Unit::Assertions)
12 changes: 12 additions & 0 deletions lib/bio-statsample-timeseries.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Please require your code below, respecting the naming conventions in the
# bioruby directory tree.
#
# For example, say you have a plugin named bio-plugin, the only uncommented
# line in this file would be
#
# require 'bio/bio-plugin/plugin'
#
# In this file only require other files. Avoid other source code.

require 'bio-statsample-timeseries/statsample-timeseries.rb'

3 changes: 3 additions & 0 deletions lib/bio-statsample-timeseries/statsample-timeseries.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module BioStatsampleTimeseries

end
18 changes: 18 additions & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'test/unit'
require 'shoulda'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'bio-statsample-timeseries'

class Test::Unit::TestCase
end
Loading

0 comments on commit de98d7a

Please sign in to comment.