primerJinn 1.0.2__tar.gz → 1.0.4.dev0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: primerJinn
3
- Version: 1.0.2
3
+ Version: 1.0.4.dev0
4
4
  Summary: In silico PCR tool
5
5
  Home-page: https://github.com/SemiQuant/primerJinn
6
6
  Author: Jason D Limberis
@@ -11,6 +11,15 @@ Classifier: Programming Language :: Python :: 3
11
11
  Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
+ Requires-Dist: scipy
15
+ Requires-Dist: pandas
16
+ Requires-Dist: biopython
17
+ Requires-Dist: numpy
18
+ Requires-Dist: primer3-py
19
+ Requires-Dist: networkx
20
+ Requires-Dist: scikit-learn
21
+ Requires-Dist: requests
22
+ Requires-Dist: openpyxl
14
23
 
15
24
  <div>
16
25
  <img src="https://user-images.githubusercontent.com/8179171/236663567-94d1f5dc-2ac6-49de-9fc1-a99c7a13945d.png" width="20%" height="20%">
@@ -38,6 +47,7 @@ The scripts takes several arguments:
38
47
  | **primer design** | N | ill_adapt | Add Illumina partial adapters | FALSE |
39
48
  | **primer design** | N | clamp | Require GC clamp | 0 |
40
49
  | **primer design** | N | poly | Maximum allowable length of a mononucleotide repeat (poly-X) in the primer sequence | 3 |
50
+ | **primer design** | N | no_self_background | If specified, primers are NOT checked for mispriming against the input genome as for large genomes this is very slow | False |
41
51
  | **in silico PCR** | N | product_size_max | Maximum length of PCR products in nucleotides. | 2000 |
42
52
  | **in silico PCR** | N | req_five | Require the 5' end of the primer to bind? | TRUE |
43
53
 
@@ -24,6 +24,7 @@ The scripts takes several arguments:
24
24
  | **primer design** | N | ill_adapt | Add Illumina partial adapters | FALSE |
25
25
  | **primer design** | N | clamp | Require GC clamp | 0 |
26
26
  | **primer design** | N | poly | Maximum allowable length of a mononucleotide repeat (poly-X) in the primer sequence | 3 |
27
+ | **primer design** | N | no_self_background | If specified, primers are NOT checked for mispriming against the input genome as for large genomes this is very slow | False |
27
28
  | **in silico PCR** | N | product_size_max | Maximum length of PCR products in nucleotides. | 2000 |
28
29
  | **in silico PCR** | N | req_five | Require the 5' end of the primer to bind? | TRUE |
29
30
 
@@ -56,7 +56,7 @@ def calc_tm(seq, seq2='', Q5=args.Q5):
56
56
  if Q5:
57
57
  # tm = MeltingTemp.Tm_NN(seq, c_seq = seq2, nn_table=MeltingTemp.DNA_NN4, dnac1=2500, dnac2=2500, Na=40, K=0, Tris=0, Mg=0.4, dNTPs=0, saltcorr=5.0)
58
58
  # tm = q5_melting_temp(str(seq), str(seq2), salt_conc/1000)
59
- if seq2 != '':
59
+ if seq2 == '':
60
60
  tm = primer3.bindings.calcTm(seq, dv_conc=2, mv_conc=70, dna_conc=3300)
61
61
  else:
62
62
  primer3.calcHeterodimer(seq, seq2, temp_c=100, dv_conc = 2, mv_conc = 70, dna_conc = 3300)
@@ -32,6 +32,7 @@ parser.add_argument('--product_size_max', type=int, help='The desired max size f
32
32
  parser.add_argument('--ret', type=int, help='The maximum number of primer pairs to return.', default=100)
33
33
  parser.add_argument('--Q5', action='store_true', help='Whether to use Q5 approximation settings for Tm calculations.', default=True)
34
34
  parser.add_argument('--background', type=str, help='The path to the mispriming library FASTA file.', default='')
35
+ parser.add_argument('--no_self_background', action='store_true', help='If specified, primers are NOT checked for mispriming against the input genome as for large genomes this is very slow', default=False)
35
36
  parser.add_argument('--output', type=str, help='Output name.', default='MultiPlexPrimerSet')
36
37
  parser.add_argument('--eval', type=int, help='The maximum number of primer sets to evaluate.', default=10000)
37
38
  parser.add_argument('--wiggle', type=int, help='Half the region around the optimal Tm', default=3)
@@ -88,25 +89,25 @@ def design_primers(input_file, region_start, region_end, target_tm=args.target_t
88
89
  with open(background, 'w') as file:
89
90
  file.writelines(new_lines)
90
91
 
91
- if region_start - 10000 > 0:
92
- target_seq = input_file.seq[region_start-10000:region_end+10000]
93
- seq_target = (10000-1, region_end-region_start)
94
- add_to = 10000
95
- with open(background, "a") as fasta_file:
96
- fasta_file.write(">appended_sequence\n")
97
- fasta_file.write(str(input_file.seq[0:region_start-10000]) + "\n")
98
- fasta_file.write(">appended_sequence2\n")
99
- fasta_file.write(str(input_file.seq[region_end+10000:]))
100
- else:
101
- target_seq = input_file.seq[0:region_end+10000]
102
- seq_target = (region_start-1, region_end-region_start)
103
- add_to = 0
104
- with open(background, "a") as fasta_file:
105
- fasta_file.write(">appended_sequence\n")
106
- fasta_file.write(str(input_file.seq[region_end+10000:]) + "\n")
107
- fasta_file.write(">appended_sequence2\n")
108
- fasta_file.write("gagagagaga")
109
-
92
+ if not no_self_background:
93
+ if region_start - 10000 > 0:
94
+ target_seq = input_file.seq[region_start-10000:region_end+10000]
95
+ seq_target = (10000-1, region_end-region_start)
96
+ add_to = 10000
97
+ with open(background, "a") as fasta_file:
98
+ fasta_file.write(">appended_sequence\n")
99
+ fasta_file.write(str(input_file.seq[0:region_start-10000]) + "\n")
100
+ fasta_file.write(">appended_sequence2\n")
101
+ fasta_file.write(str(input_file.seq[region_end+10000:]))
102
+ else:
103
+ target_seq = input_file.seq[0:region_end+10000]
104
+ seq_target = (region_start-1, region_end-region_start)
105
+ add_to = 0
106
+ with open(background, "a") as fasta_file:
107
+ fasta_file.write(">appended_sequence\n")
108
+ fasta_file.write(str(input_file.seq[region_end+10000:]) + "\n")
109
+ fasta_file.write(">appended_sequence2\n")
110
+ fasta_file.write("gagagagaga")
110
111
 
111
112
  # target_seq = input_file.seq
112
113
  # seq_target = (region_start-1, region_end-region_start+2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: primerJinn
3
- Version: 1.0.2
3
+ Version: 1.0.4.dev0
4
4
  Summary: In silico PCR tool
5
5
  Home-page: https://github.com/SemiQuant/primerJinn
6
6
  Author: Jason D Limberis
@@ -11,6 +11,15 @@ Classifier: Programming Language :: Python :: 3
11
11
  Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
+ Requires-Dist: scipy
15
+ Requires-Dist: pandas
16
+ Requires-Dist: biopython
17
+ Requires-Dist: numpy
18
+ Requires-Dist: primer3-py
19
+ Requires-Dist: networkx
20
+ Requires-Dist: scikit-learn
21
+ Requires-Dist: requests
22
+ Requires-Dist: openpyxl
14
23
 
15
24
  <div>
16
25
  <img src="https://user-images.githubusercontent.com/8179171/236663567-94d1f5dc-2ac6-49de-9fc1-a99c7a13945d.png" width="20%" height="20%">
@@ -38,6 +47,7 @@ The scripts takes several arguments:
38
47
  | **primer design** | N | ill_adapt | Add Illumina partial adapters | FALSE |
39
48
  | **primer design** | N | clamp | Require GC clamp | 0 |
40
49
  | **primer design** | N | poly | Maximum allowable length of a mononucleotide repeat (poly-X) in the primer sequence | 3 |
50
+ | **primer design** | N | no_self_background | If specified, primers are NOT checked for mispriming against the input genome as for large genomes this is very slow | False |
41
51
  | **in silico PCR** | N | product_size_max | Maximum length of PCR products in nucleotides. | 2000 |
42
52
  | **in silico PCR** | N | req_five | Require the 5' end of the primer to bind? | TRUE |
43
53
 
@@ -36,7 +36,7 @@ class CustomInstallCommand(install):
36
36
 
37
37
  setup(
38
38
  name='primerJinn',
39
- version='1.0.2',
39
+ version='1.0.4dev',
40
40
  url='https://github.com/SemiQuant/primerJinn',
41
41
  install_requires=dependencies,
42
42
  description='In silico PCR tool',
File without changes