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

Update develop #218

Merged
merged 80 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
00e62b8
Merge pull request #196 from mdshw5/develop
mdshw5 Jul 22, 2022
f4abe57
Don't upload tagged releases to test pypi
mdshw5 Jul 26, 2022
af99637
Update python versions in CI
mdshw5 Oct 25, 2022
8b5d60e
Update pypi.yml
mdshw5 Oct 25, 2022
340e235
Update main.yml
mdshw5 Oct 26, 2022
9fb3ace
Exclude macOS due to missing liblzma
mdshw5 Oct 26, 2022
8682250
Update main.yml
mdshw5 Oct 26, 2022
b9dbbee
Update main.yml
mdshw5 Oct 27, 2022
e5e44ce
Add use case for indexing FASTA with suppressed output
mdshw5 Oct 30, 2022
0228a1e
Merge pull request #198 from mdshw5/docs/invert-match-usage
mdshw5 Oct 30, 2022
b76315b
Update main.yml
mdshw5 Oct 30, 2022
b2de92e
Merge pull request #197 from mdshw5/python_3.11
mdshw5 Oct 30, 2022
f4958d1
fix bgzf test failure with biopython 1.80
emollier Nov 25, 2022
fab87ad
Remove Python 2.6 compatibility
marcelm Dec 1, 2022
3e45fb3
Remove "provides" argument, it is not used
marcelm Dec 1, 2022
980e468
Use pyproject.toml instead of setup.py
marcelm Dec 1, 2022
aaf91f6
Update supported Python versions according to GitHub Actions test matrix
marcelm Dec 1, 2022
a676e7f
Add project homepage (link to GitHub repository)
marcelm Dec 1, 2022
e91c3fe
Merge pull request #199 from emollier/biopython-1.80
mdshw5 Dec 5, 2022
85bf293
Merge pull request #200 from marcelm/modernize
mdshw5 Dec 6, 2022
cd8cb22
install xz dependency under macOS
mdshw5 Dec 6, 2022
40abb44
Update main.yml
mdshw5 Dec 6, 2022
9143fcd
pin pysam version
mdshw5 Dec 6, 2022
9441a01
fix ResourceWarning: unclosed file
siebrenf Dec 7, 2022
84afc73
Merge pull request #202 from siebrenf/patch-2
mdshw5 Dec 7, 2022
2dad00a
unpin pysam
mdshw5 Dec 7, 2022
05b9dbe
Delete .travis.yml
mdshw5 Dec 7, 2022
0d60039
Clean up CI workflow
mdshw5 Dec 7, 2022
346a7f6
Specify action versions
mdshw5 Dec 7, 2022
f262074
Bump version of setuptools
mdshw5 Dec 7, 2022
6a02073
Update pypi.yml
mdshw5 Dec 7, 2022
2a14a6c
Update pypi.yml
mdshw5 Dec 7, 2022
53349ff
Move the --invert-match example to the top
mdshw5 Jan 12, 2023
53528d5
Merge pull request #204 from mdshw5/mdshw5-patch-1
mdshw5 Jan 12, 2023
96f7914
re filtering for IUPAC bases
Bardia-Masudy Jan 22, 2023
5ca6c78
draft solution
Bardia-Masudy Jan 22, 2023
0ceef4b
verified Counter was better for IUPAC
Bardia-Masudy Jan 22, 2023
f773018
implemented change into __init__ Sequence class
Bardia-Masudy Jan 23, 2023
07014f1
fixed Sequence.gc_iupac, confirmed new functions
Bardia-Masudy Jan 23, 2023
fd988e2
reverted to s.count(), cleaned up presentation
Bardia-Masudy Jan 30, 2023
21e67f9
removed comments to match formatting
Bardia-Masudy Jan 30, 2023
9458f37
Update main.yml
mdshw5 Feb 9, 2023
aa00c85
Update pypi.yml
mdshw5 Feb 9, 2023
0085a54
Update main.yml
mdshw5 Feb 9, 2023
a67ffa5
Update pypi.yml
mdshw5 Feb 9, 2023
5027a8e
Update pypi.yml
mdshw5 Feb 9, 2023
b6e3455
Update main.yml
mdshw5 Feb 9, 2023
4e6c5c0
Update main.yml
mdshw5 Feb 9, 2023
f0217fe
Update main.yml
mdshw5 Feb 9, 2023
f6a85ed
Update main.yml
mdshw5 Feb 9, 2023
dd86134
Update main.yml
mdshw5 Feb 14, 2023
cfac600
Remove pysam from dev-requirements
mdshw5 Feb 14, 2023
9724104
Update test_FastaVariant.py
mdshw5 Feb 14, 2023
0b71915
Merge pull request #205 from Bardia-Masudy/IUPAC_gc
mdshw5 Feb 14, 2023
9bc371e
Run actions on release
mdshw5 Feb 15, 2023
4de0b61
Add setuptools dependency to fix #206
mdshw5 Feb 16, 2023
5b137fb
Add test case for cli script version string
mdshw5 Feb 16, 2023
ceeed4b
Test pyfaidx module version
mdshw5 Feb 16, 2023
b79d5f4
Update test_feature_indexing.py
mdshw5 Feb 16, 2023
5a74e14
Remove version test for cli script
mdshw5 Feb 16, 2023
dbb5872
Merge pull request #207 from mdshw5/206-missing-setuptools-dependency…
mdshw5 Feb 16, 2023
93f63df
Update README.rst
mdshw5 Feb 28, 2023
21c9c3e
Update README.rst
mdshw5 Feb 28, 2023
4168b92
Update README.rst
mdshw5 Feb 28, 2023
77d191c
Update README.rst
mdshw5 Feb 28, 2023
73270c1
Update README.rst
mdshw5 Feb 28, 2023
ad09b26
rename codecov config file
mdshw5 Jun 30, 2023
507ad44
Update codecov action
mdshw5 Jun 30, 2023
bbe7425
Merge pull request #210 from mdshw5/mdshw5-patch-2
mdshw5 Sep 22, 2023
199000d
Replace usage of pkg_resources API
mdshw5 Sep 22, 2023
ca053e0
Update pyproject.toml
mdshw5 Sep 22, 2023
cac82f2
Merge pull request #213 from mdshw5/mdshw5-patch-3
mdshw5 Sep 22, 2023
9cca418
remove old Python 2 hybridation
a-detiste Jan 7, 2024
ae555b5
add missing import on builtins
a-detiste Jan 7, 2024
f00ce2a
Merge pull request #215 from a-detiste/master
mdshw5 Jan 8, 2024
392ae55
Update README.rst
mdshw5 Jan 8, 2024
c8200e8
Fix version number
mdshw5 Jan 16, 2024
85c9f75
Update __init__.py
rraadd88 Jan 17, 2024
aa6b59b
Merge pull request #216 from rraadd88/patch-2
mdshw5 Jan 18, 2024
567f4e0
Add a better bgzip example command
mdshw5 Jan 19, 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
2 changes: 0 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ omit =
*/lib_pypy/_*.py
*/site-packages/ordereddict.py
*/site-packages/nose/*
*/site-packages/six/*
*/unittest2/*

[paths]
source =
Expand Down
63 changes: 46 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,47 +12,76 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
max-parallel: 10
matrix:
python: [3.7.12, 3.8.12, 3.9.10, 3.10.2]
python-version: ['3.11', '3.10', '3.9', '3.8', '3.7']
os: [ubuntu-latest, macos-latest]
exclude:
# mac os: exclude all but the last two (available) python releases
- os: macos-latest
python-version: 3.8
- os: macos-latest
python-version: 3.7
# mac os: exclude python 3.11 since it's not yet available for runners
- os: macos-latest
python-version: 3.11

steps:
- name: Checkout
uses: actions/checkout@v2.3.1
- name: checkout
uses: actions/checkout@v3.1.0
with:
persist-credentials: false
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v2
- name: install macOS dependencies
if: ${{ matrix.os == 'macos-latest' }}
run: brew install -q samtools bcftools xz

- name: setup python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python }}

- name: upgrade pip
run: python3 -m pip install --upgrade pip

- name: Install python packages
run: pip install -r dev-requirements.txt
- name: pip install development dependencies
run: |
python3 -m pip install cython
python3 -m pip install -r dev-requirements.txt

- name: Install package
run: python setup.py install
- name: install pysam under Linux
if: ${{ matrix.os == 'ubuntu-latest' }}
run: python3 -m pip install pysam

- name: install pyfaidx from current branch
run: python3 -m pip install .

- name: Cache test data
uses: actions/cache@v2
uses: actions/cache@v3.0.11
with:
path: tests/data
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tests/data/*') }}

- name: Download test data
run: python tests/data/download_gene_fasta.py
- name: download test data
run: python3 tests/data/download_gene_fasta.py

- name: Run tests
- name: run pyfaidx tests
run: pytest --cov=pyfaidx --cov-report=xml tests

- name: Run acidbio BED tests
- name: run acidbio tests
run: |
git clone https://github.com/mdshw5/acidbio.git
cd acidbio/bed
python3 -m pip install -r requirements.txt
cp config_template.yaml config.yaml
python3 bedrunall.py --tool pyfaidx BED03 ./

- name: Codecov
uses: codecov/[email protected]

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
continue-on-error: true
with:
fail_ci_if_error: true
files: ./coverage.xml
verbose: true
37 changes: 20 additions & 17 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
name: Package Builds
on: push
on:
release:
types: [published]
push:
branches:
- master

jobs:
build-n-publish:
name: Build and publish packages to PyPI and TestPyPI
runs-on: ubuntu-18.04
name: build and publish packages to PyPI and TestPyPI
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2.3.1
- name: checkout
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v2
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install python packages
run: pip install setuptools

- name: Build package
run: python setup.py sdist

- name: Publish to test PyPI
uses: pypa/gh-action-pypi-publish@master
- name: build package
run: pipx run build

- name: publish to test PyPI
if: startsWith(github.ref, 'refs/tags') != true
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/

- name: Publish to tagged release to PyPI
- name: publish tagged release to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}
68 changes: 0 additions & 68 deletions .travis.yml

This file was deleted.

12 changes: 10 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
|CI| |Package| |PyPI| |Coverage| |Depsy|
|CI| |Package| |PyPI| |Coverage| |Depsy| |Downloads|

Description
-----------
Expand Down Expand Up @@ -36,10 +36,12 @@ or download a `release <https://github.com/mdshw5/pyfaidx/releases>`_ and:

::

python setup.py install
pip install .

If using ``pip install --user`` make sure to add ``/home/$USER/.local/bin`` to your ``$PATH`` (on linux) or ``/Users/$USER/Library/Python/{python version}/bin`` (on macOS) if you want to run the ``faidx`` script.

Python 2.6 and 2.7 users may choose to use a package version from `v0.7.2 <https://github.com/mdshw5/pyfaidx/releases/tag/v0.7.2.2>`_ or earier.

Usage
-----

Expand Down Expand Up @@ -413,6 +415,9 @@ Examples:

.. code:: bash

$ faidx -v tests/data/genes.fasta
### Creates an .fai index, but supresses sequence output using --invert-match ###

$ faidx tests/data/genes.fasta NM_001282543.1:201-210 NM_001282543.1:300-320
>NM_001282543.1:201-210
CTCGTTCCGC
Expand Down Expand Up @@ -643,3 +648,6 @@ Comprehensive Cancer Center in the Department of Oncology.

.. |Package| image:: https://github.com/mdshw5/pyfaidx/actions/workflows/pypi.yml/badge.svg
:target: https://github.com/mdshw5/pyfaidx/actions/workflows/pypi.yml

.. |Downloads| image:: https://img.shields.io/pypi/dm/pyfaidx.svg
:target: https://pypi.python.org/pypi/pyfaidx/
File renamed without changes.
4 changes: 1 addition & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
six
pytest
pytest-cov
setuptools
mock
cython
pysam
# pysam
requests
coverage
pyfasta
Expand Down
Loading
Loading