Skip to content

Commit

Permalink
renamed plugin name and updated container image
Browse files Browse the repository at this point in the history
  • Loading branch information
hamshkhawar committed Apr 4, 2024
1 parent 0e82f4b commit 3ca976f
Show file tree
Hide file tree
Showing 21 changed files with 33 additions and 28 deletions.
1 change: 0 additions & 1 deletion clustering/feature-subsetting-plugin/VERSION

This file was deleted.

4 changes: 0 additions & 4 deletions clustering/feature-subsetting-plugin/build-docker.sh

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion clustering/feature-subsetting-plugin/tests/__init__.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM polusai/bfio:2.3.3
FROM polusai/bfio:2.3.6

# environment variables defined in polusai/bfio
ENV EXEC_DIR="/opt/executables"
Expand All @@ -16,5 +16,5 @@ COPY README.md ${EXEC_DIR}
RUN pip3 install ${EXEC_DIR} --no-cache


ENTRYPOINT ["python3", "-m", "polus.plugins.clustering.feature_subsetting"]
CMD ["--help"]
ENTRYPOINT ["python3", "-m", "polus.images.clustering.feature_subsetting"]
CMD ["--help"]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Feature Data Subset(v0.2.0-dev)
# Feature Data Subset(v0.2.1-dev)

This WIPP plugin subsets data based on a given feature. It works in conjunction with the `polus-feature-extraction-plugin`, where the feature extraction plugin can be used to extract the features such as the mean intensity of every image in the input image collection.

Expand Down
1 change: 1 addition & 0 deletions clustering/feature-subsetting-tool/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2.1-dev
4 changes: 4 additions & 0 deletions clustering/feature-subsetting-tool/build-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

version=$(<VERSION)
docker build . -t polusai/feature-subsetting-tool:${version}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.0-dev
current_version = 0.2.1-dev
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<dev>\d+))?
Expand All @@ -24,4 +24,4 @@ replace = version = "{new_version}"

[bumpversion:file:VERSION]

[bumpversion:file:src/polus/plugins/clustering/feature_subsetting/__init__.py]
[bumpversion:file:src/polus/images/clustering/feature_subsetting/__init__.py]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bump2version --config-file bumpversion.cfg --new-version ${version} --allow-dirt
./build-docker.sh

# Push to dockerhub
docker push polusai/feature-subsetting-plugin:${version}
docker push polusai/feature-subsetting-tool:${version}

# Run pytests
python -m pytest -s tests
python -m pytest -s tests
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "Feature Subsetting",
"version": "0.2.0-dev",
"version": "0.2.1-dev",
"title": "Feature Subsetting",
"description": "Subset data using a given feature.",
"author": "Gauhar Bains (gauhar.bains@labshare.org) and Hamdah Shafqat Abbasi (hamdahshafqat.abbasi@nih.gov)",
"institution": "National Center for Advancing Translational Sciences, National Institutes of Health",
"repository": "https://github.com/PolusAI/polus-plugins",
"repository": "https://github.com/PolusAI/image-tools",
"website": "https://ncats.nih.gov/preclinical/core/informatics",
"citation": "",
"containerId": "polusai/feature-subsetting-plugin:0.2.0-dev",
"containerId": "polusai/feature-subsetting-plugin:0.2.1-dev",
"baseCommand": [
"python3",
"-m",
"polus.plugins.clustering.feature_subsetting"
"polus.images.clustering.feature_subsetting"
],
"inputs": {
"inpDir": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "polus-plugins-clustering-feature-subsetting"
version = "0.2.0-dev"
name = "polus-images-clustering-feature-subsetting"
version = "0.2.1-dev"
description = "Subset data using a given feature."
authors = [
"Gauhar Bains <gauhar.bains@labshare.org>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ writeOutput=true
outDir=${datapath}/output

docker run -v ${datapath}:${datapath} \
polusai/feature-subsetting-plugin:${version} \
polusai/feature-subsetting-tool:${version} \
--inpDir ${inpDir} \
--tabularDir ${tabularDir} \
--filePattern ${filePattern} \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Feature Subsetting Tool."""

__version__ = "0.2.1-dev"
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Feature Subsetting Plugin."""
"""Feature Subsetting Tool."""

import logging
import shutil
from pathlib import Path
from typing import Optional

import polus.plugins.clustering.feature_subsetting.feature_subset as fs
import polus.images.clustering.feature_subsetting.feature_subset as fs
import typer

app = typer.Typer()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Feature Subsetting Plugin."""
"""Feature Subsetting Tool."""

import logging
import os
import shutil
Expand Down
1 change: 1 addition & 0 deletions clustering/feature-subsetting-tool/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Feature Subsetting Tool."""
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test Command line Tool."""

from typer.testing import CliRunner
from polus.plugins.clustering.feature_subsetting.__main__ import app
from polus.images.clustering.feature_subsetting.__main__ import app
import shutil
from pathlib import Path

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Test Feature Subsetting Plugin."""

import shutil
from pathlib import Path

import polus.plugins.clustering.feature_subsetting.feature_subset as fs
import polus.images.clustering.feature_subsetting.feature_subset as fs


def test_feature_subset(
Expand Down

0 comments on commit 3ca976f

Please sign in to comment.