Module: Sample

Extended by:
Entity
Defined in:
lib/rbbt/entity/study/samples.rb,
lib/rbbt/entity/study/cnv/samples.rb,
lib/rbbt/entity/study/genotypes/samples.rb,
lib/rbbt/entity/study/methylation/samples.rb

Instance Method Summary collapse

Instance Method Details

#dirObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/rbbt/entity/study/samples.rb', line 8

def dir
  return nil if study.nil?
  return study.dir if study.respond_to? :dir
  begin
    Study.setup(study).dir
  rescue
    Log.warn "Error accessing sample dir from study: #{$!.message}"
    nil
  end
end

#organismObject



19
20
21
22
# File 'lib/rbbt/entity/study/samples.rb', line 19

def organism
  return nil if study.nil?
  study.organism
end