Class: Cytogenetics::ChromosomeAberrations::Translocation

Inherits:
Aberration
  • Object
show all
Defined in:
lib/cytogenetics/chromosome_aberrations.rb

Overview

TRANSLOCATION … this is typically a subset of Derivative chromosomes, but have seen it on it’s own

Instance Attribute Summary

Attributes inherited from Aberration

#ab_objs, #abr, #breakpoints, #fragments

Instance Method Summary collapse

Methods inherited from Aberration

aberration_objs, aberration_type, all_regex, classify_aberration, #config_logging, #find_bands, #find_chr, #find_fragments, #initialize, instantiate_aberrations, regex, #remove_breakpoint, #to_s, type

Constructor Details

This class inherits a constructor from Cytogenetics::Aberration

Instance Method Details

#get_breakpointsObject

TWo ways of defining translocations: 1) t(1;3)(p31;p13)



144
145
146
147
148
149
150
151
152
153
154
# File 'lib/cytogenetics/chromosome_aberrations.rb', line 144

def get_breakpoints
  chr_i = find_chr(@abr)
  band_i = find_bands(@abr, chr_i[:end_index])
  unless band_i
    @log.warn("No bands defined in #{@abr}")
  else
    chr_i[:chr].each_with_index do |c, i|
      @breakpoints << Breakpoint.new(c, band_i[:bands][i], 'trans')
    end
  end
end