Module: ViralSeq::PID
- Defined in:
- lib/viral_seq/pid.rb
Class Method Summary collapse
-
.generate_pool(l = 8) ⇒ Object
generate all Primer ID combinations given the length of Primer ID.
Class Method Details
.generate_pool(l = 8) ⇒ Object
generate all Primer ID combinations given the length of Primer ID
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/viral_seq/pid.rb', line 13 def self.generate_pool(l=8) nt = ['A','T','C','G'] pid_pool = ['A','T','C','G'] (l-1).times do pid_pool = pid_pool.product(nt) pid_pool.collect! do |v| v.join("") end end return pid_pool end |