Skip to content

Commit 28ebc69

Browse files
authored
Merge pull request #425 from ComputationalCryoEM/develop
Develop ~~> Master
2 parents 4b25c09 + 9314944 commit 28ebc69

34 files changed

+1523
-121
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.6.3
2+
current_version = 0.7.0
33
commit = True
44
tag = True
55

.codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore:
2+
- "*/tests/*”

.github/workflows/workflow.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
include:
3535
# Re-include 3.6-stable with additional tox tasks.
3636
- python-version: 3.6
37-
# Note since the environments are fresh, we don't need invoke `clean`.
38-
pyenv: stable,docs,coveralls,report
37+
pyenv: stable,docs
38+
3939

4040
steps:
4141
- uses: actions/checkout@v1
@@ -49,6 +49,9 @@ jobs:
4949
pip install tox tox-gh-actions
5050
- name: Test with tox
5151
run: tox --skip-missing-interpreters false -e py${{ matrix.python-version }}-${{ matrix.pyenv }}
52+
- name: Upload Coverage to CodeCov
53+
uses: codecov/codecov-action@v1
54+
5255

5356
docs:
5457
if: github.ref == 'refs/heads/master'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
[![Azure Build Status](https://dev.azure.com/ComputationalCryoEM/Aspire-Python/_apis/build/status/ComputationalCryoEM.ASPIRE-Python?branchName=master)](https://dev.azure.com/ComputationalCryoEM/Aspire-Python/_build/latest?definitionId=3&branchName=master)
44
[![Github Actions Status](https://github.com/ComputationalCryoEM/ASPIRE-Python/actions/workflows/workflow.yml/badge.svg)](https://github.com/ComputationalCryoEM/ASPIRE-Python/actions/workflows/workflow.yml)
5-
[![Coverage Status](https://coveralls.io/repos/github/ComputationalCryoEM/ASPIRE-Python/badge.svg?branch=master)](https://coveralls.io/github/ComputationalCryoEM/ASPIRE-Python?branch=master)
5+
[![codecov](https://codecov.io/gh/ComputationalCryoEM/ASPIRE-Python/branch/master/graph/badge.svg?token=3XFC4VONX0)](https://codecov.io/gh/ComputationalCryoEM/ASPIRE-Python)
66

7-
# ASPIRE - Algorithms for Single Particle Reconstruction - v0.6.3
7+
# ASPIRE - Algorithms for Single Particle Reconstruction - v0.7.0
88

99
This is the Python version to supersede the [Matlab ASPIRE](https://github.com/PrincetonUniversity/aspire).
1010

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
# built documents.
6565
#
6666
# The full version, including alpha/beta/rc tags.
67-
release = version = "0.6.3"
67+
release = version = "0.7.0"
6868

6969
# The language for content autogenerated by Sphinx. Refer to documentation
7070
# for a list of supported languages.

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Aspire v0.6.3
1+
Aspire v0.7.0
22
==============
33

44
Algorithms for Single Particle Reconstruction

docs/source/quickstart.rst

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Substitute ``<command>`` with one of the available ``aspire`` commands. Use the
1414
Currently, the following operations can be run with ASPIRE:
1515

1616
1. Particle-Picking
17-
*******************
17+
###################
1818

1919
The ``apple`` command takes in a folder of one or more ``*.mrc`` files, picks particles using the Apple-Picker algorithm described at
2020
:cite:`DBLP:journals/corr/abs-1802-00469`, and generates ``*.star`` files, one for each ``*.mrc`` file processed, at an output folder location.
@@ -31,7 +31,7 @@ For example, to run the command on sample data included in ASPIRE (a single ``sa
3131
Use the ``--help`` argument with the command to see the several options associated with this command.
3232

3333
2. Simulation
34-
*************
34+
#############
3535

3636
The ``simulation`` command simulates a virtual particle made up of multiple gaussian blobs, generates of set of (noisy) images,
3737
runs the ASPIRE pipeline to determine the estimated mean volume and estimated covariance on the mean volume,
@@ -45,7 +45,7 @@ Use the ``--help`` argument to look for configurable options. You can select the
4545
the resolution of the (square) images generated etc.
4646

4747
3. Reconstructing a mean volume with covariance
48-
***********************************************
48+
###############################################
4949

5050
The ``cov3d`` command takes in a ``*.star`` file, processes the images (``*.mrcs`` files) found in the starfile, and runs the ASPIRE pipeline
5151
to determine the estimated mean volume and estimated covariance on the mean volume. No results are saved currently, but this command is
@@ -68,7 +68,7 @@ For example, to run the command on a sample data included in ASPIRE:
6868
Use the ``--help`` argument to look for configurable options.
6969

7070
4. Crop a set of projections
71-
****************************
71+
############################
7272

7373
The ``crop`` command crops a stack of projections of an mrc file to squares of a given size (in pixels). For example,
7474

@@ -80,9 +80,24 @@ The ``crop`` command crops a stack of projections of an mrc file to squares of a
8080

8181
This command will crop images found in `demo.mrc` to images of size 42x42, in debug mode and with maximum verbosity.
8282

83+
5. Estimate Contrast Transfer Function
84+
######################################
85+
86+
The ``estimate-ctf`` command estimates the CTF from experimental data and returns the CTF as a mrc file. For example,
87+
88+
.. code-block:: console
89+
90+
python -m aspire estimate-ctf --data_folder path_to_input_data_folder
91+
92+
.. note::
93+
94+
This command expects data files are in the directory prescribed by ``--data_folder``,
95+
and will process all files with the extension ``.mrc`` and ``.mrcs`` contained there.
96+
This command will output mrc files to a ``--output_dir``, set to ``./results`` by default.
97+
8398

8499
Arguments, options and flags
85-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100+
############################
86101

87102
- **Arguments** are mandatory inputs.
88103
For example, when running 'compare' command, you must provide 2 MRC files to compare.

setup.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def read(fname):
99

1010
setup(
1111
name="aspire",
12-
version="0.6.3",
12+
version="0.7.0",
1313
data_files=[
1414
("", ["src/aspire/config.ini"]),
1515
("", ["src/aspire/logging.conf"]),
@@ -27,20 +27,15 @@ def read(fname):
2727
"finufft",
2828
"importlib_resources>=1.0.2",
2929
"joblib",
30-
"jupyter",
3130
"matplotlib",
3231
"mrcfile",
3332
"numpy==1.16",
3433
"pandas==0.25.3",
3534
"pyfftw",
3635
"pillow",
37-
"pytest",
38-
"pytest-cov",
3936
"scipy==1.4.0",
4037
"scikit-learn",
4138
"setuptools>=0.41",
42-
"sphinxcontrib-bibtex",
43-
"sphinx-rtd-theme>=0.4.2",
4439
"tqdm",
4540
],
4641
# Here we can call out specific extras,
@@ -54,9 +49,15 @@ def read(fname):
5449
"check-manifest",
5550
"flake8>=3.7.0",
5651
"isort",
52+
"jupyter",
5753
"pyflakes",
5854
"pydocstyle",
55+
"parameterized",
56+
"pytest",
57+
"pytest-cov",
5958
"pytest-random-order",
59+
"sphinxcontrib-bibtex",
60+
"sphinx-rtd-theme>=0.4.2",
6061
"snakeviz",
6162
"tox",
6263
],

src/aspire/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from aspire.exceptions import handle_exception
1111

1212
# version in maj.min.bld format
13-
__version__ = "0.6.3"
13+
__version__ = "0.7.0"
1414

1515
# Implements some code that writes out exceptions to 'aspire.err.log'.
1616
config = Config(read_text(aspire, "config.ini"))

src/aspire/apple/picking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
class Picker:
26-
""" This class does the actual picking with help from PickerHelper class. """
26+
"""This class does the actual picking with help from PickerHelper class."""
2727

2828
def __init__(
2929
self,

0 commit comments

Comments
 (0)