Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/import/brca/core/brca_handler_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module Core
# Provides the handler appropriate for the dataformat from each center
class BrcaHandlerMapping
HANDLER_MAPPING = {
'RR8' => Import::Brca::Providers::Leeds::LeedsHandlerNew,
'RR8' => Import::Brca::Providers::Leeds::LeedsHandlerNewFormat,
'RR8_2' => Import::Brca::Providers::Leeds::LeedsHandlerOld,
'RNZ' => Import::Brca::Providers::Salisbury::SalisburyHandler,
'RVJ' => Import::Brca::Providers::Bristol::BristolHandler,
'RTD' => Import::Brca::Providers::Newcastle::NewcastleHandler,
Expand Down
4 changes: 3 additions & 1 deletion lib/import/brca/core/genotype_brca.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class GenotypeBrca < Import::Germline::Genotype
'NTHL1' => 3108,
'POLD1' => 3408,
'POLE' => 5000,
'POT1' => 5001,
'SDHB' => 68,
'VHL' => 83 }.freeze

Expand Down Expand Up @@ -86,6 +87,7 @@ class GenotypeBrca < Import::Germline::Genotype
(?<nthl1>NTHL1)|
(?<pold1>POLD1)|
(?<pole>POLE)|
(?<pot1>POT1)|
(?<sdhb>SDHB)|
(?<vhl>VHL)/ix # Added by Francesco

Expand Down Expand Up @@ -114,7 +116,7 @@ def add_gene(brca_input)

def process_integer_imput(brca_input)
if [7, 8, 72, 79, 451, 865, 3186, 2744, 1432, 2804, 2808, 3394, 62, 76,
590, 2912, 3615, 3616, 2850, 54, 55, 74, 4952, 18, 20, 794].include? brca_input
590, 2912, 3615, 3616, 2850, 54, 55, 74, 4952, 18, 20, 794, 5001].include? brca_input
@attribute_map['gene'] = brca_input
@logger.debug "SUCCESSFUL gene parse for #{brca_input}"
elsif (1..2).cover? brca_input
Expand Down
Loading
Loading