Skip to content

Commit

Permalink
add back docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gbouras13 committed Feb 23, 2024
1 parent c8c63b7 commit b250fa1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/phold/io/handle_genbank.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def run_pool(pool, records):
feature.qualifiers["function"] = "unknown function"
feature.qualifiers["product"] = "hypothetical protein"
feature.qualifiers["phrog"] = "No_PHROG"
feature.qualifiers[
"source"
] = f"Pyrodigal-gv_{pyrodigal_gv.__version__}"
feature.qualifiers["source"] = (
f"Pyrodigal-gv_{pyrodigal_gv.__version__}"
)
feature.qualifiers["transl_table"] = gene.translation_table
# from the API
# translation_table (int, optional) – An alternative translation table to use to translate the gene.
Expand Down
12 changes: 6 additions & 6 deletions src/phold/results/topfunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,12 @@ def calculate_topfunctions_results(
if foldseek_phrog != cds_feature.qualifiers["phrog"][0]:
# where there was no phrog in pharokka
if cds_feature.qualifiers["phrog"][0] == "No_PHROG":
updated_cds_dict[record_id][cds_id].qualifiers["phrog"][
0
] = result_dict[record_id][cds_id]["phrog"]
updated_cds_dict[record_id][cds_id].qualifiers["product"][
0
] = result_dict[record_id][cds_id]["product"]
updated_cds_dict[record_id][cds_id].qualifiers["phrog"][0] = (
result_dict[record_id][cds_id]["phrog"]
)
updated_cds_dict[record_id][cds_id].qualifiers["product"][0] = (
result_dict[record_id][cds_id]["product"]
)
updated_cds_dict[record_id][cds_id].qualifiers["function"][
0
] = result_dict[record_id][cds_id]["function"]
Expand Down
4 changes: 3 additions & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def test_compare_pdb():
def test_predict_fasta():
"""test phold predict with fasta input"""
input_fasta: Path = f"{test_data}/combined_truncated_acr_defense_vfdb_card.gbk"
cmd = f"phold predict -i {input_fasta} -o {predict_fasta_dir} -t {threads} --cpu -f"
cmd = (
f"phold predict -i {input_fasta} -o {predict_fasta_dir} -t {threads} --cpu -f"
)
exec_command(cmd)


Expand Down

0 comments on commit b250fa1

Please sign in to comment.