From fa6a360e8617693addcf94a4877c9fa20b311192 Mon Sep 17 00:00:00 2001 From: Bruno Batista Date: Wed, 5 Jun 2024 09:59:23 -0300 Subject: [PATCH] Update SpliceAI.pm Formated tab output for Ensembl VEP --- SpliceAI.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/SpliceAI.pm b/SpliceAI.pm index 2ae14227..403a91ca 100644 --- a/SpliceAI.pm +++ b/SpliceAI.pm @@ -251,8 +251,17 @@ sub run { $hash{$prefix. 'DP_DL'} = $data_values[8]; } + # Make a tab output for Ensembl VEP else { - $hash{'SpliceAI_pred'} = $data_value->{result}; + $hash{'SpliceAI_pred_SYMBOL'} = (split /\|/, $data_value->{result})[0]; + $hash{'SpliceAI_pred_DS_AG'} = (split /\|/, $data_value->{result})[1]; + $hash{'SpliceAI_pred_DS_AL'} = (split /\|/, $data_value->{result})[2]; + $hash{'SpliceAI_pred_DS_DG'} = (split /\|/, $data_value->{result})[3]; + $hash{'SpliceAI_pred_DS_DL'} = (split /\|/, $data_value->{result})[4]; + $hash{'SpliceAI_pred_DP_AG'} = (split /\|/, $data_value->{result})[5]; + $hash{'SpliceAI_pred_DP_AL'} = (split /\|/, $data_value->{result})[6]; + $hash{'SpliceAI_pred_DP_DG'} = (split /\|/, $data_value->{result})[7]; + $hash{'SpliceAI_pred_SP_DL'} = (split /\|/, $data_value->{result})[8]; } # Add a flag if cutoff is used