Skip to content

Commit

Permalink
Remove some commented out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfenne committed Jan 15, 2025
1 parent 712af77 commit b9c96f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 37 deletions.
2 changes: 2 additions & 0 deletions prymer/primer3/primer3_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ class PrimerAndAmpliconParameters:
primer_max_3p_homodimer_tm: Optional[float] = None
primer_max_hairpin_tm: Optional[float] = None



def __post_init__(self) -> None:
if self.primer_max_dinuc_bases % 2 == 1:
raise ValueError("Primer Max Dinuc Bases must be an even number of bases")
Expand Down
37 changes: 0 additions & 37 deletions prymer/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,43 +84,6 @@ def __post_init__(self) -> None:
salt_corrections_method=self.salt_corrections_method,
)

# @staticmethod
# def from_primer_params(p: PrimerAndAmpliconParameters) -> "Thermo":
# return Thermo(
# mv_conc_mm=p.,
# dv_conc_mm=p.,
# dntp_conc_mm=p.,
# dna_conc_nm=p.,
# dmso_conc_pct=p.,
# dmso_correction_factor=p.,
# formamide_conc_mol=p.,
# annealing_temp_c=p.,
# temp_c=p.,
# max_nn_length=p.,
# max_loop=p.,
# tm_method=p.,
# salt_corrections_method=p.,
# )
#
# @staticmethod
# def from_probe_params(p: ProbeParameters) -> "Thermo":
# return Thermo(
# mv_conc_mm=p.,
# dv_conc_mm=p.,
# dntp_conc_mm=p.,
# dna_conc_nm=p.,
# dmso_conc_pct=p.,
# dmso_correction_factor=p.,
# formamide_conc_mol=p.,
# annealing_temp_c=p.,
# temp_c=p.,
# max_nn_length=p.,
# max_loop=p.,
# tm_method=p.,
# salt_corrections_method=p.,
# )


def tm(self, bases: str) -> float:
"""
Calculates the melting temperature of a sequence of bases. The calculation used differs
Expand Down

0 comments on commit b9c96f1

Please sign in to comment.