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

User cloning #314

Closed
wants to merge 91 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
15f17ff
added new translation function
BjornFJohansson Mar 27, 2024
d333558
new orfs method for Seq based on three_frame_orfs function
BjornFJohansson Mar 27, 2024
5717dc0
new orfs_to_features method for Dseqrecord
BjornFJohansson Mar 27, 2024
37cbe3e
new extract_from_text functions that also returns the intervening tex…
BjornFJohansson Mar 27, 2024
1fc277d
bugfix orfs for Seq and Dsecrecord
BjornFJohansson Mar 27, 2024
c27e762
added crispr tests
BjornFJohansson Mar 27, 2024
4c4e4cc
added pairwise for older Python versions
BjornFJohansson Mar 27, 2024
f948b8c
older type hint
BjornFJohansson Mar 27, 2024
4d84231
Deploying to gh-pages from @ BjornFJohansson/pydna@da3e7e9cf4b379d15a…
BjornFJohansson Apr 18, 2024
46f9d2c
Deploying to gh-pages from @ BjornFJohansson/pydna@5be4f9db0c36b95839…
BjornFJohansson Apr 18, 2024
64f531b
Deploying to gh-pages from @ BjornFJohansson/pydna@b37a17cc3b5a06aa56…
BjornFJohansson Apr 18, 2024
00795cd
Deploying to gh-pages from @ BjornFJohansson/pydna@11aae3c29bac3dc6da…
BjornFJohansson Apr 18, 2024
d0fef14
Deploying to gh-pages from @ BjornFJohansson/pydna@0f9522372f439d025c…
BjornFJohansson Apr 18, 2024
80834d1
try to build docs locally on gh-pages
BjornFJohansson Apr 18, 2024
806f20e
try to build gh pages
BjornFJohansson Apr 18, 2024
1464e63
try to build gh pages
BjornFJohansson Apr 18, 2024
e13a009
fix
BjornFJohansson Apr 18, 2024
94f6eb0
added sphinx ext
BjornFJohansson Apr 18, 2024
0f947ea
Deploying to gh-pages from @ BjornFJohansson/pydna@bc08a36b1f894780b4…
BjornFJohansson Apr 18, 2024
1c3f678
try fix docs
BjornFJohansson Apr 22, 2024
1864101
build docs
BjornFJohansson Apr 22, 2024
4cfbdb7
clean
BjornFJohansson Apr 22, 2024
255aa46
redirect docs badge to action
BjornFJohansson Apr 22, 2024
96c1de5
redirect docs badge to action
BjornFJohansson Apr 22, 2024
6ddec81
fix readme links
BjornFJohansson Apr 22, 2024
7f013bd
fix readme
BjornFJohansson Apr 22, 2024
23a6a2d
fix
BjornFJohansson Apr 22, 2024
0c43349
try to fix test error
BjornFJohansson Apr 22, 2024
6a72988
fix bug that recognized parts of re enzyme names as other enzymes
BjornFJohansson May 1, 2024
3222075
added comment with number of enzymes
BjornFJohansson May 1, 2024
c61afff
changed number of expected enzymes to the correct number 621
BjornFJohansson May 1, 2024
afac39c
more informative error msg
BjornFJohansson May 1, 2024
444e9fb
closes #216 (2)
manulera Apr 25, 2024
205ed7d
closes #196
manulera May 13, 2024
ac81427
vscode and poetry settings added
manulera May 13, 2024
88c56da
fix test
manulera May 13, 2024
9b8986b
add locations_overlap to utils
manulera Jun 21, 2024
8c1ebb8
Issue 238 (#239)
manulera Jul 15, 2024
2be88fb
closes #240
JeffXiePL Jul 15, 2024
17a1ed1
atomically write default config
jxu10 Mar 29, 2024
2c92f13
optimisation for #237
manulera Jul 16, 2024
47bc08e
fix python 3.8 typing
manulera Jul 16, 2024
d133461
include neb calculator and its tests
manulera Jul 31, 2024
12508a7
fix design and add tests
manulera Jul 31, 2024
019013e
example commit for #176
manulera Aug 12, 2024
3514427
Documentation notebooks 2 (#272)
manulera Sep 30, 2024
31b3322
update contribution guidelines (#274)
manulera Oct 3, 2024
09199a9
update CI action to enforce hooks (#277)
manulera Oct 3, 2024
2cd9d38
update: Added google badge to all notebooks issue #266 (#275)
hiyama341 Oct 3, 2024
1d36eeb
added seguid stamp to Genbank sequence files
BjornFJohansson Oct 3, 2024
610d3f6
fix test sequence file
BjornFJohansson Oct 3, 2024
277f61a
dependabot monthly
BjornFJohansson Oct 3, 2024
26bb292
New CRISPR example notebook (#260) (#284)
hiyama341 Oct 4, 2024
d46b3d9
Updated notebooks (#295)
manulera Oct 7, 2024
03816ec
progress towards #261
manulera Oct 3, 2024
e065db2
WIP
manulera Oct 3, 2024
474a675
remove code image from README for #261
manulera Oct 7, 2024
7e2c247
more README updates + make requirements.txt
manulera Oct 7, 2024
ece5d59
add requirements file
manulera Oct 7, 2024
7464e39
fix configuration
manulera Oct 7, 2024
2b010a9
typing for PrettyTable
Oct 6, 2024
982ceb9
typing for codon dicts
Oct 6, 2024
490f066
typing for Seq
Oct 6, 2024
ae04507
typing for FakeSeq
Oct 6, 2024
e6e1473
typing for Genbank
Oct 6, 2024
a591523
typing for sequence_picker module
Oct 6, 2024
7f89b8c
typing for common_sub_strings module
Oct 6, 2024
b8dbf7b
typing for Assembly.__init__ and Assembly.__repr__
Oct 6, 2024
4b6aa00
Bump pillow from 10.3.0 to 10.4.0
dependabot[bot] Oct 7, 2024
d722b93
Bump autopep8 from 2.1.0 to 2.3.1
dependabot[bot] Oct 7, 2024
ba91fe8
Bump black from 24.4.2 to 24.8.0
dependabot[bot] Oct 7, 2024
cfd1181
Bump sphinx-rtd-theme from 2.0.0 to 3.0.0
dependabot[bot] Oct 7, 2024
959b5d4
Bump prettytable from 3.10.0 to 3.11.0
dependabot[bot] Oct 7, 2024
4c2d929
closes #261 (#297)
manulera Oct 8, 2024
f063c40
tests for #281 #279, add type to pcr (#298)
manulera Oct 8, 2024
fd8577c
update codecov action for #242
manulera Oct 9, 2024
9e86c43
Issue 270 (#301)
manulera Oct 10, 2024
bd8317c
added example.ipynb to tests folder
BjornFJohansson Oct 6, 2024
4340cee
removed example.ipynb
BjornFJohansson Oct 6, 2024
1b142c8
deal with Tm = 0
BjornFJohansson Oct 6, 2024
9d112d7
fix notebook export related to #279
manulera Oct 8, 2024
768c6fa
New docs (#304)
manulera Oct 11, 2024
bca1d08
Fix link in README (#310)
dgruano Oct 15, 2024
72cd39b
Fix action (#311)
manulera Oct 15, 2024
a700da8
WIP
dgruano Oct 14, 2024
71ea805
Minimal working example, tests missing
dgruano Oct 14, 2024
6aa2736
WIP, Test implementation with USER cuts in single strands
dgruano Oct 15, 2024
0291efa
WIP, Add function to extract USER products
dgruano Oct 16, 2024
83efa38
USER refactor (#1)
manulera Oct 25, 2024
f4e2d5d
Add tests, passing
dgruano Oct 25, 2024
b4fca5f
Implement NtBbvCI nickase, add tests (failing)
dgruano Oct 30, 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
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: e1ad02ce3592def18a437f1884177507
tags: 645f666f9bcd5a90fca523b33c5a78b7
6 changes: 0 additions & 6 deletions .git_archival.json

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on: [push, pull_request]

name: "Documentation Status"

permissions:
contents: write

jobs:
build-and-publish:
if: "! contains(github.event.head_commit.message, '[ci skip]')"

timeout-minutes: 10

runs-on: ubuntu-latest

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4

- name: Session information
run: |
python --version

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs.prefer-active-python: true

- name: 🔩 list Poetry settings
run: poetry config --list

- name: 🔩 Install with Poetry
run: poetry install --all-extras --with docs

- name: Build documentation
run: |
cd docs
poetry run bash autogen_docs.sh
poetry run make html

- name: Deploy to GitHub pages 🚀
# Deploy only when master changes
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs/_build/html
63 changes: 45 additions & 18 deletions .github/workflows/pydna_test_and_coverage_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@ name: Tests & Coverage
on:
push:
branches:
- '**'
- '!master' # excludes master branch
- '!testpypi' # excludes testpypi branch
- "**"
- "!master" # excludes master branch
- "!testpypi" # excludes testpypi branch
tags-ignore:
- '*.*'
- "*.*"
pull_request: {}
jobs:
build:
name: Test (${{ matrix.python-version }}, ${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ 'macos-latest', 'windows-latest' ]
os: ["macos-latest", "windows-latest"]
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
include:
- os: ubuntu-latest
python-version: "3.8"
codecov: true
- os: ubuntu-latest
python-version: "3.9"
- os: ubuntu-latest
python-version: "3.10"
- os: ubuntu-latest
python-version: "3.11"
- os: ubuntu-latest
python-version: "3.12"
- os: ubuntu-latest
python-version: "3.8"
codecov: true
- os: ubuntu-latest
python-version: "3.9"
- os: ubuntu-latest
python-version: "3.10"
- os: ubuntu-latest
python-version: "3.11"
- os: ubuntu-latest
python-version: "3.12"
defaults:
run:
shell: bash
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs.prefer-active-python: true
virtualenvs.prefer-active-python: true

- name: 🔩 list Poetry settings
run: poetry config --list
Expand All @@ -61,9 +61,36 @@ jobs:
- name: 🔎 poetry run python run_test.py
run: poetry run python run_test.py

# Enforce pre-commit hooks ===========================
- name: Get changed files
if: (matrix.codecov)
id: changed-files
uses: tj-actions/changed-files@v45
with:
since_last_remote_commit: true

- uses: actions/cache@v4
if: (matrix.codecov)
id: cache-precommit
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-precommit-hooks-v2-${{ hashFiles('**/.pre-commit-config.yaml') }}

- name: Installing pre-commit hooks (cached)
if: (matrix.codecov) && (steps.cache-precommit.outputs.cache-hit != 'true')
run: poetry run pre-commit install --install-hooks

- name: Run style checking via pre-commit
if: (matrix.codecov && steps.changed-files.outputs.all_changed_files)
run: |
echo "Changed files:"
echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n'
poetry run pre-commit run --files ${{ steps.changed-files.outputs.all_changed_files }}

# ======================================================
- name: 🔼 Upload coverage to Codecov
if: (matrix.codecov)
uses: codecov/codecov-action@v1.0.13
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var/
*.egg-info/
.installed.cfg
*.egg
.venv/

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down Expand Up @@ -65,6 +66,8 @@ coverage.xml

# Sphinx documentation
docs/_build/
docs/markdown_notebooks
docs/modules/

# PyBuilder
target/
Expand Down
39 changes: 38 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,57 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
# Prevent committing to the master branch
- id: no-commit-to-branch
args: [--branch, master]
# Format yaml files
- id: check-yaml
# Fix end-of-file issues
- id: end-of-file-fixer
# Fix trailing whitespace
- id: trailing-whitespace
# Prevent debug statements
- id: debug-statements
- id: fix-encoding-pragma
- id: mixed-line-ending
# Code formatting
- repo: https://github.com/ambv/black
rev: 24.2.0
hooks:
- id: black
# Further linting (e.g. module imported but not used)
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
exclude: scripts/|docs/|tests/
# Verify that requirements.txt is up to date with poetry dependencies every commit
- repo: https://github.com/python-poetry/poetry
rev: 1.8.3
hooks:
- id: poetry-export
args: [
"-f",
"requirements.txt",
"--output",
"requirements.txt",
"--with",
"dev",
"--with",
"test",
"--with",
"docs",
"-E",
"clipboard download express gel",
]
files: 'requirements.txt'
# Remove metadata from jupyter notebooks. This will always be triggered when you commit a change in a notebook.
# Simply do `git add` and commit again.
- repo: local
hooks:
- id: nbstripout
name: nbstripout with keep-output
entry: |
python -m nbstripout --keep-output $@
language: system
files: \.ipynb$
exclude: tests/
13 changes: 0 additions & 13 deletions .readthedocs.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"ms-python.black-formatter",
"ms-python.flake8",
"ms-python.python",
"ms-python.vscode-pylance",
]
}
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/*.pyc": true,
"**/__pycache__": true
},
// Set flake8 path
"flake8.path": [".venv/bin/flake8"],
"black-formatter.path": [".venv/bin/black"],
"python.defaultInterpreterPath": ".venv/bin/python",
}
Loading