Skip to content

Commit

Permalink
Merge pull request #60 from sanjaynagi/fix-probe-targeting-11-10-24
Browse files Browse the repository at this point in the history
fix probe targeting
  • Loading branch information
sanjaynagi authored Oct 11, 2024
2 parents 19f4c6c + e07ca24 commit afc6033
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
11 changes: 4 additions & 7 deletions AnoPrimer/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,11 @@ def prepare_gDNA_sequence(
}

if "probe" in assay_type:
seq_parameters["SEQUENCE_INTERNAL_EXCLUDED_REGION"] = [
[1, target_loc_primer3[0] - probe_exclude_region_size],
[
target_loc_primer3[0] + probe_exclude_region_size,
len(target_sequence)
- (target_loc_primer3[0] + probe_exclude_region_size),
],
seq_parameters["SEQUENCE_INTERNAL_OVERLAP_JUNCTION_LIST"] = [
target_loc_primer3[0]
]
seq_parameters["PRIMER_MIN_3_PRIME_OVERLAP_OF_JUNCTION"] = 3
seq_parameters["PRIMER_MIN_5_PRIME_OVERLAP_OF_JUNCTION"] = 3

return seq_parameters

Expand Down
3 changes: 3 additions & 0 deletions AnoPrimer/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ def plot_primer_locs(
print("No exons in close proximity for loc plot")
return

# remove duplicate exons from different transcripts
locgff = locgff.drop_duplicates("Name")

# Set up the plot
fig, ax = plt.subplots(1, 1, figsize=[16, 4])
self._configure_plot_axes(ax, min_, max_, start, end)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "AnoPrimer"
version = "2.0.4"
version = "2.0.5"
description = "A package to design primers in Anopheles gambiae whilst considering genetic variation with malariagen_data"
readme = "README.md"
documentation = "https://sanjaynagi.github.io/anoprimer/latest/"
Expand Down
3 changes: 1 addition & 2 deletions tests/run_ci_notebooks.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

papermill notebooks/AnoPrimer-long.ipynb tests/probe_run.ipynb -k AnoPrimer -f tests/probe_Params.json &&
papermill notebooks/AnoPrimer-long.ipynb tests/qPCR_run.ipynb -k AnoPrimer -f tests/cDNA_Params.json &&
papermill notebooks/AnoPrimer-long.ipynb tests/qPCR2_run.ipynb -k AnoPrimer -f tests/cDNA_Params_2.json &&
papermill notebooks/AnoPrimer-long.ipynb tests/gDNA_run.ipynb -k AnoPrimer -f tests/gDNA_probe_Params.json &&
papermill notebooks/AnoPrimer-long.ipynb tests/probe_run.ipynb -k AnoPrimer -f tests/probe_Params.json &&
papermill notebooks/AnoPrimer-long.ipynb tests/qPCR_run.ipynb -k AnoPrimer -f tests/cDNA_Params_fun.json &&
papermill notebooks/AnoPrimer-long.ipynb tests/qPCR2_run.ipynb -k AnoPrimer -f tests/cDNA_Params_2_fun.json &&
papermill notebooks/AnoPrimer-long.ipynb tests/gDNA_run.ipynb -k AnoPrimer -f tests/gDNA_probe_Params_fun.json &&
Expand Down

0 comments on commit afc6033

Please sign in to comment.