PyEvoMotion 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: PyEvoMotion
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Evolutionary motion analysis tool
5
5
  Keywords: evolution,anomalous diffusion,bioinformatics
6
6
  Author: Lucas Goiriz
@@ -27,7 +27,7 @@ _(See [Goiriz L, et al.](http://doi.org/10.1073/pnas.2303578120))_
27
27
  ## Installation
28
28
 
29
29
  > **Note:**
30
- > `PyEvoMotion` uses [mafft](https://mafft.cbrc.jp/alignment/software/) to do the sequence alignment. If its not available in your system, on the the first run of `PyEvoMotion`, it will ask to install it locally.
30
+ > `PyEvoMotion` uses [mafft](https://mafft.cbrc.jp/alignment/software/) to do the sequence alignment. If it's not available in your system, on the first run of `PyEvoMotion`, it will ask to install it locally.
31
31
  >
32
32
  > If so, ensure to restart your shell session or run `source ~/.bashrc` to update the PATH environment variable, so that the `mafft` executable is available in your shell.
33
33
  >
@@ -74,8 +74,6 @@ options:
74
74
  -ep, --export_plots Export the plots of the analysis.
75
75
  -l LENGTH_FILTER, --length_filter LENGTH_FILTER
76
76
  Length filter for the sequences (removes sequences with length less than the specified value). Default is 0.
77
- -n N_THRESHOLD, --n_threshold N_THRESHOLD
78
- Minimum number of sequences required in a time interval to compute statistics. Default is 2.
79
77
  -xj, --export_json Export the run arguments to a json file.
80
78
  -ij IMPORT_JSON, --import_json IMPORT_JSON
81
79
  Import the run arguments from a JSON file. If this argument is passed, the other arguments are ignored. The JSON file must contain the mandatory keys 'seqs', 'meta', and 'out'.
@@ -114,4 +112,74 @@ pytest
114
112
  > Given the size of the test data, this may take a while.
115
113
 
116
114
 
115
+ ## Docker
117
116
 
117
+ A Docker image containing a virtual environment with `PyEvoMotion` pre-installed, its dependencies, the test data is available at `ghcr.io/luksgrin/pyevomotion:latest` and the manuscript's original figure script is available at `ghcr.io/luksgrin/pyevomotion-fig:latest`.
118
+
119
+ Pull the image from by running:
120
+
121
+ ```bash
122
+ docker pull ghcr.io/luksgrin/pyevomotion:latest
123
+ ```
124
+
125
+ Alternatively, to build the main image, run:
126
+
127
+ ```bash
128
+ docker build -t ghcr.io/luksgrin/pyevomotion:latest -f docker/Dockerfile
129
+ ```
130
+
131
+ ### Running the container
132
+
133
+ To start an interactive container:
134
+
135
+ ```bash
136
+ docker run -it ghcr.io/luksgrin/pyevomotion:latest
137
+ ```
138
+
139
+ This will open a prompt that displays a welcome message and allows you to start using `PyEvoMotion` right away.
140
+
141
+ ### Included data
142
+
143
+ The image includes (heavy) input files (FASTA and metadata) in:
144
+
145
+ ```bash
146
+ /home/pyevomotion/pyevomotion-*/tests/data/test3
147
+ ```
148
+
149
+ which are used by the test suite (and are automatically downloaded and extracted if not present, thereby using the containerized version is more convenient).
150
+
151
+ Also, the source script for figure generation (along with the pre-generated results of running `PyEvoMotion`) is already available under:
152
+
153
+ ```bash
154
+ /home/pyevomotion/pyevomotion-*/share
155
+ ```
156
+
157
+ Do note that if all the contents within
158
+
159
+ ```bash
160
+ /home/pyevomotion/pyevomotion-*/share
161
+ ```
162
+
163
+ are deleted except for the `manuscript_figure.py` script, it is still possible to generate the figure (although it will take much longer since the dataset's stats must be computed by `PyEvoMotion`).
164
+
165
+ ### Running tests
166
+
167
+ Once inside the container, run:
168
+
169
+ ```bash
170
+ cd pyevomotion-*
171
+ pytest
172
+ ```
173
+
174
+ This will execute the test suite included with the source.
175
+
176
+ ### Reproducing the Figure from the original manuscript
177
+
178
+ To reproduce the figure from the original manuscript, run:
179
+
180
+ ```bash
181
+ cd pyevomotion-*
182
+ python share/manuscript_figure.py export
183
+ ```
184
+
185
+ The figure will be saved in the `share` directory. Font warnings may appear — they are safe to ignore and do not affect the scientific content of the figure, only the styling.
@@ -0,0 +1,31 @@
1
+ PyEvoMotion/__init__.py,sha256=NqFDD-EZBzouzTwXozZqhPC9sLr7GQaElRKtP0tkHoE,568
2
+ PyEvoMotion/cli.py,sha256=U_zX6Y9kU9l-vtC9BeR1ebT7PLogAqpBNHs-DT552vI,15322
3
+ PyEvoMotion/core/__init__.py,sha256=1I-NkFFh6ljLgB_mqQVFLNvCrVKEHLVxa_5dsv3ihWQ,450
4
+ PyEvoMotion/core/base.py,sha256=0NQ0njPIFn9sL4PdymWE3LYcOmrl3LyCsMDRtAPCRVM,16851
5
+ PyEvoMotion/core/core.py,sha256=ynsHkqZMZZaoikRp1967smHaSzYVX658LjVewZtdQnI,19927
6
+ PyEvoMotion/core/parser.py,sha256=w23KzX0jl3NLS0WYjAY1s_2VFEqfn6EoTrQXmGRRXfg,17323
7
+ PyEvoMotion/utils.py,sha256=Ye3eL1RXZOZzzs2KZy0R45u06DOtLYo-zqE45tN2t7g,2859
8
+ share/anomalous_diffusion.pdf,sha256=yBjHK1dzyx1akaOjmQ8ogWhH1QUWXqCTdUHlXMhtwug,19384
9
+ share/figUK.tsv,sha256=DnPkVfbMGfsOq9x8IAkbPzIWsmQBB1hOXChSNkNlHGo,6711825
10
+ share/figUK_plots.pdf,sha256=-YfMSLcpsHWq4D9hwFc45LrBdL6BNEyNVNs2j_Y36M8,22865
11
+ share/figUK_regression_results.json,sha256=GFD3av78AhVzwuJkOYpqo5NwbUSdWoxe7_2fz7Xeysk,470
12
+ share/figUK_run_args.json,sha256=lWbeubYYU--BhEzkFHGOSF4cJ_wMhmYHwyj8Iaxqpj0,314
13
+ share/figUK_stats.tsv,sha256=ZvzPtCtnvnXQOU9blDx-_iU3h5IUXOU94D9xCfobXWE,2055
14
+ share/figUSA.tsv,sha256=hSPmKjCFk0a5B0XN75JhQOuhZgfcz9ZCxNrfqMrYcF0,6577552
15
+ share/figUSA_plots.pdf,sha256=679_rgan3Eb6KsclNu5xEeIvQEGJDIN4wMzMeqq2ZvI,22271
16
+ share/figUSA_regression_results.json,sha256=Q9t5KE_vV_-wuhRcXhnMrEMDc6BT1LFmlDu17RpigkY,468
17
+ share/figUSA_run_args.json,sha256=-jsoE6BXQTy7-UsgoVjuCZsShgtseQ3YUxX8vIGJMN4,317
18
+ share/figUSA_stats.tsv,sha256=BnpZs8oWgeRHiKCW8r7KrYc9YaO3i5X447jKPhtUZeQ,1751
19
+ share/figdataUK.tsv,sha256=HMF07FNT7d3Tb2OMHuFYkRzc6vb5EQ6vj2nJBpXlXJ8,939837
20
+ share/figdataUSA.tsv,sha256=z5yaIwcyfLo7Wr5ioE-x6_qXg9IhT_CmAJxcLTfP4jA,827811
21
+ share/figure.pdf,sha256=9D2gy7fr-LC52kRfD09aZP8Z8jmY_7K8IhigzIgAK5U,24194
22
+ share/generate_sequences_from_synthdata.py,sha256=_2IdMgcOB7SxAq30iypA-VypSmZyZmMhA8otKQnkfAw,3443
23
+ share/mafft_install.sh,sha256=pCw70UsKkkNXUsZMwQlQ2b4zSXFrBA7jAj9iOfGLzUw,1007
24
+ share/manuscript_figure.py,sha256=G61puV4VjfTgXbokD380aSB0C4Wo9HEJ8y3kw0_Z-TQ,24474
25
+ share/synth_figure.pdf,sha256=2hckyY0Uie16yn3YH5B1LE2lakOJGLzSbF6GHelvSEE,26350
26
+ share/uk_time_windows.pdf,sha256=U1zAMRgZxvfpfMr2ahUqHGYSxPVoDRQTGJSF96NJFck,35022
27
+ share/weekly_size.pdf,sha256=9hn6U8IBWQvZTR8hNLo3r3Kb4hwB7awxlt31_clcHjA,14602
28
+ pyevomotion-0.1.1.dist-info/METADATA,sha256=jgRSgfXK41_APjXUKNA41jggW_bGx9zYxnULz1B1ulQ,7833
29
+ pyevomotion-0.1.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
30
+ pyevomotion-0.1.1.dist-info/entry_points.txt,sha256=UMzoojYwQi-713hRggkQXUIfGNygUARhTdGs77Usp7s,53
31
+ pyevomotion-0.1.1.dist-info/RECORD,,
Binary file