Skip to content

Commit

Permalink
removve duplicate exons in plot_primer_locs()
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaynagi committed Oct 11, 2024
1 parent 02d7e62 commit e07ca24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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 e07ca24

Please sign in to comment.