wildlamp 1.0.1__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.
- wildlamp-1.0.1/LICENSE +201 -0
- wildlamp-1.0.1/PKG-INFO +234 -0
- wildlamp-1.0.1/README.md +212 -0
- wildlamp-1.0.1/pyproject.toml +34 -0
- wildlamp-1.0.1/setup.cfg +4 -0
- wildlamp-1.0.1/wildlamp.egg-info/PKG-INFO +234 -0
- wildlamp-1.0.1/wildlamp.egg-info/SOURCES.txt +8 -0
- wildlamp-1.0.1/wildlamp.egg-info/dependency_links.txt +1 -0
- wildlamp-1.0.1/wildlamp.egg-info/requires.txt +13 -0
- wildlamp-1.0.1/wildlamp.egg-info/top_level.txt +1 -0
wildlamp-1.0.1/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
wildlamp-1.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: wildlamp
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: A computational pipeline for designing conserved RT-LAMP primers across genomically uncharacterised wildlife species.
|
|
5
|
+
Author-email: Thomas Stocker <thomas.stocker@sydney.edu.au>
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: biopython>=1.80
|
|
10
|
+
Requires-Dist: numpy>=1.23
|
|
11
|
+
Requires-Dist: pandas>=1.5
|
|
12
|
+
Requires-Dist: matplotlib>=3.6
|
|
13
|
+
Requires-Dist: requests>=2.28
|
|
14
|
+
Requires-Dist: primer3-py>=0.7
|
|
15
|
+
Requires-Dist: viennarna>=2.6
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: pytest; extra == "dev"
|
|
18
|
+
Requires-Dist: black; extra == "dev"
|
|
19
|
+
Requires-Dist: ruff; extra == "dev"
|
|
20
|
+
Requires-Dist: mypy; extra == "dev"
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# wildlamp: a tool for identification of primer binding sites among conserved gene families of primers.
|
|
24
|
+
|
|
25
|
+
This package enables the construction of the LAMP primers, their optimisation and checking for quality/ cross-reactivity. The package can be downloaded as:
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
pip install wildlamp
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The main command for the construction of LAMP primers is the command:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
init_primers(alignment_path, output="fill in for your specified output.csv")
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Where the user specifies the file path for the aligned set of sequences and the rest occurs by computer.
|
|
38
|
+
|
|
39
|
+
Following on from that the user can retrieve the species from the aligned sequence accessions provided they are from NCBI, using the command:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
species_fetch(csv_file)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The primers can then be checked for hits against the genome of a species of their choice using either the csv2hits or the primer2hits command.
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
csv2hits(csv_file, taxid, output="fill in your preferred output prefix.csv")
|
|
49
|
+
|
|
50
|
+
# or use this command if you want to specify your own primers independent of the csv
|
|
51
|
+
panel: [
|
|
52
|
+
{"FIP": "ATCG...", "BIP": "GGTA..."},
|
|
53
|
+
{"FIP": "...", "BIP": "..."},
|
|
54
|
+
...
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
primers2hits(panel, taxid, output="preferred specified csv output")
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The final primers can be generated through the command:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
final_primers(alignment_path, primer_csv_path, output="preferred csv output")
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The final perturbation checks can be performed with the command below - with both lightweight and heavy perturbation analysis. Heavyweight analysis is primer-thermodynamic stress test and the lightweight is a biological/ transcript specificity/ sensitivity analysis... or more simply a multitransript mismatch scan. The first transcript in the fasta file is assumed to be the reference for the heavyweight analysis. Note only use unaligned fasta files for this section. The command can be called by:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
final_perturbation(unaligned_fasta_path,
|
|
70
|
+
primer_csv_path_from_earlier,
|
|
71
|
+
output="perturbation_output.csv path")
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Final validation check for the primer sets:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
final_valid(primer_csv_path, unaligned_fasta_path, output="output csv file")
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Once the primers are settled, run the csv file through this code to generate the standard curve. But the csv must be edited first to have a column "Gene" and "fasta":
|
|
81
|
+
```
|
|
82
|
+
stand_curves(primer_gene_csv_path, output="standard_curve.csv, but fill in yourself")
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
If one wants to run the standard curve quantification in the absence of experimental data the following code will do that, but first caveates, must fill in the user R, G, B values, the gene name in the csv, the curve_csv from the step above, the output and the dilution factor. The dilution factor is 1:X where X is the user specified value:
|
|
86
|
+
```
|
|
87
|
+
estimate_copies(user_R, user_G, user_B,
|
|
88
|
+
gene_name, curve_csv,
|
|
89
|
+
output="final_csv.csv",
|
|
90
|
+
dilution_factor=1)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
File directory is below:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
wildlamp/
|
|
97
|
+
|
|
|
98
|
+
|-- alignment/
|
|
99
|
+
| |-- conservation.py # compute_conservation
|
|
100
|
+
| |-- load_seq.py # load_alignment and clean_alignment
|
|
101
|
+
|
|
|
102
|
+
|-- data/
|
|
103
|
+
| |-- csv_results/
|
|
104
|
+
| | |-- FILL IN LATER
|
|
105
|
+
| |
|
|
106
|
+
| |-- study_fasta/
|
|
107
|
+
| | |-- DIO1_N_fur.fasta # DIO1 reference for followup
|
|
108
|
+
| | |-- DIO1_pinniped_aligned.fasta # DIO1 aligned
|
|
109
|
+
| | |-- DIO1_pinniped.fasta # unaligned
|
|
110
|
+
| | |-- DIO2_N_fur.fasta # DIO2 reference
|
|
111
|
+
| | |-- DIO2_pinniped_aligned.fasta # DIO2 aligned
|
|
112
|
+
| | |-- DIO2_pinniped.fasta # DIO2 unaligned
|
|
113
|
+
| | |-- DIO3_N_fur.fasta # DIO3 reference
|
|
114
|
+
| | |-- DIO3_pinnipedia.fas # DIO3 ALIGNED
|
|
115
|
+
| | |-- DIO3_pinnipeds.fasta # DIO3 UNALIGNED
|
|
116
|
+
| | |-- HSP70_all_aligned.fasta # HSP70 aligned
|
|
117
|
+
| | |-- HSP70_all.fasta # HSP70 unaligned
|
|
118
|
+
| | |-- HSP70_N_fur.fasta # HSP70 reference
|
|
119
|
+
| | |-- plasminogen_receptor_aligned.fasta # plasminogen receptor aligned
|
|
120
|
+
| | |-- plasminogen_receptor.fasta # plasminogen receptor unaligned (note no ref - not studied)
|
|
121
|
+
| | |-- slc25a43_aligned.fasta # slc25a43 aligned
|
|
122
|
+
| | |-- slc25a43_N_fur.fasta # slc25a43 reference
|
|
123
|
+
| | |-- slc25a43.fasta # unaligned
|
|
124
|
+
|
|
|
125
|
+
|-- failures/
|
|
126
|
+
| |-- debug.py # debug_no_matches
|
|
127
|
+
| |-- failure_mode.py # analyze_failure_modes
|
|
128
|
+
| |-- suggest.py # suggest_degenerate
|
|
129
|
+
|
|
|
130
|
+
|-- perturbation/
|
|
131
|
+
| |-- analysis.py # perturbation_analysis
|
|
132
|
+
| |-- best_mismatch_score.py # best_mismatch_score, find_best_matches
|
|
133
|
+
| |-- mismatch_counter.py # best_match
|
|
134
|
+
| |-- mutate.py # mutate_base and perturb_primer
|
|
135
|
+
| |-- robustness.py # built_robustness_matrix, compute_perturbation_robustness_scores
|
|
136
|
+
|
|
|
137
|
+
|-- pipeline/
|
|
138
|
+
| |-- conc.py # estimate_copies
|
|
139
|
+
| |-- csv2hits.py # csv2hits
|
|
140
|
+
| |-- final_perturb.py # fianl_perturbation
|
|
141
|
+
| |-- final_primers.py # final_primers
|
|
142
|
+
| |-- init_primers.py # init_primers
|
|
143
|
+
| |-- primer2hits.py # primers2hits
|
|
144
|
+
| |-- species_fetch.py # species_fetch
|
|
145
|
+
| |-- stand_curve.py # stand_curve
|
|
146
|
+
| |-- validate.py # final_validate
|
|
147
|
+
|
|
|
148
|
+
|-- primer_hits/
|
|
149
|
+
| |-- crossreactive.py # blast_sequence, biologically_meaningful
|
|
150
|
+
|
|
|
151
|
+
|-- primers/
|
|
152
|
+
| |-- amplicons.py # amplicon_heuristic and amplicon_score
|
|
153
|
+
| |-- analyse_primer_rows.py # analyse_row
|
|
154
|
+
| |-- build_full_lset.py # build_full_lset
|
|
155
|
+
| |-- clash.py # primer_clash, build_clash_map
|
|
156
|
+
| |-- detect_lamp.py # detect_lamp_sets
|
|
157
|
+
| |-- lamp_score.py # primer_basic_score, primer_thermo_score, primer_struct_score
|
|
158
|
+
| | # primer_conservation_score, lamp_score, rtlamp_score
|
|
159
|
+
| |-- mismatch.py # mismatch_cost
|
|
160
|
+
| |-- optimise_primer.py # optimise_primer
|
|
161
|
+
| |-- primer_from_csv.py # load_primers_from_csv
|
|
162
|
+
| |-- scan.py # primer_ok, scan_primers
|
|
163
|
+
| |-- species.py # primer_species_coverage, filter_primers_by_species
|
|
164
|
+
|
|
|
165
|
+
|-- scripts/ # contains the scripts used in the study
|
|
166
|
+
| |-- acc2spp.py # extract_accession, accession_to_gene_id, get_species_from_accession,
|
|
167
|
+
| | # extract_accessions_from_csv, write_species_lookup
|
|
168
|
+
| |-- fasta-stats.py # no commands - just basic code
|
|
169
|
+
| |-- final_dilution-LoD_3.py # rc, build_FIP, build_BIP, load_gene, best_match_mismatches,
|
|
170
|
+
| | # compute_hairpin, compute_homodimer, compute_heterodimer,
|
|
171
|
+
| | # has_3prime_dimer, compute_primer_features,
|
|
172
|
+
| | # fraction_sequestered, fraction_free, binding_efficiency,
|
|
173
|
+
| | # dimer_sink_factor, lamp_tm_score,
|
|
174
|
+
| | # lamp_primer_biophysical_score, rt_lamp_rate, simulate_rt_qlamp
|
|
175
|
+
| | # color_hnb_from_copies, color_pr_from_copies, delta_rgb,
|
|
176
|
+
| | # simulate_quant_curve, fit_standard_curve,
|
|
177
|
+
| | # copies_from_Tt_colour, plot_multi_gene_curve, plot_delta_rgb,
|
|
178
|
+
| | # generate_all_thermo_tables, write_thermo_csv,
|
|
179
|
+
| | # generate_standard_curve_summary, main
|
|
180
|
+
| |-- final-validation.py # load_gene, gc_content, fold_rna, best_match, binding_accessibility
|
|
181
|
+
| | # thermo, analyse_gene, write_gene_tables, write_gc_table,
|
|
182
|
+
| | # write_long_all, main
|
|
183
|
+
| |-- LAMP_Assay.py # load_alignment, clean_alignment, compute_conservation, gc, bad_run,
|
|
184
|
+
| | # mismatch_cost, primers_ok, scan_primers, primer_species_coverage,
|
|
185
|
+
| | # filter_primers_by_species, species_coverage, primers_clash,
|
|
186
|
+
| | # build_clash_map, amplicon_heuristic, detect_lamp_sets, evaluate_primer3,
|
|
187
|
+
| | # vienna_fold_dna, validate_primer_vienna, validate_lamp_set_vienna,
|
|
188
|
+
| | # primer_basic_score, primer_thermo_score, primer_struct_score,
|
|
189
|
+
| | # primer_conservation_score, amplicon_score, lamp_score, rtlamp_score,
|
|
190
|
+
| | # suggest_degenerate, analyze_failure_modes, mutate_base, perturb_primer,
|
|
191
|
+
| | # perturbation_analysis, build_robustness_matrix,
|
|
192
|
+
| | # compute_perturbation_robustness_scores, debug_no_matches, main
|
|
193
|
+
| |-- LAMP-hits.py # blast_sequences, biologically_meaningful
|
|
194
|
+
| |-- pertubation_final.py # best_mismatch_score,
|
|
195
|
+
| |-- primer_optimise.py # load_alignment, clean_alignment, gc, bad_run, rc, mismatch_cost,
|
|
196
|
+
| # primer_species_coverage, thermo_score, primer_ok, optimise_primer,
|
|
197
|
+
| # vienna_fold_dna, vienna_validate_set, mutate_base, perturb_primer,
|
|
198
|
+
| # perturbation_analysis, compute_robustness_score, build_full_lset, main
|
|
199
|
+
|
|
|
200
|
+
|-- simulations/
|
|
201
|
+
| |-- curve_fit.py # fit_standard_curve, copies_from_Tt
|
|
202
|
+
| |-- dye.py # color_pr_from_copies, delta_rgb, parameters: PR_BASELINE
|
|
203
|
+
| |-- model_rtlamp.py # best_match_mismatches, compute_hairpin, compute_homodimer,
|
|
204
|
+
| | # compute_heterodimer, has_3prime_dimer, compute_primer_features,
|
|
205
|
+
| | # fraction_sequestered, fraction_free, binding_efficiency,
|
|
206
|
+
| | # dimer_sink_factor, lamp_tm_score, lamp_primer_biophysical_score,
|
|
207
|
+
| | # rt_lamp_rate, simulate_rt_qlamp
|
|
208
|
+
| |-- sim_curve.py # simulate_quant_curve_pr, parameters: QUANT_CONC
|
|
209
|
+
|
|
|
210
|
+
|-- species/
|
|
211
|
+
| |-- accession.py # extract_accession, extract_accessions_from_csv
|
|
212
|
+
| |-- ncbi_lookup.py # accession_to_gene_id, get_species_from_accession
|
|
213
|
+
| |-- table.py # write_species_lookup
|
|
214
|
+
|
|
|
215
|
+
|-- thermodynamics/
|
|
216
|
+
| |-- fold_rna.py # fold_rna
|
|
217
|
+
| |-- primer_access.py # binding_accessibility
|
|
218
|
+
| |-- primer3_eval.py # evaluate_primer3
|
|
219
|
+
| |-- scoring.py # thermo_score
|
|
220
|
+
| |-- simple_thermo.py # thermo
|
|
221
|
+
| |-- vienna_eval.py # vienna_fold_dna, validate_primer_vienna, validate_lamp_set_vienna
|
|
222
|
+
|
|
|
223
|
+
|-- utils/
|
|
224
|
+
| |-- build_primers.py # build_BIP, build_FIP
|
|
225
|
+
| |-- gc_content.py # gc_content
|
|
226
|
+
| |-- gene_primer.py # load_gene_primer_csv
|
|
227
|
+
| |-- load_seq.py # load_primers_csv, load_fasta
|
|
228
|
+
| |-- seq.py # gc, bad_run, rc
|
|
229
|
+
| |-- valid_csv_write.py # write_outputs
|
|
230
|
+
|
|
|
231
|
+
|-- __init__.py
|
|
232
|
+
|-- LICENSE # open access code - must cite
|
|
233
|
+
|-- README.md
|
|
234
|
+
```
|
wildlamp-1.0.1/README.md
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# wildlamp: a tool for identification of primer binding sites among conserved gene families of primers.
|
|
2
|
+
|
|
3
|
+
This package enables the construction of the LAMP primers, their optimisation and checking for quality/ cross-reactivity. The package can be downloaded as:
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
pip install wildlamp
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The main command for the construction of LAMP primers is the command:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
init_primers(alignment_path, output="fill in for your specified output.csv")
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Where the user specifies the file path for the aligned set of sequences and the rest occurs by computer.
|
|
16
|
+
|
|
17
|
+
Following on from that the user can retrieve the species from the aligned sequence accessions provided they are from NCBI, using the command:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
species_fetch(csv_file)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The primers can then be checked for hits against the genome of a species of their choice using either the csv2hits or the primer2hits command.
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
csv2hits(csv_file, taxid, output="fill in your preferred output prefix.csv")
|
|
27
|
+
|
|
28
|
+
# or use this command if you want to specify your own primers independent of the csv
|
|
29
|
+
panel: [
|
|
30
|
+
{"FIP": "ATCG...", "BIP": "GGTA..."},
|
|
31
|
+
{"FIP": "...", "BIP": "..."},
|
|
32
|
+
...
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
primers2hits(panel, taxid, output="preferred specified csv output")
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The final primers can be generated through the command:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
final_primers(alignment_path, primer_csv_path, output="preferred csv output")
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The final perturbation checks can be performed with the command below - with both lightweight and heavy perturbation analysis. Heavyweight analysis is primer-thermodynamic stress test and the lightweight is a biological/ transcript specificity/ sensitivity analysis... or more simply a multitransript mismatch scan. The first transcript in the fasta file is assumed to be the reference for the heavyweight analysis. Note only use unaligned fasta files for this section. The command can be called by:
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
final_perturbation(unaligned_fasta_path,
|
|
48
|
+
primer_csv_path_from_earlier,
|
|
49
|
+
output="perturbation_output.csv path")
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Final validation check for the primer sets:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
final_valid(primer_csv_path, unaligned_fasta_path, output="output csv file")
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Once the primers are settled, run the csv file through this code to generate the standard curve. But the csv must be edited first to have a column "Gene" and "fasta":
|
|
59
|
+
```
|
|
60
|
+
stand_curves(primer_gene_csv_path, output="standard_curve.csv, but fill in yourself")
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
If one wants to run the standard curve quantification in the absence of experimental data the following code will do that, but first caveates, must fill in the user R, G, B values, the gene name in the csv, the curve_csv from the step above, the output and the dilution factor. The dilution factor is 1:X where X is the user specified value:
|
|
64
|
+
```
|
|
65
|
+
estimate_copies(user_R, user_G, user_B,
|
|
66
|
+
gene_name, curve_csv,
|
|
67
|
+
output="final_csv.csv",
|
|
68
|
+
dilution_factor=1)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
File directory is below:
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
wildlamp/
|
|
75
|
+
|
|
|
76
|
+
|-- alignment/
|
|
77
|
+
| |-- conservation.py # compute_conservation
|
|
78
|
+
| |-- load_seq.py # load_alignment and clean_alignment
|
|
79
|
+
|
|
|
80
|
+
|-- data/
|
|
81
|
+
| |-- csv_results/
|
|
82
|
+
| | |-- FILL IN LATER
|
|
83
|
+
| |
|
|
84
|
+
| |-- study_fasta/
|
|
85
|
+
| | |-- DIO1_N_fur.fasta # DIO1 reference for followup
|
|
86
|
+
| | |-- DIO1_pinniped_aligned.fasta # DIO1 aligned
|
|
87
|
+
| | |-- DIO1_pinniped.fasta # unaligned
|
|
88
|
+
| | |-- DIO2_N_fur.fasta # DIO2 reference
|
|
89
|
+
| | |-- DIO2_pinniped_aligned.fasta # DIO2 aligned
|
|
90
|
+
| | |-- DIO2_pinniped.fasta # DIO2 unaligned
|
|
91
|
+
| | |-- DIO3_N_fur.fasta # DIO3 reference
|
|
92
|
+
| | |-- DIO3_pinnipedia.fas # DIO3 ALIGNED
|
|
93
|
+
| | |-- DIO3_pinnipeds.fasta # DIO3 UNALIGNED
|
|
94
|
+
| | |-- HSP70_all_aligned.fasta # HSP70 aligned
|
|
95
|
+
| | |-- HSP70_all.fasta # HSP70 unaligned
|
|
96
|
+
| | |-- HSP70_N_fur.fasta # HSP70 reference
|
|
97
|
+
| | |-- plasminogen_receptor_aligned.fasta # plasminogen receptor aligned
|
|
98
|
+
| | |-- plasminogen_receptor.fasta # plasminogen receptor unaligned (note no ref - not studied)
|
|
99
|
+
| | |-- slc25a43_aligned.fasta # slc25a43 aligned
|
|
100
|
+
| | |-- slc25a43_N_fur.fasta # slc25a43 reference
|
|
101
|
+
| | |-- slc25a43.fasta # unaligned
|
|
102
|
+
|
|
|
103
|
+
|-- failures/
|
|
104
|
+
| |-- debug.py # debug_no_matches
|
|
105
|
+
| |-- failure_mode.py # analyze_failure_modes
|
|
106
|
+
| |-- suggest.py # suggest_degenerate
|
|
107
|
+
|
|
|
108
|
+
|-- perturbation/
|
|
109
|
+
| |-- analysis.py # perturbation_analysis
|
|
110
|
+
| |-- best_mismatch_score.py # best_mismatch_score, find_best_matches
|
|
111
|
+
| |-- mismatch_counter.py # best_match
|
|
112
|
+
| |-- mutate.py # mutate_base and perturb_primer
|
|
113
|
+
| |-- robustness.py # built_robustness_matrix, compute_perturbation_robustness_scores
|
|
114
|
+
|
|
|
115
|
+
|-- pipeline/
|
|
116
|
+
| |-- conc.py # estimate_copies
|
|
117
|
+
| |-- csv2hits.py # csv2hits
|
|
118
|
+
| |-- final_perturb.py # fianl_perturbation
|
|
119
|
+
| |-- final_primers.py # final_primers
|
|
120
|
+
| |-- init_primers.py # init_primers
|
|
121
|
+
| |-- primer2hits.py # primers2hits
|
|
122
|
+
| |-- species_fetch.py # species_fetch
|
|
123
|
+
| |-- stand_curve.py # stand_curve
|
|
124
|
+
| |-- validate.py # final_validate
|
|
125
|
+
|
|
|
126
|
+
|-- primer_hits/
|
|
127
|
+
| |-- crossreactive.py # blast_sequence, biologically_meaningful
|
|
128
|
+
|
|
|
129
|
+
|-- primers/
|
|
130
|
+
| |-- amplicons.py # amplicon_heuristic and amplicon_score
|
|
131
|
+
| |-- analyse_primer_rows.py # analyse_row
|
|
132
|
+
| |-- build_full_lset.py # build_full_lset
|
|
133
|
+
| |-- clash.py # primer_clash, build_clash_map
|
|
134
|
+
| |-- detect_lamp.py # detect_lamp_sets
|
|
135
|
+
| |-- lamp_score.py # primer_basic_score, primer_thermo_score, primer_struct_score
|
|
136
|
+
| | # primer_conservation_score, lamp_score, rtlamp_score
|
|
137
|
+
| |-- mismatch.py # mismatch_cost
|
|
138
|
+
| |-- optimise_primer.py # optimise_primer
|
|
139
|
+
| |-- primer_from_csv.py # load_primers_from_csv
|
|
140
|
+
| |-- scan.py # primer_ok, scan_primers
|
|
141
|
+
| |-- species.py # primer_species_coverage, filter_primers_by_species
|
|
142
|
+
|
|
|
143
|
+
|-- scripts/ # contains the scripts used in the study
|
|
144
|
+
| |-- acc2spp.py # extract_accession, accession_to_gene_id, get_species_from_accession,
|
|
145
|
+
| | # extract_accessions_from_csv, write_species_lookup
|
|
146
|
+
| |-- fasta-stats.py # no commands - just basic code
|
|
147
|
+
| |-- final_dilution-LoD_3.py # rc, build_FIP, build_BIP, load_gene, best_match_mismatches,
|
|
148
|
+
| | # compute_hairpin, compute_homodimer, compute_heterodimer,
|
|
149
|
+
| | # has_3prime_dimer, compute_primer_features,
|
|
150
|
+
| | # fraction_sequestered, fraction_free, binding_efficiency,
|
|
151
|
+
| | # dimer_sink_factor, lamp_tm_score,
|
|
152
|
+
| | # lamp_primer_biophysical_score, rt_lamp_rate, simulate_rt_qlamp
|
|
153
|
+
| | # color_hnb_from_copies, color_pr_from_copies, delta_rgb,
|
|
154
|
+
| | # simulate_quant_curve, fit_standard_curve,
|
|
155
|
+
| | # copies_from_Tt_colour, plot_multi_gene_curve, plot_delta_rgb,
|
|
156
|
+
| | # generate_all_thermo_tables, write_thermo_csv,
|
|
157
|
+
| | # generate_standard_curve_summary, main
|
|
158
|
+
| |-- final-validation.py # load_gene, gc_content, fold_rna, best_match, binding_accessibility
|
|
159
|
+
| | # thermo, analyse_gene, write_gene_tables, write_gc_table,
|
|
160
|
+
| | # write_long_all, main
|
|
161
|
+
| |-- LAMP_Assay.py # load_alignment, clean_alignment, compute_conservation, gc, bad_run,
|
|
162
|
+
| | # mismatch_cost, primers_ok, scan_primers, primer_species_coverage,
|
|
163
|
+
| | # filter_primers_by_species, species_coverage, primers_clash,
|
|
164
|
+
| | # build_clash_map, amplicon_heuristic, detect_lamp_sets, evaluate_primer3,
|
|
165
|
+
| | # vienna_fold_dna, validate_primer_vienna, validate_lamp_set_vienna,
|
|
166
|
+
| | # primer_basic_score, primer_thermo_score, primer_struct_score,
|
|
167
|
+
| | # primer_conservation_score, amplicon_score, lamp_score, rtlamp_score,
|
|
168
|
+
| | # suggest_degenerate, analyze_failure_modes, mutate_base, perturb_primer,
|
|
169
|
+
| | # perturbation_analysis, build_robustness_matrix,
|
|
170
|
+
| | # compute_perturbation_robustness_scores, debug_no_matches, main
|
|
171
|
+
| |-- LAMP-hits.py # blast_sequences, biologically_meaningful
|
|
172
|
+
| |-- pertubation_final.py # best_mismatch_score,
|
|
173
|
+
| |-- primer_optimise.py # load_alignment, clean_alignment, gc, bad_run, rc, mismatch_cost,
|
|
174
|
+
| # primer_species_coverage, thermo_score, primer_ok, optimise_primer,
|
|
175
|
+
| # vienna_fold_dna, vienna_validate_set, mutate_base, perturb_primer,
|
|
176
|
+
| # perturbation_analysis, compute_robustness_score, build_full_lset, main
|
|
177
|
+
|
|
|
178
|
+
|-- simulations/
|
|
179
|
+
| |-- curve_fit.py # fit_standard_curve, copies_from_Tt
|
|
180
|
+
| |-- dye.py # color_pr_from_copies, delta_rgb, parameters: PR_BASELINE
|
|
181
|
+
| |-- model_rtlamp.py # best_match_mismatches, compute_hairpin, compute_homodimer,
|
|
182
|
+
| | # compute_heterodimer, has_3prime_dimer, compute_primer_features,
|
|
183
|
+
| | # fraction_sequestered, fraction_free, binding_efficiency,
|
|
184
|
+
| | # dimer_sink_factor, lamp_tm_score, lamp_primer_biophysical_score,
|
|
185
|
+
| | # rt_lamp_rate, simulate_rt_qlamp
|
|
186
|
+
| |-- sim_curve.py # simulate_quant_curve_pr, parameters: QUANT_CONC
|
|
187
|
+
|
|
|
188
|
+
|-- species/
|
|
189
|
+
| |-- accession.py # extract_accession, extract_accessions_from_csv
|
|
190
|
+
| |-- ncbi_lookup.py # accession_to_gene_id, get_species_from_accession
|
|
191
|
+
| |-- table.py # write_species_lookup
|
|
192
|
+
|
|
|
193
|
+
|-- thermodynamics/
|
|
194
|
+
| |-- fold_rna.py # fold_rna
|
|
195
|
+
| |-- primer_access.py # binding_accessibility
|
|
196
|
+
| |-- primer3_eval.py # evaluate_primer3
|
|
197
|
+
| |-- scoring.py # thermo_score
|
|
198
|
+
| |-- simple_thermo.py # thermo
|
|
199
|
+
| |-- vienna_eval.py # vienna_fold_dna, validate_primer_vienna, validate_lamp_set_vienna
|
|
200
|
+
|
|
|
201
|
+
|-- utils/
|
|
202
|
+
| |-- build_primers.py # build_BIP, build_FIP
|
|
203
|
+
| |-- gc_content.py # gc_content
|
|
204
|
+
| |-- gene_primer.py # load_gene_primer_csv
|
|
205
|
+
| |-- load_seq.py # load_primers_csv, load_fasta
|
|
206
|
+
| |-- seq.py # gc, bad_run, rc
|
|
207
|
+
| |-- valid_csv_write.py # write_outputs
|
|
208
|
+
|
|
|
209
|
+
|-- __init__.py
|
|
210
|
+
|-- LICENSE # open access code - must cite
|
|
211
|
+
|-- README.md
|
|
212
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "wildlamp"
|
|
3
|
+
version = "1.0.1"
|
|
4
|
+
description = "A computational pipeline for designing conserved RT-LAMP primers across genomically uncharacterised wildlife species."
|
|
5
|
+
authors = [
|
|
6
|
+
{ name = "Thomas Stocker", email = "thomas.stocker@sydney.edu.au" }
|
|
7
|
+
]
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
requires-python = ">=3.9"
|
|
10
|
+
|
|
11
|
+
dependencies = [
|
|
12
|
+
"biopython>=1.80",
|
|
13
|
+
"numpy>=1.23",
|
|
14
|
+
"pandas>=1.5",
|
|
15
|
+
"matplotlib>=3.6",
|
|
16
|
+
"requests>=2.28",
|
|
17
|
+
"primer3-py>=0.7",
|
|
18
|
+
"viennarna>=2.6",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[project.optional-dependencies]
|
|
22
|
+
dev = [
|
|
23
|
+
"pytest",
|
|
24
|
+
"black",
|
|
25
|
+
"ruff",
|
|
26
|
+
"mypy"
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[build-system]
|
|
30
|
+
requires = ["setuptools>=65", "wheel"]
|
|
31
|
+
build-backend = "setuptools.build_meta"
|
|
32
|
+
|
|
33
|
+
[tool.setuptools.packages.find]
|
|
34
|
+
include = ["wildlamp*"]
|
wildlamp-1.0.1/setup.cfg
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: wildlamp
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: A computational pipeline for designing conserved RT-LAMP primers across genomically uncharacterised wildlife species.
|
|
5
|
+
Author-email: Thomas Stocker <thomas.stocker@sydney.edu.au>
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: biopython>=1.80
|
|
10
|
+
Requires-Dist: numpy>=1.23
|
|
11
|
+
Requires-Dist: pandas>=1.5
|
|
12
|
+
Requires-Dist: matplotlib>=3.6
|
|
13
|
+
Requires-Dist: requests>=2.28
|
|
14
|
+
Requires-Dist: primer3-py>=0.7
|
|
15
|
+
Requires-Dist: viennarna>=2.6
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: pytest; extra == "dev"
|
|
18
|
+
Requires-Dist: black; extra == "dev"
|
|
19
|
+
Requires-Dist: ruff; extra == "dev"
|
|
20
|
+
Requires-Dist: mypy; extra == "dev"
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# wildlamp: a tool for identification of primer binding sites among conserved gene families of primers.
|
|
24
|
+
|
|
25
|
+
This package enables the construction of the LAMP primers, their optimisation and checking for quality/ cross-reactivity. The package can be downloaded as:
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
pip install wildlamp
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The main command for the construction of LAMP primers is the command:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
init_primers(alignment_path, output="fill in for your specified output.csv")
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Where the user specifies the file path for the aligned set of sequences and the rest occurs by computer.
|
|
38
|
+
|
|
39
|
+
Following on from that the user can retrieve the species from the aligned sequence accessions provided they are from NCBI, using the command:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
species_fetch(csv_file)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The primers can then be checked for hits against the genome of a species of their choice using either the csv2hits or the primer2hits command.
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
csv2hits(csv_file, taxid, output="fill in your preferred output prefix.csv")
|
|
49
|
+
|
|
50
|
+
# or use this command if you want to specify your own primers independent of the csv
|
|
51
|
+
panel: [
|
|
52
|
+
{"FIP": "ATCG...", "BIP": "GGTA..."},
|
|
53
|
+
{"FIP": "...", "BIP": "..."},
|
|
54
|
+
...
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
primers2hits(panel, taxid, output="preferred specified csv output")
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The final primers can be generated through the command:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
final_primers(alignment_path, primer_csv_path, output="preferred csv output")
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The final perturbation checks can be performed with the command below - with both lightweight and heavy perturbation analysis. Heavyweight analysis is primer-thermodynamic stress test and the lightweight is a biological/ transcript specificity/ sensitivity analysis... or more simply a multitransript mismatch scan. The first transcript in the fasta file is assumed to be the reference for the heavyweight analysis. Note only use unaligned fasta files for this section. The command can be called by:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
final_perturbation(unaligned_fasta_path,
|
|
70
|
+
primer_csv_path_from_earlier,
|
|
71
|
+
output="perturbation_output.csv path")
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Final validation check for the primer sets:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
final_valid(primer_csv_path, unaligned_fasta_path, output="output csv file")
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Once the primers are settled, run the csv file through this code to generate the standard curve. But the csv must be edited first to have a column "Gene" and "fasta":
|
|
81
|
+
```
|
|
82
|
+
stand_curves(primer_gene_csv_path, output="standard_curve.csv, but fill in yourself")
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
If one wants to run the standard curve quantification in the absence of experimental data the following code will do that, but first caveates, must fill in the user R, G, B values, the gene name in the csv, the curve_csv from the step above, the output and the dilution factor. The dilution factor is 1:X where X is the user specified value:
|
|
86
|
+
```
|
|
87
|
+
estimate_copies(user_R, user_G, user_B,
|
|
88
|
+
gene_name, curve_csv,
|
|
89
|
+
output="final_csv.csv",
|
|
90
|
+
dilution_factor=1)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
File directory is below:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
wildlamp/
|
|
97
|
+
|
|
|
98
|
+
|-- alignment/
|
|
99
|
+
| |-- conservation.py # compute_conservation
|
|
100
|
+
| |-- load_seq.py # load_alignment and clean_alignment
|
|
101
|
+
|
|
|
102
|
+
|-- data/
|
|
103
|
+
| |-- csv_results/
|
|
104
|
+
| | |-- FILL IN LATER
|
|
105
|
+
| |
|
|
106
|
+
| |-- study_fasta/
|
|
107
|
+
| | |-- DIO1_N_fur.fasta # DIO1 reference for followup
|
|
108
|
+
| | |-- DIO1_pinniped_aligned.fasta # DIO1 aligned
|
|
109
|
+
| | |-- DIO1_pinniped.fasta # unaligned
|
|
110
|
+
| | |-- DIO2_N_fur.fasta # DIO2 reference
|
|
111
|
+
| | |-- DIO2_pinniped_aligned.fasta # DIO2 aligned
|
|
112
|
+
| | |-- DIO2_pinniped.fasta # DIO2 unaligned
|
|
113
|
+
| | |-- DIO3_N_fur.fasta # DIO3 reference
|
|
114
|
+
| | |-- DIO3_pinnipedia.fas # DIO3 ALIGNED
|
|
115
|
+
| | |-- DIO3_pinnipeds.fasta # DIO3 UNALIGNED
|
|
116
|
+
| | |-- HSP70_all_aligned.fasta # HSP70 aligned
|
|
117
|
+
| | |-- HSP70_all.fasta # HSP70 unaligned
|
|
118
|
+
| | |-- HSP70_N_fur.fasta # HSP70 reference
|
|
119
|
+
| | |-- plasminogen_receptor_aligned.fasta # plasminogen receptor aligned
|
|
120
|
+
| | |-- plasminogen_receptor.fasta # plasminogen receptor unaligned (note no ref - not studied)
|
|
121
|
+
| | |-- slc25a43_aligned.fasta # slc25a43 aligned
|
|
122
|
+
| | |-- slc25a43_N_fur.fasta # slc25a43 reference
|
|
123
|
+
| | |-- slc25a43.fasta # unaligned
|
|
124
|
+
|
|
|
125
|
+
|-- failures/
|
|
126
|
+
| |-- debug.py # debug_no_matches
|
|
127
|
+
| |-- failure_mode.py # analyze_failure_modes
|
|
128
|
+
| |-- suggest.py # suggest_degenerate
|
|
129
|
+
|
|
|
130
|
+
|-- perturbation/
|
|
131
|
+
| |-- analysis.py # perturbation_analysis
|
|
132
|
+
| |-- best_mismatch_score.py # best_mismatch_score, find_best_matches
|
|
133
|
+
| |-- mismatch_counter.py # best_match
|
|
134
|
+
| |-- mutate.py # mutate_base and perturb_primer
|
|
135
|
+
| |-- robustness.py # built_robustness_matrix, compute_perturbation_robustness_scores
|
|
136
|
+
|
|
|
137
|
+
|-- pipeline/
|
|
138
|
+
| |-- conc.py # estimate_copies
|
|
139
|
+
| |-- csv2hits.py # csv2hits
|
|
140
|
+
| |-- final_perturb.py # fianl_perturbation
|
|
141
|
+
| |-- final_primers.py # final_primers
|
|
142
|
+
| |-- init_primers.py # init_primers
|
|
143
|
+
| |-- primer2hits.py # primers2hits
|
|
144
|
+
| |-- species_fetch.py # species_fetch
|
|
145
|
+
| |-- stand_curve.py # stand_curve
|
|
146
|
+
| |-- validate.py # final_validate
|
|
147
|
+
|
|
|
148
|
+
|-- primer_hits/
|
|
149
|
+
| |-- crossreactive.py # blast_sequence, biologically_meaningful
|
|
150
|
+
|
|
|
151
|
+
|-- primers/
|
|
152
|
+
| |-- amplicons.py # amplicon_heuristic and amplicon_score
|
|
153
|
+
| |-- analyse_primer_rows.py # analyse_row
|
|
154
|
+
| |-- build_full_lset.py # build_full_lset
|
|
155
|
+
| |-- clash.py # primer_clash, build_clash_map
|
|
156
|
+
| |-- detect_lamp.py # detect_lamp_sets
|
|
157
|
+
| |-- lamp_score.py # primer_basic_score, primer_thermo_score, primer_struct_score
|
|
158
|
+
| | # primer_conservation_score, lamp_score, rtlamp_score
|
|
159
|
+
| |-- mismatch.py # mismatch_cost
|
|
160
|
+
| |-- optimise_primer.py # optimise_primer
|
|
161
|
+
| |-- primer_from_csv.py # load_primers_from_csv
|
|
162
|
+
| |-- scan.py # primer_ok, scan_primers
|
|
163
|
+
| |-- species.py # primer_species_coverage, filter_primers_by_species
|
|
164
|
+
|
|
|
165
|
+
|-- scripts/ # contains the scripts used in the study
|
|
166
|
+
| |-- acc2spp.py # extract_accession, accession_to_gene_id, get_species_from_accession,
|
|
167
|
+
| | # extract_accessions_from_csv, write_species_lookup
|
|
168
|
+
| |-- fasta-stats.py # no commands - just basic code
|
|
169
|
+
| |-- final_dilution-LoD_3.py # rc, build_FIP, build_BIP, load_gene, best_match_mismatches,
|
|
170
|
+
| | # compute_hairpin, compute_homodimer, compute_heterodimer,
|
|
171
|
+
| | # has_3prime_dimer, compute_primer_features,
|
|
172
|
+
| | # fraction_sequestered, fraction_free, binding_efficiency,
|
|
173
|
+
| | # dimer_sink_factor, lamp_tm_score,
|
|
174
|
+
| | # lamp_primer_biophysical_score, rt_lamp_rate, simulate_rt_qlamp
|
|
175
|
+
| | # color_hnb_from_copies, color_pr_from_copies, delta_rgb,
|
|
176
|
+
| | # simulate_quant_curve, fit_standard_curve,
|
|
177
|
+
| | # copies_from_Tt_colour, plot_multi_gene_curve, plot_delta_rgb,
|
|
178
|
+
| | # generate_all_thermo_tables, write_thermo_csv,
|
|
179
|
+
| | # generate_standard_curve_summary, main
|
|
180
|
+
| |-- final-validation.py # load_gene, gc_content, fold_rna, best_match, binding_accessibility
|
|
181
|
+
| | # thermo, analyse_gene, write_gene_tables, write_gc_table,
|
|
182
|
+
| | # write_long_all, main
|
|
183
|
+
| |-- LAMP_Assay.py # load_alignment, clean_alignment, compute_conservation, gc, bad_run,
|
|
184
|
+
| | # mismatch_cost, primers_ok, scan_primers, primer_species_coverage,
|
|
185
|
+
| | # filter_primers_by_species, species_coverage, primers_clash,
|
|
186
|
+
| | # build_clash_map, amplicon_heuristic, detect_lamp_sets, evaluate_primer3,
|
|
187
|
+
| | # vienna_fold_dna, validate_primer_vienna, validate_lamp_set_vienna,
|
|
188
|
+
| | # primer_basic_score, primer_thermo_score, primer_struct_score,
|
|
189
|
+
| | # primer_conservation_score, amplicon_score, lamp_score, rtlamp_score,
|
|
190
|
+
| | # suggest_degenerate, analyze_failure_modes, mutate_base, perturb_primer,
|
|
191
|
+
| | # perturbation_analysis, build_robustness_matrix,
|
|
192
|
+
| | # compute_perturbation_robustness_scores, debug_no_matches, main
|
|
193
|
+
| |-- LAMP-hits.py # blast_sequences, biologically_meaningful
|
|
194
|
+
| |-- pertubation_final.py # best_mismatch_score,
|
|
195
|
+
| |-- primer_optimise.py # load_alignment, clean_alignment, gc, bad_run, rc, mismatch_cost,
|
|
196
|
+
| # primer_species_coverage, thermo_score, primer_ok, optimise_primer,
|
|
197
|
+
| # vienna_fold_dna, vienna_validate_set, mutate_base, perturb_primer,
|
|
198
|
+
| # perturbation_analysis, compute_robustness_score, build_full_lset, main
|
|
199
|
+
|
|
|
200
|
+
|-- simulations/
|
|
201
|
+
| |-- curve_fit.py # fit_standard_curve, copies_from_Tt
|
|
202
|
+
| |-- dye.py # color_pr_from_copies, delta_rgb, parameters: PR_BASELINE
|
|
203
|
+
| |-- model_rtlamp.py # best_match_mismatches, compute_hairpin, compute_homodimer,
|
|
204
|
+
| | # compute_heterodimer, has_3prime_dimer, compute_primer_features,
|
|
205
|
+
| | # fraction_sequestered, fraction_free, binding_efficiency,
|
|
206
|
+
| | # dimer_sink_factor, lamp_tm_score, lamp_primer_biophysical_score,
|
|
207
|
+
| | # rt_lamp_rate, simulate_rt_qlamp
|
|
208
|
+
| |-- sim_curve.py # simulate_quant_curve_pr, parameters: QUANT_CONC
|
|
209
|
+
|
|
|
210
|
+
|-- species/
|
|
211
|
+
| |-- accession.py # extract_accession, extract_accessions_from_csv
|
|
212
|
+
| |-- ncbi_lookup.py # accession_to_gene_id, get_species_from_accession
|
|
213
|
+
| |-- table.py # write_species_lookup
|
|
214
|
+
|
|
|
215
|
+
|-- thermodynamics/
|
|
216
|
+
| |-- fold_rna.py # fold_rna
|
|
217
|
+
| |-- primer_access.py # binding_accessibility
|
|
218
|
+
| |-- primer3_eval.py # evaluate_primer3
|
|
219
|
+
| |-- scoring.py # thermo_score
|
|
220
|
+
| |-- simple_thermo.py # thermo
|
|
221
|
+
| |-- vienna_eval.py # vienna_fold_dna, validate_primer_vienna, validate_lamp_set_vienna
|
|
222
|
+
|
|
|
223
|
+
|-- utils/
|
|
224
|
+
| |-- build_primers.py # build_BIP, build_FIP
|
|
225
|
+
| |-- gc_content.py # gc_content
|
|
226
|
+
| |-- gene_primer.py # load_gene_primer_csv
|
|
227
|
+
| |-- load_seq.py # load_primers_csv, load_fasta
|
|
228
|
+
| |-- seq.py # gc, bad_run, rc
|
|
229
|
+
| |-- valid_csv_write.py # write_outputs
|
|
230
|
+
|
|
|
231
|
+
|-- __init__.py
|
|
232
|
+
|-- LICENSE # open access code - must cite
|
|
233
|
+
|-- README.md
|
|
234
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|