Skip to content

Commit

Permalink
Fix: writing of LOVD variants
Browse files Browse the repository at this point in the history
  • Loading branch information
Char-Al authored Oct 1, 2024
1 parent 57011ae commit 93531de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ def main(args):
bed_lovd = pybedtools.BedTool.from_dataframe(df_lovd)
bed_lovd_sub = bed_lovd.subtract(bed_selected).to_dataframe()

merged_df.to_csv(f'{args.output}.merge.bed', index=False, sep="\t", header=None)
merged_df = pd.concat([df_selected, bed_lovd_sub], ignore_index=True)
merged_df = pd.concat([merged_df, bed_lovd_sub], ignore_index=True)
merged_df.to_csv(f'{args.output}.merge.bed', index=False, sep="\t", header=None)

if missing_genes or missing_type:
print(f'Missing genes : {len(missing_genes | missing_type)}')
Expand Down

0 comments on commit 93531de

Please sign in to comment.