levseq 1.4.2__tar.gz → 1.4.3__tar.gz

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.
Files changed (42) hide show
  1. {levseq-1.4.2/levseq.egg-info → levseq-1.4.3}/PKG-INFO +36 -2
  2. {levseq-1.4.2 → levseq-1.4.3}/README.md +22 -0
  3. {levseq-1.4.2 → levseq-1.4.3}/levseq/__init__.py +1 -1
  4. {levseq-1.4.2 → levseq-1.4.3}/levseq/utils.py +6 -4
  5. {levseq-1.4.2 → levseq-1.4.3/levseq.egg-info}/PKG-INFO +36 -2
  6. {levseq-1.4.2 → levseq-1.4.3}/tests/test_variant_calling.py +1 -1
  7. {levseq-1.4.2 → levseq-1.4.3}/LICENSE +0 -0
  8. {levseq-1.4.2 → levseq-1.4.3}/MANIFEST.in +0 -0
  9. {levseq-1.4.2 → levseq-1.4.3}/levseq/IO_processor.py +0 -0
  10. {levseq-1.4.2 → levseq-1.4.3}/levseq/barcoding/__init__.py +0 -0
  11. {levseq-1.4.2 → levseq-1.4.3}/levseq/barcoding/demultiplex +0 -0
  12. {levseq-1.4.2 → levseq-1.4.3}/levseq/barcoding/demultiplex-arm64 +0 -0
  13. {levseq-1.4.2 → levseq-1.4.3}/levseq/barcoding/demultiplex-x86 +0 -0
  14. {levseq-1.4.2 → levseq-1.4.3}/levseq/barcoding/minion_barcodes.fasta +0 -0
  15. {levseq-1.4.2 → levseq-1.4.3}/levseq/basecaller.py +0 -0
  16. {levseq-1.4.2 → levseq-1.4.3}/levseq/cmd.py +0 -0
  17. {levseq-1.4.2 → levseq-1.4.3}/levseq/coordinates.py +0 -0
  18. {levseq-1.4.2 → levseq-1.4.3}/levseq/filter_orientation.py +0 -0
  19. {levseq-1.4.2 → levseq-1.4.3}/levseq/globals.py +0 -0
  20. {levseq-1.4.2 → levseq-1.4.3}/levseq/interface.py +0 -0
  21. {levseq-1.4.2 → levseq-1.4.3}/levseq/parser.py +0 -0
  22. {levseq-1.4.2 → levseq-1.4.3}/levseq/run_levseq.py +0 -0
  23. {levseq-1.4.2 → levseq-1.4.3}/levseq/screen.py +0 -0
  24. {levseq-1.4.2 → levseq-1.4.3}/levseq/seqfit.py +0 -0
  25. {levseq-1.4.2 → levseq-1.4.3}/levseq/simulation.py +0 -0
  26. {levseq-1.4.2 → levseq-1.4.3}/levseq/user.py +0 -0
  27. {levseq-1.4.2 → levseq-1.4.3}/levseq/variantcaller.py +0 -0
  28. {levseq-1.4.2 → levseq-1.4.3}/levseq/visualization.py +0 -0
  29. {levseq-1.4.2 → levseq-1.4.3}/levseq.egg-info/SOURCES.txt +0 -0
  30. {levseq-1.4.2 → levseq-1.4.3}/levseq.egg-info/dependency_links.txt +0 -0
  31. {levseq-1.4.2 → levseq-1.4.3}/levseq.egg-info/entry_points.txt +0 -0
  32. {levseq-1.4.2 → levseq-1.4.3}/levseq.egg-info/requires.txt +0 -0
  33. {levseq-1.4.2 → levseq-1.4.3}/levseq.egg-info/top_level.txt +0 -0
  34. {levseq-1.4.2 → levseq-1.4.3}/setup.cfg +0 -0
  35. {levseq-1.4.2 → levseq-1.4.3}/setup.py +0 -0
  36. {levseq-1.4.2 → levseq-1.4.3}/tests/test_copy_fastq.py +0 -0
  37. {levseq-1.4.2 → levseq-1.4.3}/tests/test_demultiplex_docker.py +0 -0
  38. {levseq-1.4.2 → levseq-1.4.3}/tests/test_deploy.py +0 -0
  39. {levseq-1.4.2 → levseq-1.4.3}/tests/test_opligopools.py +0 -0
  40. {levseq-1.4.2 → levseq-1.4.3}/tests/test_seqfitvis.py +0 -0
  41. {levseq-1.4.2 → levseq-1.4.3}/tests/test_seqs.py +0 -0
  42. {levseq-1.4.2 → levseq-1.4.3}/tests/test_statistics.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: levseq
3
- Version: 1.4.2
3
+ Version: 1.4.3
4
4
  Home-page: https://github.com/fhalab/levseq/
5
5
  Author: Yueming Long, Ariane Mora, Francesca-Zhoufan Li, Emre Gursoy
6
6
  Author-email: ylong@caltech.edu
@@ -44,6 +44,18 @@ Requires-Dist: scikit-learn
44
44
  Requires-Dist: statsmodels
45
45
  Requires-Dist: tqdm
46
46
  Requires-Dist: biopandas
47
+ Dynamic: author
48
+ Dynamic: author-email
49
+ Dynamic: classifier
50
+ Dynamic: description
51
+ Dynamic: description-content-type
52
+ Dynamic: home-page
53
+ Dynamic: keywords
54
+ Dynamic: license
55
+ Dynamic: license-file
56
+ Dynamic: project-url
57
+ Dynamic: requires-dist
58
+ Dynamic: requires-python
47
59
 
48
60
  # Variant Sequencing with Nanopore (LevSeq)
49
61
 
@@ -51,9 +63,21 @@ LevSeq provides a streamlined pipeline for sequencing and analyzing genetic vari
51
63
 
52
64
  ![Figure 1: LevSeq Workflow](manuscript/figures/LevSeq_Figure-1.jpeg)
53
65
  Figure 1: Overview of the LevSeq variant sequencing workflow using Nanopore technology. This diagram illustrates the key steps in the process, from sample preparation to data analysis and visualization.
66
+ ## Notes
67
+
68
+ LevSeq was designed for epPCR and SSM experiments, however, we are currently extending it to work for other enzyme engineering designs as well, the current features are under development:
69
+
70
+ 1. Insertion handling (see version 4.1.3) - thanks to Brian Zhong for his contributions to this section!
71
+ 2. Gene calling (handling different genes, use the `--oligopool` flag)
72
+
73
+ If you notice any issues with new features or have adapted the LevSeq code for your own use cases, we would love community contributions! Please submit either an issue, or a pull request and we will aim to incorperate the changes.
54
74
 
55
75
  ## Quick Start
56
76
 
77
+ Note the current stable version is: `1.4.2`, the latest version is `1.4.3`.
78
+
79
+ For stable releases these are made available via docker and pip. For latest versions, please clone the repo and install locally (see *Local development or install of latest version* below).
80
+
57
81
  ### Docker Installation (Recommended)
58
82
 
59
83
  1. Install Docker: [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)
@@ -183,6 +207,16 @@ For the wet lab protocol:
183
207
  - **Advanced Usage**: See the [manuscript notebook](https://github.com/fhalab/LevSeq/blob/main/manuscript/notebooks/epPCR_10plates.ipynb)
184
208
  - **Troubleshooting**: See our [computational protocols wiki](https://github.com/fhalab/LevSeq/wiki/Computational-protocols)
185
209
 
210
+ ### Local development or install of latest version
211
+
212
+ ```
213
+ conda create --name levseq python=3.10
214
+ git clone git@github.com:fhalab/LevSeq.git
215
+ cd LevSeq
216
+ python setup.py sdist bdist_wheel
217
+ pip install dist/levseq-1.4.3.tar.gz
218
+ ```
219
+
186
220
  ## Citing LevSeq
187
221
 
188
222
  If you find LevSeq useful, please cite our paper:
@@ -4,9 +4,21 @@ LevSeq provides a streamlined pipeline for sequencing and analyzing genetic vari
4
4
 
5
5
  ![Figure 1: LevSeq Workflow](manuscript/figures/LevSeq_Figure-1.jpeg)
6
6
  Figure 1: Overview of the LevSeq variant sequencing workflow using Nanopore technology. This diagram illustrates the key steps in the process, from sample preparation to data analysis and visualization.
7
+ ## Notes
8
+
9
+ LevSeq was designed for epPCR and SSM experiments, however, we are currently extending it to work for other enzyme engineering designs as well, the current features are under development:
10
+
11
+ 1. Insertion handling (see version 4.1.3) - thanks to Brian Zhong for his contributions to this section!
12
+ 2. Gene calling (handling different genes, use the `--oligopool` flag)
13
+
14
+ If you notice any issues with new features or have adapted the LevSeq code for your own use cases, we would love community contributions! Please submit either an issue, or a pull request and we will aim to incorperate the changes.
7
15
 
8
16
  ## Quick Start
9
17
 
18
+ Note the current stable version is: `1.4.2`, the latest version is `1.4.3`.
19
+
20
+ For stable releases these are made available via docker and pip. For latest versions, please clone the repo and install locally (see *Local development or install of latest version* below).
21
+
10
22
  ### Docker Installation (Recommended)
11
23
 
12
24
  1. Install Docker: [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)
@@ -136,6 +148,16 @@ For the wet lab protocol:
136
148
  - **Advanced Usage**: See the [manuscript notebook](https://github.com/fhalab/LevSeq/blob/main/manuscript/notebooks/epPCR_10plates.ipynb)
137
149
  - **Troubleshooting**: See our [computational protocols wiki](https://github.com/fhalab/LevSeq/wiki/Computational-protocols)
138
150
 
151
+ ### Local development or install of latest version
152
+
153
+ ```
154
+ conda create --name levseq python=3.10
155
+ git clone git@github.com:fhalab/LevSeq.git
156
+ cd LevSeq
157
+ python setup.py sdist bdist_wheel
158
+ pip install dist/levseq-1.4.3.tar.gz
159
+ ```
160
+
139
161
  ## Citing LevSeq
140
162
 
141
163
  If you find LevSeq useful, please cite our paper:
@@ -18,7 +18,7 @@
18
18
  __title__ = 'levseq'
19
19
  __description__ = 'LevSeq nanopore sequencing'
20
20
  __url__ = 'https://github.com/fhalab/levseq/'
21
- __version__ = '1.4.2'
21
+ __version__ = '1.4.3'
22
22
  __author__ = 'Yueming Long, Ariane Mora, Francesca-Zhoufan Li, Emre Gursoy'
23
23
  __author_email__ = 'ylong@caltech.edu'
24
24
  __license__ = 'GPL3'
@@ -205,7 +205,7 @@ def calculate_mutation_significance_across_well(seq_df):
205
205
  seq_df.at[i, 'p(g)'] = p_g
206
206
  seq_df.at[i, 'p(c)'] = p_c
207
207
  seq_df.at[i, 'p(n)'] = p_n
208
- seq_df.at[i, 'p(i)'] = p_n
208
+ seq_df.at[i, 'p(i)'] = p_i
209
209
  seq_df.at[i, 'p_value'] = p_value
210
210
  seq_df.at[i, 'percent_most_freq_mutation'] = val
211
211
  seq_df.at[i, 'most_frequent'] = actual_seq
@@ -324,6 +324,8 @@ def get_reads_for_well(parent_name, bam_file_path: str, ref_str: str, msa_path=N
324
324
  'C', 'p(c)', 'N', 'p(n)', 'I', 'p(i)', 'Warnings']
325
325
  return calculate_mutation_significance_across_well(seq_df), alignment_count
326
326
  return None, 0
327
+
328
+
327
329
  def make_row_from_read_pileup_across_well(well_df, ref_str, label, insert_map):
328
330
  """
329
331
  Given a pileup of reads, we want to get some summary information about that sequence
@@ -349,12 +351,12 @@ def make_row_from_read_pileup_across_well(well_df, ref_str, label, insert_map):
349
351
  warning = f'WARNING: INSERT.'
350
352
  rows.append([label, col, ref_seq, actual_seq, freq_non_ref, total_other, total_reads, 1.0, 0.0,
351
353
  len(vc[vc == 'A']), 1.0, len(vc[vc == 'T']), 1.0, len(vc[vc == 'G']), 1.0,
352
- len(vc[vc == 'C']), 1.0, len(vc[vc == '-']), 1.0, len(insert_map.get(col)),
354
+ len(vc[vc == 'C']), 1.0, len(vc[vc == '-']), 1.0, len(vc[vc == 'I']),
353
355
  1.0, warning])
354
- if ref_seq != '-':
356
+ elif ref_seq != '-':
355
357
  rows.append([label, col, ref_seq, actual_seq, freq_non_ref, total_other, total_reads, 1.0, 0.0,
356
358
  len(vc[vc == 'A']), 1.0, len(vc[vc == 'T']), 1.0, len(vc[vc == 'G']), 1.0,
357
- len(vc[vc == 'C']), 1.0, len(vc[vc == '-']), 1.0, 0,
359
+ len(vc[vc == 'C']), 1.0, len(vc[vc == '-']), 1.0, len(vc[vc == 'I']),
358
360
  1.0, warning])
359
361
  return rows
360
362
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: levseq
3
- Version: 1.4.2
3
+ Version: 1.4.3
4
4
  Home-page: https://github.com/fhalab/levseq/
5
5
  Author: Yueming Long, Ariane Mora, Francesca-Zhoufan Li, Emre Gursoy
6
6
  Author-email: ylong@caltech.edu
@@ -44,6 +44,18 @@ Requires-Dist: scikit-learn
44
44
  Requires-Dist: statsmodels
45
45
  Requires-Dist: tqdm
46
46
  Requires-Dist: biopandas
47
+ Dynamic: author
48
+ Dynamic: author-email
49
+ Dynamic: classifier
50
+ Dynamic: description
51
+ Dynamic: description-content-type
52
+ Dynamic: home-page
53
+ Dynamic: keywords
54
+ Dynamic: license
55
+ Dynamic: license-file
56
+ Dynamic: project-url
57
+ Dynamic: requires-dist
58
+ Dynamic: requires-python
47
59
 
48
60
  # Variant Sequencing with Nanopore (LevSeq)
49
61
 
@@ -51,9 +63,21 @@ LevSeq provides a streamlined pipeline for sequencing and analyzing genetic vari
51
63
 
52
64
  ![Figure 1: LevSeq Workflow](manuscript/figures/LevSeq_Figure-1.jpeg)
53
65
  Figure 1: Overview of the LevSeq variant sequencing workflow using Nanopore technology. This diagram illustrates the key steps in the process, from sample preparation to data analysis and visualization.
66
+ ## Notes
67
+
68
+ LevSeq was designed for epPCR and SSM experiments, however, we are currently extending it to work for other enzyme engineering designs as well, the current features are under development:
69
+
70
+ 1. Insertion handling (see version 4.1.3) - thanks to Brian Zhong for his contributions to this section!
71
+ 2. Gene calling (handling different genes, use the `--oligopool` flag)
72
+
73
+ If you notice any issues with new features or have adapted the LevSeq code for your own use cases, we would love community contributions! Please submit either an issue, or a pull request and we will aim to incorperate the changes.
54
74
 
55
75
  ## Quick Start
56
76
 
77
+ Note the current stable version is: `1.4.2`, the latest version is `1.4.3`.
78
+
79
+ For stable releases these are made available via docker and pip. For latest versions, please clone the repo and install locally (see *Local development or install of latest version* below).
80
+
57
81
  ### Docker Installation (Recommended)
58
82
 
59
83
  1. Install Docker: [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)
@@ -183,6 +207,16 @@ For the wet lab protocol:
183
207
  - **Advanced Usage**: See the [manuscript notebook](https://github.com/fhalab/LevSeq/blob/main/manuscript/notebooks/epPCR_10plates.ipynb)
184
208
  - **Troubleshooting**: See our [computational protocols wiki](https://github.com/fhalab/LevSeq/wiki/Computational-protocols)
185
209
 
210
+ ### Local development or install of latest version
211
+
212
+ ```
213
+ conda create --name levseq python=3.10
214
+ git clone git@github.com:fhalab/LevSeq.git
215
+ cd LevSeq
216
+ python setup.py sdist bdist_wheel
217
+ pip install dist/levseq-1.4.3.tar.gz
218
+ ```
219
+
186
220
  ## Citing LevSeq
187
221
 
188
222
  If you find LevSeq useful, please cite our paper:
@@ -283,7 +283,7 @@ class TestVariantCalling(TestClass):
283
283
 
284
284
  def test_calling_variant_with_insert(self):
285
285
  u.dp(["Testing calling variants using SSM with error"])
286
-
286
+ # ToDo: Update this with new calling need a new test for this
287
287
  parent_sequence = "ATGAGT"
288
288
  mutated_sequence = 'ATGAGT' # Not actually mutated
289
289
  parent_name = 'parent'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes