lorem_ipsum_bio 0.0.0
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.
- checksums.yaml +7 -0
- data/lib/lorem_ipsum_bio.rb +24 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2c1aeb80766af60230bf51edc2ea39af0a2dd4e9
|
4
|
+
data.tar.gz: f872f3d272ad607e80390d7083099976fff7b4b0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3eb288ace2a792e63015f31c76e075e561d84271b8f358d577084e7c4213805e1e96023aae48af9789f867730fa797262a2f07afaee847aa73ab81b95de96a54
|
7
|
+
data.tar.gz: 9e6bebc0d8ff9fb476ae240006f37c4d154dffb02cc34eec85d0c62905fa298b9a4e94743639802d25f7e0b841bd8673f9d528d335d668968f178b951187c546
|
@@ -0,0 +1,24 @@
|
|
1
|
+
class LoremIpsumBio
|
2
|
+
def self.random_chars(a, n)
|
3
|
+
out_str = ''
|
4
|
+
n.times { out_str << a.sample }
|
5
|
+
|
6
|
+
out_str
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.random_DNA(n)
|
10
|
+
random_chars(['A', 'C', 'G', 'T'], n)
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.random_RNA(n)
|
14
|
+
random_chars(['A', 'C', 'G', 'U'], n)
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.random_protein(n)
|
18
|
+
random_chars(['A', 'C', 'D', 'E',
|
19
|
+
'F', 'G', 'H', 'I',
|
20
|
+
'K', 'L', 'M', 'N',
|
21
|
+
'P', 'Q', 'R', 'S',
|
22
|
+
'T', 'W', 'V', 'Y'], n)
|
23
|
+
end
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lorem_ipsum_bio
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Paweł Jankowski
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-04-29 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Lorem Ipsum Bio is a toolkit for generating varied random biological
|
14
|
+
sequences (especially usable as a control group in analysis)
|
15
|
+
email: p94jankowski@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/lorem_ipsum_bio.rb
|
21
|
+
homepage: http://rubygems.org/gems/lorem_ipsum_bio
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubyforge_project:
|
41
|
+
rubygems_version: 2.6.8
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: Random biological sequences generator
|
45
|
+
test_files: []
|