yashm commited on
Commit
5953360
·
verified ·
1 Parent(s): 4033b2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -109,7 +109,21 @@ if uploaded_file is not None:
109
  'PCR Product Size (bp)': primers.get(f'PRIMER_PAIR_{i}_PRODUCT_SIZE', 'N/A')
110
  }
111
  if primer_info['Left Sequence'] != 'N/A' and primer_info['Right Sequence'] != 'N/A':
 
112
  primer_data.append(primer_info)
 
 
 
 
 
 
 
 
 
 
 
 
 
113
 
114
  if primer_data:
115
  primer_df = pd.DataFrame(primer_data)
@@ -129,4 +143,4 @@ if uploaded_file is not None:
129
  feature_length = len(feature_sequence) # Obtain the length of the selected feature
130
  plot_pcr_product_with_df(feature_sequence, primer_df, feature_length)
131
  else:
132
- st.error('No primers were found. Please adjust your parameters and try again.')
 
109
  'PCR Product Size (bp)': primers.get(f'PRIMER_PAIR_{i}_PRODUCT_SIZE', 'N/A')
110
  }
111
  if primer_info['Left Sequence'] != 'N/A' and primer_info['Right Sequence'] != 'N/A':
112
+ primer_info['Primer'] = f"Left {i+1}"
113
  primer_data.append(primer_info)
114
+ primer_info = {
115
+ 'Primer Pair': i + 1,
116
+ 'Left Sequence': primers.get(f'PRIMER_LEFT_{i}_SEQUENCE', 'N/A'),
117
+ 'Right Sequence': primers.get(f'PRIMER_RIGHT_{i}_SEQUENCE', 'N/A'),
118
+ 'Left TM (°C)': primers.get(f'PRIMER_LEFT_{i}_TM', 'N/A'),
119
+ 'Right TM (°C)': primers.get(f'PRIMER_RIGHT_{i}_TM', 'N/A'),
120
+ 'Left Length': primers.get(f'PRIMER_LEFT_{i}_SIZE', 'N/A'),
121
+ 'Right Length': primers.get(f'PRIMER_RIGHT_{i}_SIZE', 'N/A'),
122
+ 'PCR Product Size (bp)': primers.get(f'PRIMER_PAIR_{i}_PRODUCT_SIZE', 'N/A')
123
+ }
124
+ if primer_info['Left Sequence'] != 'N/A' and primer_info['Right Sequence'] != 'N/A':
125
+ primer_info['Primer'] = f"Right {i+1}"
126
+ primer_data.append(primer_info)
127
 
128
  if primer_data:
129
  primer_df = pd.DataFrame(primer_data)
 
143
  feature_length = len(feature_sequence) # Obtain the length of the selected feature
144
  plot_pcr_product_with_df(feature_sequence, primer_df, feature_length)
145
  else:
146
+ st.error('No primers were found. Please adjust your parameters and try again.')