Module: Mutation::Oncotate

Included in:
Mutation
Defined in:
lib/oncotator.rb

Instance Method Summary collapse

Instance Method Details

#discard_oncoObject



157
158
159
# File 'lib/oncotator.rb', line 157

def discard_onco
  @onco = nil
end

#in_cosmicObject



165
166
167
# File 'lib/oncotator.rb', line 165

def in_cosmic
  onco.Cosmic_overlapping_mutations ? "YES" : "NO"
end

#inspectObject



161
162
163
# File 'lib/oncotator.rb', line 161

def inspect
  "#<#{self.class.name}:#{object_id} @mutation=#{@mutation}>"
end

#oncoObject

Raises:

  • (ArgumentError)


152
153
154
155
# File 'lib/oncotator.rb', line 152

def onco
  raise ArgumentError, @onco_error unless valid_onco_input?
  @onco ||= Oncotator.new :key => to_ot
end

#to_otObject



169
170
171
# File 'lib/oncotator.rb', line 169

def to_ot
  [ short_chrom, start, stop, ref, alt ].join("_")
end