Skip to content

Commit

Permalink
formatted file
Browse files Browse the repository at this point in the history
  • Loading branch information
rnmitchell committed Jul 8, 2024
1 parent d1efb70 commit e7d5cb7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lusSTR/wrappers/snps_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ def bin_snps(sample_file, output_type, sample):
start = snp_num * 1000
if snp_num != 9:
end = start + 1000
bin_df = sorted_file.iloc[start:end,].reset_index(drop=True)
bin_df = sorted_file.iloc[
start:end,
].reset_index(drop=True)
else:
bin_df = sorted_file.iloc[start : len(sorted_file),].reset_index(drop=True)
bin_df = sorted_file.iloc[
start : len(sorted_file),
].reset_index(drop=True)
bin_df["Sample.Name"] = bin_df["Sample.Name"] + "_set" + str((snp_num + 1))
compiled_table = pd.concat([compiled_table, bin_df])
bin_df.to_csv(
Expand Down

0 comments on commit e7d5cb7

Please sign in to comment.