Module: Mutation::Oncotate
- Included in:
- Mutation
- Defined in:
- lib/oncotator.rb
Instance Method Summary collapse
Instance Method Details
#discard_onco ⇒ Object
157 158 159 |
# File 'lib/oncotator.rb', line 157 def discard_onco @onco = nil end |
#in_cosmic ⇒ Object
165 166 167 |
# File 'lib/oncotator.rb', line 165 def in_cosmic onco.Cosmic_overlapping_mutations ? "YES" : "NO" end |
#inspect ⇒ Object
161 162 163 |
# File 'lib/oncotator.rb', line 161 def inspect "#<#{self.class.name}:#{object_id} @mutation=#{@mutation}>" end |
#onco ⇒ Object
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_ot ⇒ Object
169 170 171 |
# File 'lib/oncotator.rb', line 169 def to_ot [ short_chrom, start, stop, ref, alt ].join("_") end |