Skip to content

Commit

Permalink
format clean
Browse files Browse the repository at this point in the history
  • Loading branch information
al4225 committed Oct 26, 2024
1 parent 2145fdc commit 716948c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions code/pecotmr_integration/twas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,6 @@
" file_regions_df['chr'] = file_regions_df['chr'].str.strip()\n",
" check_required_columns(file_regions_df, required_ld_columns)\n",
" regions_df = pd.concat([regions_df, file_regions_df])\n",
" print('regions_df')\n",
" print(regions_df)\n",
" # Process region_name if provided: \n",
" # fomat: region_name = [\"chr1_16103_2888443\", \"chr1_4320284_5853833\"]\n",
" if len(region_name) > 0:\n",
Expand All @@ -403,12 +401,8 @@
" extra_regions_df = pd.DataFrame(extra_regions, columns=['chr', 'start', 'stop'])\n",
" extra_regions_df['start'] = extra_regions_df['start'].astype(int)\n",
" extra_regions_df['stop'] = extra_regions_df['stop'].astype(int)\n",
" print('extra_regions_df')\n",
" print(extra_regions_df)\n",
" # Add extra regions to regions_df\n",
" regions_df = pd.concat([regions_df, extra_regions_df])\n",
" print('final regions_df')\n",
" print(regions_df)\n",
" # Remove duplicates and reset index\n",
" regions_df = regions_df.drop_duplicates().reset_index(drop=True)\n",
" regions_dict = OrderedDict()\n",
Expand Down

0 comments on commit 716948c

Please sign in to comment.