Skip to content

Commit

Permalink
MAINT: Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Vini2 committed Dec 15, 2022
1 parent 6cb45e9 commit 8925621
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion phables_utils/gene_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from collections import defaultdict
from pathlib import Path


def get_smg_unitigs(hmmout, mg_frac):
"""
Get unitigs containing bacterial single-copy marker genes
Expand Down Expand Up @@ -58,7 +59,7 @@ def get_phrog_unitigs(phrogs, align_score, seq_identity):
phrog_table_file = Path(__file__).parent / "phrogs" / "phrog_annot.tsv"

phrog_dict = defaultdict(str)

with open(phrog_table_file, "r") as myfile:
for line in myfile.readlines():
if not line.startswith("phrog"):
Expand Down
16 changes: 11 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
long_description = fh.read()

packages = setuptools.find_packages()
package_data = {"phables_utils": ["phables_utils/*", "phables_utils/support/*", "phables_utils/phrogs/*"]}
package_data = {
"phables_utils": [
"phables_utils/*",
"phables_utils/support/*",
"phables_utils/phrogs/*",
]
}

data_files = [(".", ["LICENSE", "README.md"])]

Expand All @@ -26,10 +32,10 @@
data_files=data_files,
include_package_data=True,
scripts=["phables"],
entry_points = {
'console_scripts': [
'combine_cov=phables_utils.support.combine_cov:main',
'gfa2fasta=phables_utils.support.gfa2fasta:main'
entry_points={
"console_scripts": [
"combine_cov=phables_utils.support.combine_cov:main",
"gfa2fasta=phables_utils.support.gfa2fasta:main",
],
},
classifiers=[
Expand Down

0 comments on commit 8925621

Please sign in to comment.