Skip to content

Commit

Permalink
fix #317 translation error with int contig id (also unicycler input)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbouras13 committed Jan 9, 2024
1 parent fa39696 commit 73703a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/post_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ def create_tbl(
+ "\t"
+ "locus_tag"
+ "\t"
+ row["locus_tag"]
+ str(row["locus_tag"])
+ "\n"
)
f.write(
Expand All @@ -1243,7 +1243,7 @@ def create_tbl(
+ "\n"
)
if self.trna_empty == False:
subset_trna_df = trna_df[trna_df["contig"] == contig]
subset_trna_df = trna_df[str(trna_df["contig"]) == contig]
for index, row in subset_trna_df.iterrows():
start = str(row["start"])
stop = str(row["stop"])
Expand Down Expand Up @@ -1305,7 +1305,7 @@ def create_tbl(
+ "\t"
+ "locus_tag"
+ "\t"
+ row["locus_tag"]
+ str(row["locus_tag"])
+ "\n"
)
f.write(
Expand Down Expand Up @@ -1350,7 +1350,7 @@ def create_tbl(
+ "\t"
+ "locus_tag"
+ "\t"
+ row["locus_tag"]
+ str(row["locus_tag"])
+ "\n"
)
f.write(
Expand Down
2 changes: 1 addition & 1 deletion bin/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def tidy_prodigal_output(out_dir, gv_flag):
prod_filt_df.loc[ixs, cols].reindex(columns=cols[::-1]).values
)
prod_filt_df["gene"] = (
prod_filt_df["contig"]
prod_filt_df["contig"].astype(str)
+ prod_filt_df.index.astype(str)
+ " "
+ prod_filt_df["start"].astype(str)
Expand Down

0 comments on commit 73703a5

Please sign in to comment.