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

Develop #48

Merged
merged 35 commits into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c81a9d9
Rework readme (#6)
okkevaneck Mar 19, 2021
2bd40ad
Fix import structure (#10)
okkevaneck Mar 22, 2021
dc44f80
Fix visualization helpers (#13)
okkevaneck Mar 22, 2021
937d0ac
Update build_deploy.yml
okkevaneck Mar 22, 2021
4b3cb6e
Fix compressing core and installed pre-commit (#15)
okkevaneck Mar 23, 2021
0cce83d
Fix datasets (#17)
okkevaneck Apr 8, 2021
df9e335
Test for matrix include (#18)
okkevaneck Apr 8, 2021
c0e92d3
Added enter to README
okkevaneck Apr 8, 2021
7cba0f9
Release v0.2a2 (#20)
okkevaneck Apr 9, 2021
c9e21c0
Changed version number
okkevaneck Apr 9, 2021
91dd2de
Add PyTest to repo and CI (#21)
okkevaneck Apr 29, 2021
4e14d09
Add CI caching for python environments (#23)
okkevaneck Apr 30, 2021
ece8b0f
Add documentation to project (#24)
okkevaneck May 21, 2021
39be57a
Started on AminoAcid class (#28)
okkevaneck Sep 28, 2022
bf5461f
Temp commit to switch branch
okkevaneck Oct 3, 2022
c7ccf94
Update core merge (#33)
okkevaneck Oct 3, 2022
f173ceb
Merged develop with update_core
okkevaneck Oct 3, 2022
d3a063a
Solved merge conflicts
okkevaneck Oct 3, 2022
30e5705
Fixed merge conflicts
okkevaneck Oct 6, 2022
8ad32ad
Merge branch 'master' into develop
okkevaneck Nov 10, 2022
0736eff
Merge visualization updates (#41) (#42)
okkevaneck Nov 10, 2022
973733e
Increased version to make new visualizations available
okkevaneck Nov 10, 2022
a2c792e
Merge branch 'master' into develop
okkevaneck Nov 10, 2022
981ff1d
Solved pull merge conflicts
okkevaneck Feb 6, 2023
8c50ef6
Add beam (#47)
okkevaneck Feb 6, 2023
810046f
Added ptests for beam search and naive prune
okkevaneck Feb 6, 2023
72f0a74
Fixed typo for beam search class
okkevaneck Feb 6, 2023
f88c9e2
Trying other pytest approach for mac
okkevaneck Feb 6, 2023
9262863
Trying run-on conditional from matrix
okkevaneck Feb 6, 2023
45628c3
Removed file specifier for pytest
okkevaneck Feb 6, 2023
d946645
Added Windows runner check to linux
okkevaneck Feb 6, 2023
58123c4
Enabled windows runner again
okkevaneck Feb 6, 2023
74fbc26
ALso removed big beam width
okkevaneck Feb 6, 2023
20e7330
Removing dir slash in setuptools for windows buil
okkevaneck Feb 6, 2023
6ec811c
Removed windows due to Pybind11 bug
okkevaneck Feb 6, 2023
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
Prev Previous commit
Next Next commit
Fix compressing core and installed pre-commit (#15)
* Pre-commit test

* Added local hook for zipping core

* Added .zip and .tar.gz autozips into core_archives folder

* Zip test

* tar.gz test

* Compressing works, only really ugly workaround for moving files

* Refered to the archives in the README
  • Loading branch information
okkevaneck authored Mar 23, 2021
commit 4b3cb6e40578fbf8dd4e4d64321d9e40baa53b99
22 changes: 22 additions & 0 deletions .githooks/zip_core.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# File: zip_core.sh
# Description: This bash file compresses the .cpp core code of prospr
# multiple times into archives with different extensions.

set -e

COREDIR=prospr/core/src
ARCHIVEDIR=core_archives

# Create .zip archive.
zip -jrq prospr_core.zip "${COREDIR}/"
mv prospr_core.zip "${ARCHIVEDIR}/prospr_core.zip"

# Create .tar.gz archive.
cd "${COREDIR}"
tar -czf prospr_core.tar.gz *.cpp *.hpp
cd ../../../
mv "${COREDIR}"/prospr_core.tar.gz "${ARCHIVEDIR}"/prospr_core.tar.gz

# Add archives to git stage.
git add "${ARCHIVEDIR}"/prospr_core.zip "${ARCHIVEDIR}"/prospr_core.tar.gz
7 changes: 0 additions & 7 deletions .github/hooks/pre-commit

This file was deleted.

35 changes: 35 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: >
(?x)^(
.idea/.*|
)$
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies: ["flake8-bugbear==20.1.4"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
language_version: python3.8
- repo: local
hooks:
- id: zip-core
name: zip-core
entry: ./.githooks/zip_core.sh
language: script
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
## Prospr: The Protein Structure Prediction Toolbox
## Prospr: The Protein Structure Prediction Toolbox
![GitHub](https://img.shields.io/github/license/OkkeVanEck/prospr)
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/OkkeVanEck/prospr?include_prereleases)
![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/OkkeVanEck/prospr/CI-CD/master)
**Creator:** Okke van Eck
![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/OkkeVanEck/prospr/CI-CD/master)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
**Creator:** Okke van Eck

This project is a universal toolbox for protein structure prediction within the HP-model.
It will contain a datastructure for creating own algorithms, pre-created algorithms, datasets and visualization functions.
Expand All @@ -18,12 +19,17 @@ This package can simply be installed via pip by running:
pip install prospr
```

## C++ core archives
All the core code which prospr runs on, is available as a compressed archive.
The folder `core_archives` contains a [.zip](core_archives/prospr_core.zip) and
a [.tar.gz](core_archives/prospr_core.tar.gz) archive.

## Example usage
*Work in progress*

## Future work
This toolbox could be used for other protein folding problems within discrete models.
It would be a great extension to support different models by creating a modular amino acid.
It would be a great extension to support different models by creating a modular amino acid.

## Changelog
*Work in progress*
Expand Down
Binary file added core_archives/prospr_core.tar.gz
Binary file not shown.
Binary file renamed prospr_core.zip → core_archives/prospr_core.zip
Binary file not shown.
4 changes: 0 additions & 4 deletions input.txt

This file was deleted.

19 changes: 1 addition & 18 deletions manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
# Description: This bash file supports the commands:
# - "init" for setting up a developing environment.
# - "echo_debug" for printing the used global variables.
# - "zip_core" for zipping all core .cpp files.
# - "build" for building the Python interfaces for
# the core .cpp files.
# - "clean" for removing all Python interfaces,
# .cxx files, and Python caches.
# - "deploy" for updating the live version on PyPI.

set -e

Expand All @@ -22,8 +20,8 @@ PYCACHES=$(find prospr/ -type d -name "__pycache__")
case "$1" in
# Setup a developing environment.
"init")
git config core.hooksPath .github/hooks
pip install -r requirements.txt
pre-commit install
;;
# Echo all global variables.
"echo_debug")
Expand All @@ -33,11 +31,6 @@ case "$1" in
echo -e "PY files:\n${PY_FILES}\n"
echo -e "PyCaches:\n${PYCACHES}\n"
;;
# Zip all .cpp files from core to 'prospr_core.zip'.
"zip_core")
echo "Compressing all C++ files into 'prospr_core.zip'.."
zip -jrq prospr_core.zip "${COREDIR}/src/"
;;
# Build all python interfaces for the core .cpp files.
"build")
echo "~ Creating the .py interface for the core.."
Expand All @@ -54,16 +47,6 @@ case "$1" in
rm -rf ${PYCACHES}
echo -e "\n~ Done cleaning!"
;;
# Update the live version on PyPI.
"deploy")
echo "~ Removing old files.."
rm -rf build dist prospr.egg-info
echo -e "\n~ Creating new package.."
python3 setup.py sdist bdist_wheel
echo -e "\n~ Uploading package.."
twine upload dist/*
echo -e "\n~ Done deploying!"
;;
*)
echo "No command detected from first argument.."
;;
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ matplotlib==3.3.0
numpy==1.19.0
pandas==1.0.5
pybind11==2.6.2
pre-commit==2.11.1
seaborn==0.10.1
setuptools>=49.2.0
twine>=3.2.0
Expand Down