Skip to content

Commit

Permalink
Merge pull request #1469 from BRCAChallenge/debug_spliceai_merge
Browse files Browse the repository at this point in the history
Fixed bug that caused splice_ai and bayesdel scores to not be shown f…
  • Loading branch information
melissacline authored Oct 24, 2023
2 parents 304f403 + 254b86b commit 800064f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def main(vcf_parts, built_tsv, output):
df_victor = victor_results_as_df(vcf_parts)
df = pd.read_csv(built_tsv, sep='\t', keep_default_na=False)

df_merged = df.merge(df_victor, left_on='Genomic_Coordinate_hg38', right_on=coord_col, how='left')
df_merged = df.merge(df_victor, left_on='pyhgvs_Genomic_Coordinate_38', right_on=coord_col, how='left')

# drop join key and write
(df_merged.drop(columns=[coord_col]).
Expand Down
2 changes: 1 addition & 1 deletion pipeline/splice_ai/add_splice_scores_to_built_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def main(vcf, built_tsv, output):
df_spliceai = spliceai_results_as_df(vcf)
df = pd.read_csv(built_tsv, sep='\t', keep_default_na=False)

df_merged = df.merge(df_spliceai, left_on='Genomic_Coordinate_hg38', right_on=coord_col, how='left')
df_merged = df.merge(df_spliceai, left_on='pyhgvs_Genomic_Coordinate_38', right_on=coord_col, how='left')

# drop join key and write
(df_merged.drop(columns=[coord_col]).
Expand Down

0 comments on commit 800064f

Please sign in to comment.