Skip to content

Commit 93531de

Browse files
authored
Fix: writing of LOVD variants
1 parent 57011ae commit 93531de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/generate_panel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ def main(args):
328328
bed_lovd = pybedtools.BedTool.from_dataframe(df_lovd)
329329
bed_lovd_sub = bed_lovd.subtract(bed_selected).to_dataframe()
330330

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

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

0 commit comments

Comments
 (0)