trackplot 0.6.0__tar.gz → 0.6.1__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.
Files changed (64) hide show
  1. {trackplot-0.6.0/trackplot.egg-info → trackplot-0.6.1}/PKG-INFO +1 -1
  2. {trackplot-0.6.0 → trackplot-0.6.1}/pyproject.toml +1 -1
  3. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/Bam.py +2 -4
  4. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/plot/core.py +1 -1
  5. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/plot/render.py +13 -1
  6. {trackplot-0.6.0 → trackplot-0.6.1/trackplot.egg-info}/PKG-INFO +1 -1
  7. {trackplot-0.6.0 → trackplot-0.6.1}/LICENSE +0 -0
  8. {trackplot-0.6.0 → trackplot-0.6.1}/README.md +0 -0
  9. {trackplot-0.6.0 → trackplot-0.6.1}/setup.cfg +0 -0
  10. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/__init__.py +0 -0
  11. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/anno/AxLabel.py +0 -0
  12. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/anno/__init__.py +0 -0
  13. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/anno/theme.py +0 -0
  14. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/base/CoordinateMap.py +0 -0
  15. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/base/GenomicLoci.py +0 -0
  16. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/base/Junction.py +0 -0
  17. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/base/Protein.py +0 -0
  18. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/base/ReadDepth.py +0 -0
  19. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/base/Readder.py +0 -0
  20. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/base/Stroke.py +0 -0
  21. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/base/Transcript.py +0 -0
  22. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/base/__init__.py +0 -0
  23. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/base/pyUniprot.py +0 -0
  24. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/cli.py +0 -0
  25. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/conf/DomainSetting.py +0 -0
  26. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/conf/__init__.py +0 -0
  27. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/conf/config.py +0 -0
  28. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/conf/drawing.py +0 -0
  29. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/conf/ui.py +0 -0
  30. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/ATAC.py +0 -0
  31. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/Annotation.py +0 -0
  32. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/BedGraph.py +0 -0
  33. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/Bigwig.py +0 -0
  34. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/Depth.py +0 -0
  35. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/Fasta.py +0 -0
  36. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/File.py +0 -0
  37. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/HiCMatrixTrack.py +0 -0
  38. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/Junction.py +0 -0
  39. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/Motif.py +0 -0
  40. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/ReadSegments.py +0 -0
  41. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/file/__init__.py +0 -0
  42. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/plot/__init__.py +0 -0
  43. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/plot/coord.py +0 -0
  44. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/plot/info.py +0 -0
  45. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/plot/limits.py +0 -0
  46. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/plot/utils.py +0 -0
  47. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/plot_func.py +0 -0
  48. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot/server.py +0 -0
  49. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot.egg-info/SOURCES.txt +0 -0
  50. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot.egg-info/dependency_links.txt +0 -0
  51. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot.egg-info/requires.txt +0 -0
  52. {trackplot-0.6.0 → trackplot-0.6.1}/trackplot.egg-info/top_level.txt +0 -0
  53. {trackplot-0.6.0 → trackplot-0.6.1}/ui/assets/Home-B1EPE6Lq.js +0 -0
  54. {trackplot-0.6.0 → trackplot-0.6.1}/ui/assets/Home-DuHqFHEh.css +0 -0
  55. {trackplot-0.6.0 → trackplot-0.6.1}/ui/assets/Plot-CkylK0fA.css +0 -0
  56. {trackplot-0.6.0 → trackplot-0.6.1}/ui/assets/Plot-jZAsK7Tq.js +0 -0
  57. {trackplot-0.6.0 → trackplot-0.6.1}/ui/assets/_plugin-vue_export-helper-DLf8tVwz.css +0 -0
  58. {trackplot-0.6.0 → trackplot-0.6.1}/ui/assets/_plugin-vue_export-helper-IgiCOkTJ.js +0 -0
  59. {trackplot-0.6.0 → trackplot-0.6.1}/ui/assets/css-BDwM7dEv.css +0 -0
  60. {trackplot-0.6.0 → trackplot-0.6.1}/ui/assets/css-CKLNJEB6.js +0 -0
  61. {trackplot-0.6.0 → trackplot-0.6.1}/ui/assets/index-De-rfTdP.js +0 -0
  62. {trackplot-0.6.0 → trackplot-0.6.1}/ui/assets/index-Dlq_kUQH.css +0 -0
  63. {trackplot-0.6.0 → trackplot-0.6.1}/ui/index.html +0 -0
  64. {trackplot-0.6.0 → trackplot-0.6.1}/ui/vite.svg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trackplot
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: The trackplot is a tool for visualizing various next-generation sequencing (NGS) data, including DNA-seq, RNA-seq, single-cell RNA-seq and full-length sequencing datasets. https://sashimi.readthedocs.io/
5
5
  Author-email: ygidtu <ygidtu@gmail.com>
6
6
  License-Expression: BSD-3-Clause
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "trackplot"
3
- version = "0.6.0"
3
+ version = "0.6.1"
4
4
  description = "The trackplot is a tool for visualizing various next-generation sequencing (NGS) data, including DNA-seq, RNA-seq, single-cell RNA-seq and full-length sequencing datasets. https://sashimi.readthedocs.io/"
5
5
  authors = [
6
6
  { name = "ygidtu", email = "ygidtu@gmail.com" }
@@ -366,11 +366,9 @@ class Bam(SingleCell):
366
366
 
367
367
  if kept:
368
368
  if k.strand == "+":
369
- spanned_junctions_plus[k] = 1 + spanned_junctions_plus.get(k, v)
369
+ spanned_junctions_plus[k] = v
370
370
  elif k.strand == "-":
371
- spanned_junctions_minus[k] = -1 + spanned_junctions_minus.get(
372
- k, v
373
- )
371
+ spanned_junctions_minus[k] = v
374
372
 
375
373
  except IOError as err:
376
374
  logger.error("There is no .bam file at {0}".format(self.path))
@@ -880,7 +880,7 @@ class Plot(object):
880
880
  graph_coords=self.graph_coords,
881
881
  **kwargs,
882
882
  )
883
- logger.info(f"{_max} {_min}")
883
+
884
884
  if obj.label in same_y_by_groups:
885
885
  key = same_y_by_groups[obj.label]
886
886
  max_used_y_dict[key] = max(_max, max_used_y_dict.get(key, 0))
@@ -500,7 +500,6 @@ def plot_density(
500
500
  fill_step=fill_step,
501
501
  show_mean_jxn_number=show_mean_jxn_number,
502
502
  )
503
- logger.info(f"precomputed y limits: {max_used_y_val} {min_used_y_val}")
504
503
 
505
504
  # Draw fill
506
505
  x, y1, y2 = [], [], []
@@ -531,6 +530,8 @@ def plot_density(
531
530
  min_junction_count = min(jxns.values()) if jxns else 0
532
531
  junction_count_gap = max_junction_count - min_junction_count
533
532
 
533
+ text_objs = []
534
+
534
535
  for jxn_idx, jxn in enumerate(jxns_sorted_list):
535
536
  leftss, rightss = jxn.start, jxn.end
536
537
  if (
@@ -619,6 +620,17 @@ def plot_density(
619
620
  backgroundcolor="w",
620
621
  )
621
622
  t.set_bbox(dict(alpha=0))
623
+ text_objs.append(t)
624
+
625
+ if show_junction_number and len(text_objs) > 1:
626
+ adjust_text(
627
+ text_objs,
628
+ ax=ax,
629
+ force_text=(0.5, 0.5),
630
+ expand=(1.2, 1.2),
631
+ arrowprops=None,
632
+ lim=100,
633
+ )
622
634
 
623
635
  if obj and obj.title:
624
636
  ax.text(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trackplot
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: The trackplot is a tool for visualizing various next-generation sequencing (NGS) data, including DNA-seq, RNA-seq, single-cell RNA-seq and full-length sequencing datasets. https://sashimi.readthedocs.io/
5
5
  Author-email: ygidtu <ygidtu@gmail.com>
6
6
  License-Expression: BSD-3-Clause
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes