Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.1.0 #20

Merged
merged 33 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
2d4e294
Likely solved #8 and #10, added top 3 predictions, changed CONFIDENCE…
saanikat Aug 9, 2024
8697c89
File type, hyperparameters changed
saanikat Aug 16, 2024
f9ae04d
Delete attribute_standardizer/attribute_standardizer.py
saanikat Aug 16, 2024
a43afb9
retrained models, added bedbase
saanikat Aug 28, 2024
9da70a8
retrained models, added bedbase
saanikat Aug 28, 2024
265f7d2
updated readme
saanikat Aug 28, 2024
5a72115
fixed #16
khoroshevskyi Aug 28, 2024
82940db
cleaning
khoroshevskyi Aug 28, 2024
36d9783
Merge pull request #17 from databio/alex
saanikat Aug 30, 2024
f9bdffe
minor changes to trial.py
saanikat Aug 30, 2024
04024cd
minor changes to trial.py
saanikat Aug 30, 2024
ce167ce
Added github workflows
khoroshevskyi Sep 12, 2024
e534270
adding averaging for less than 10 samples
saanikat Sep 12, 2024
36a34c4
adding averaging for less than 10 samples
saanikat Sep 12, 2024
991d55b
deleted pycache
khoroshevskyi Sep 13, 2024
f5f3669
renaming from bedmess to bedms
saanikat Sep 13, 2024
3d22538
changing function name to get_available_schemas
saanikat Sep 13, 2024
bc78cf6
Merge pull request #15 from databio/saanika
khoroshevskyi Sep 13, 2024
6a5c9a2
Added instalation test
khoroshevskyi Sep 13, 2024
160fd4c
upodated requirements tests and names
khoroshevskyi Sep 13, 2024
4a99d82
upodated requirements tests and names
khoroshevskyi Sep 13, 2024
7f484a6
restructured code
khoroshevskyi Sep 13, 2024
5519e53
updated readme
khoroshevskyi Sep 13, 2024
22d91cb
Fixed readme
khoroshevskyi Sep 13, 2024
b13f0a3
minor changes
saanikat Sep 13, 2024
70ab6c0
instantiation issue solved
saanikat Sep 13, 2024
b71112f
minor changes
saanikat Sep 13, 2024
50bc889
loading vectorizer and label_enc in _load_model
saanikat Sep 16, 2024
93bca5b
loading vectorizer and label_enc in _load_model
saanikat Sep 16, 2024
55d9a14
conflict changes
saanikat Sep 16, 2024
8d8b1a6
minor changes
saanikat Sep 16, 2024
dd483ae
Merge pull request #22 from databio/saanika
khoroshevskyi Sep 16, 2024
d429077
Added changelog
khoroshevskyi Sep 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Lint

on: [pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: psf/black@stable
khoroshevskyi marked this conversation as resolved.
Show resolved Hide resolved
30 changes: 30 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
run: |
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
33 changes: 33 additions & 0 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## we can't run test, but lets just install all dependencies and package
name: Installation test

on:
push:
branches: [dev]
pull_request:
branches: [master, dev]

jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.12"]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dev dependencies
run: if [ -f requirements/requirements-dev.txt ]; then pip install -r requirements/requirements-dev.txt; fi

- name: Install package
run: python -m pip install .

- name: Run pytest tests
run: pytest tests -x -vv
35 changes: 22 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
# bedmess
# BEDMS

bedmess is a tool used to standardize genomics/epigenomics metadata based on a schema chosen by the user ( eg. ENCODE, FAIRTRACKS).
BEDMS (BED Metadata Standardizer) is a tool used to standardize genomics/epigenomics metadata based on a schema chosen by the user ( eg. ENCODE, FAIRTRACKS, BEDBASE).


To install `attribute-standardizer` , you need to clone this repository first. Follow the steps given below to install:
## Installation

To install `bedms` use this command:
```
git clone https://github.com/databio/bedmess.git

cd bedmess

pip install .

pip install bedms
```
or install the latest version from the GitHub repository:
```
pip install git+https://github.com/databio/bedms.git
```

## Usage

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a need for more documentation than this at the moment? If so, where will it live? The Bedbase docs repository? We could also put the changelog there as well.

Using Python, this is how you can run `attribute_standardizer` :
```python
from bedms import AttrStandardizer

model = AttrStandardizer("ENCODE")
results = model.standardize(pep="geo/gse228634:default")

assert results
```
from attribute_standardizer.attribute_standardizer import attr_standardizer

attr_standardizer(pep=/path/to/pep, schema="ENCODE")

To see the available schemas, you can run:
```
from bedms.constants import AVAILABLE_SCHEMAS
print(AVAILABLE_SCHEMAS)

You can use the format provided in the `trial.py` script in this repository as a reference.
# >> ['ENCODE', 'FAIRTRACKS', 'BEDBASE']

```
AVAILABLE_SCHEMAS is a list of available schemas that you can use to standardize your metadata.
Binary file removed __pycache__/bedmess.cpython-312.pyc
Binary file not shown.
Binary file removed __pycache__/model6_multitable.cpython-312.pyc
Binary file not shown.
Binary file removed __pycache__/nn_model1_preprocess.cpython-312.pyc
Binary file not shown.
Binary file removed __pycache__/nn_model1_test.cpython-312.pyc
Binary file not shown.
Binary file removed __pycache__/nn_model1_train.cpython-312.pyc
Binary file not shown.
Binary file removed __pycache__/nn_model2_preprocess.cpython-312.pyc
Binary file not shown.
Binary file removed __pycache__/nn_model2_test.cpython-312.pyc
Binary file not shown.
Binary file removed __pycache__/nn_model2_train.cpython-312.pyc
Binary file not shown.
1 change: 0 additions & 1 deletion attribute_standardizer/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion attribute_standardizer/_version.py

This file was deleted.

148 changes: 0 additions & 148 deletions attribute_standardizer/attribute_standardizer.py

This file was deleted.

12 changes: 0 additions & 12 deletions attribute_standardizer/const.py

This file was deleted.

Loading
Loading