Skip to content

Commit

Permalink
Update source formatting using black 24.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
matthuska committed Jul 2, 2024
1 parent 8d1ab21 commit a8611cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions lib/sonartoVCF_v2.bak.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ def create_vcf(rows_grouped, tmp_dirname, refdescr):
splited_final_id_list, start=1
):
if splited_final_id == id: # find the exist one
final_df.at[
index_start_postion, group_name
] = new_GT
final_df.at[index_start_postion, group_name] = (
new_GT
)
break
elif (
totel_len == new_GT
Expand Down
18 changes: 9 additions & 9 deletions lib/sonartoVCF_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ def create_vcf(rows_grouped, tmp_dirname, refdescr):
index=np.arange(1, 29904),
)
final_snp_df["POS"] = np.arange(1, 29904)
final_snp_df[
"#CHROM"
] = refdescr # duplicated line here did a trick for assigning the value
final_snp_df["#CHROM"] = (
refdescr # duplicated line here did a trick for assigning the value
)
final_snp_df["ID"] = "."
final_snp_df["REF"] = "."
final_snp_df["ALT"] = "."
Expand Down Expand Up @@ -294,9 +294,9 @@ def create_vcf(rows_grouped, tmp_dirname, refdescr):
# print('index',index_postion,'test', splited_ID, _E_new_GT)
if splited_ID == _id: # Found the exist one
# print('Found the exist one', splited_final_id)
final_indel_df.at[
index_postion, group_name
] = str(_E_new_GT)
final_indel_df.at[index_postion, group_name] = (
str(_E_new_GT)
)
break
elif (
totel_len == _E_new_GT
Expand All @@ -307,9 +307,9 @@ def create_vcf(rows_grouped, tmp_dirname, refdescr):
+ _id
)
# with new GT number
final_indel_df.at[
index_postion, group_name
] = str(_E_new_GT + 1)
final_indel_df.at[index_postion, group_name] = (
str(_E_new_GT + 1)
)
# appends new alt
final_indel_df.at[index_postion, "ALT"] = (
final_indel_df.at[index_postion, "ALT"]
Expand Down

0 comments on commit a8611cf

Please sign in to comment.