Skip to content

Commit

Permalink
Correct type error to generate subnetwork in validation step.
Browse files Browse the repository at this point in the history
  • Loading branch information
ABignaud committed Apr 27, 2021
1 parent a74366d commit e6b0dcd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- name: Build and publish
env:
TWINE_USERNAME: ${{secrets.PYPI_USERNAME}}
TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{secrets.PYPI_TOKEN}}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion metator/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def get_hamming_distance(core_bins_iterations, n_iter, threads):
# matrix, in parallel
step = 1000
steps = np.arange(step, len(core_bins_iterations.index) + step, step)
split_core_bins = [core_bins_iterations[(k - step): k] for k in steps]
split_core_bins = [core_bins_iterations[(k - step) : k] for k in steps]
pool = multiprocessing.Pool(processes=threads)
res = pool.map(
partial(
Expand Down
6 changes: 4 additions & 2 deletions metator/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,13 @@ def louvain_recursif(

logger.info("Bin in progress: {0}".format(bin_id))
subnetwork_file = join(tmpdir, "subnetwork_" + bin_id + ".txt")
bin_id = int(bin_id.split("_")[1])
bin_id = str(bin_id.split("_")[1])

# Extract contigs
list_contigs = list(
contigs_data["ID"][contigs_data["Overlapping_bin_ID"] == bin_id]
contigs_data["ID"][
contigs_data.Overlapping_bin_ID.apply(str) == bin_id
]
)

# Extract subnetwork
Expand Down
2 changes: 1 addition & 1 deletion metator/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = "1.0.0"
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ pysam
requests
scipy
sklearn
seaborn
setuptools
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""A pipeline for binning metagenomic datasets from 3C data.
"""A pipeline for binning metagenomic datasets from metaHiC data.
"""

from setuptools import setup, find_packages
Expand Down

0 comments on commit e6b0dcd

Please sign in to comment.