Class: CagnutSamtools::Util
- Inherits:
-
Object
- Object
- CagnutSamtools::Util
- Defined in:
- lib/cagnut_samtools/util.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#samtools ⇒ Object
Returns the value of attribute samtools.
Instance Method Summary collapse
- #do_flag_stat(dirs, order = 1, previous_job_id = nil, filename = nil) ⇒ Object
-
#initialize(config = nil) ⇒ Util
constructor
A new instance of Util.
- #merge_bam(dirs, order = 1, previous_job_id = nil, filename = nil) ⇒ Object
- #mg_bam_soft_link(dirs, order = 1, previous_job_id = nil, filename = nil) ⇒ Object
Constructor Details
#initialize(config = nil) ⇒ Util
Returns a new instance of Util.
5 6 7 8 |
# File 'lib/cagnut_samtools/util.rb', line 5 def initialize config=nil @config = config @samtools = CagnutSamtools::Base.new end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/cagnut_samtools/util.rb', line 3 def config @config end |
#samtools ⇒ Object
Returns the value of attribute samtools.
3 4 5 |
# File 'lib/cagnut_samtools/util.rb', line 3 def samtools @samtools end |
Instance Method Details
#do_flag_stat(dirs, order = 1, previous_job_id = nil, filename = nil) ⇒ Object
20 21 22 23 |
# File 'lib/cagnut_samtools/util.rb', line 20 def do_flag_stat dirs, order=1, previous_job_id=nil, filename = nil samtools.do_flag_stat dirs, order, previous_job_id, filename order+1 end |
#merge_bam(dirs, order = 1, previous_job_id = nil, filename = nil) ⇒ Object
10 11 12 13 |
# File 'lib/cagnut_samtools/util.rb', line 10 def merge_bam dirs, order=1, previous_job_id=nil, filename = nil job_name, filename = samtools.merge_bam dirs, order, previous_job_id, filename [job_name, filename, order+1] end |
#mg_bam_soft_link(dirs, order = 1, previous_job_id = nil, filename = nil) ⇒ Object
15 16 17 18 |
# File 'lib/cagnut_samtools/util.rb', line 15 def mg_bam_soft_link dirs, order=1, previous_job_id=nil, filename = nil job_name, filename = samtools.mg_bam_soft_link dirs, order, previous_job_id, filename [job_name, filename, order+1] end |