Skip to content

Commit 29a3106

Browse files
committed
Updated docs.
1 parent 1ea6c79 commit 29a3106

File tree

12 files changed

+54
-42
lines changed

12 files changed

+54
-42
lines changed

docs/docs/API.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ permalink: /api
77
---
88

99
# API Reference
10+
---

docs/docs/Install.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ nav_order: 2
66
---
77

88
# Installation
9+
---
910

1011
### From PyPI
1112

docs/docs/api/gw-init.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ parent: API Reference
66
nav_order: 1
77
---
88

9-
## Gw Class
9+
# Gw class
10+
---
1011

1112
`Gw(reference, **kwargs)`
1213

docs/docs/api/gw-interactive.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ nav_order: 7
99

1010
# Interactive Controls
1111
{: .no_toc .text-delta }
12+
---
1213

1314
## Table of contents
1415
{: .no_toc .text-delta }
@@ -18,7 +19,7 @@ nav_order: 7
1819

1920
---
2021

21-
### apply_command
22+
## apply_command
2223
`apply_command(command)`
2324

2425
Apply a GW command string.
@@ -28,7 +29,7 @@ Apply a GW command string.
2829

2930
---
3031

31-
### key_press
32+
## key_press
3233
`key_press(key, scancode, action, mods)`
3334

3435
Process a key press event.
@@ -41,7 +42,7 @@ Process a key press event.
4142

4243
---
4344

44-
### mouse_event
45+
## mouse_event
4546
`mouse_event(x_pos, y_pos, button, action)`
4647

4748
Process a mouse event.

docs/docs/api/gw-loading-data.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ parent: API Reference
55
nav_order: 2
66
---
77

8-
## Loading Data
8+
# Loading Data
99
{: .no_toc .text-delta }
10+
---
1011

1112
## Table of contents
1213
{: .no_toc .text-delta }
@@ -16,7 +17,7 @@ nav_order: 2
1617

1718
---
1819

19-
### add_bam
20+
## add_bam
2021
`add_bam(path)`
2122

2223
Add a BAM file to the visualisation.
@@ -33,7 +34,7 @@ gw.add_bam("sample.bam")
3334
```
3435
---
3536

36-
### remove_bam
37+
## remove_bam
3738
`remove_bam(index)`
3839

3940
Remove a BAM file from the visualisation.
@@ -46,7 +47,7 @@ Remove a BAM file from the visualisation.
4647

4748
---
4849

49-
### add_track
50+
## add_track
5051
`add_track(path, vcf_as_track=True, bed_as_track=True)`
5152

5253

@@ -70,7 +71,7 @@ gw.add_track("features.bed")
7071
```
7172
---
7273

73-
### remove_track
74+
## remove_track
7475
`remove_track(index)`
7576

7677
Remove a data track from the visualisation.

docs/docs/api/gw-managing-regions.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ parent: API Reference
55
nav_order: 3
66
---
77

8-
## Managing Regions
8+
# Managing Regions
99
{: .no_toc .text-delta }
10+
---
1011

1112
## Table of contents
1213
{: .no_toc .text-delta }
@@ -16,7 +17,7 @@ nav_order: 3
1617

1718
---
1819

19-
### add_region
20+
## add_region
2021
`add_region(chrom, start, end, marker_start=-1, marker_end=-1)`
2122

2223
Add a genomic region for visualisation. Setting the markers will result in a small triangle being drawn at
@@ -40,7 +41,7 @@ gw.add_region("chr1", 1000000, 1100000, 1050000, 1060000)
4041

4142
---
4243

43-
### remove_region
44+
## remove_region
4445
`remove_region(index)`
4546

4647
Remove a genomic region from the visualisation.
@@ -53,7 +54,7 @@ Remove a genomic region from the visualisation.
5354

5455
---
5556

56-
### view_region
57+
## view_region
5758
`view_region(chrom, start, end)`
5859

5960
Clear existing regions and view a specific genomic region.
@@ -74,7 +75,7 @@ gw.view_region("chr1", 1000000, 1100000)
7475

7576
---
7677

77-
### set_active_region_index
78+
## set_active_region_index
7879
`set_active_region_index(index)`
7980

8081
Set the currently active region for dynamic visualisation.
@@ -87,21 +88,21 @@ Set the currently active region for dynamic visualisation.
8788

8889
---
8990

90-
### clear
91+
## clear
9192
`clear()`
9293

9394
Remove all data.
9495

9596
---
9697

97-
### clear_regions
98+
## clear_regions
9899
`clear_regions()`
99100

100101
Remove all defined genomic regions.
101102

102103
---
103104

104-
### clear_alignments
105+
## clear_alignments
105106
`clear_alignments()`
106107

107108
Remove all loaded alignment data.

docs/docs/api/gw-palette.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ parent: API Reference
55
nav_order: 8
66
---
77

8-
98
# GwPalette Class
109
{: .no_toc .text-delta }
10+
---
1111

1212
## Table of contents
1313
{: .no_toc .text-delta }

docs/docs/api/gw-saving-images.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ parent: API Reference
55
nav_order: 5
66
---
77

8-
## Saving images
8+
# Saving images
99
{: .no_toc .text-delta }
10+
---
1011

1112
## Table of contents
1213
{: .no_toc .text-delta }
@@ -16,7 +17,7 @@ nav_order: 5
1617

1718
---
1819

19-
### save_png
20+
## save_png
2021
`save_png(path)`
2122

2223
Save the current raster image to a PNG file.
@@ -34,7 +35,7 @@ gw.save_png("visualisation.png")
3435

3536
---
3637

37-
### save_pdf
38+
## save_pdf
3839
`save_pdf(path)`
3940

4041
Save the plot to a PDF file.
@@ -52,7 +53,7 @@ gw.save_pdf("visualization.pdf")
5253

5354
---
5455

55-
### save_svg
56+
## save_svg
5657
`save_svg(path)`
5758

5859
Save the plot to a SVG file.
@@ -70,7 +71,7 @@ gw.save_svg("visualization.svg")
7071

7172
---
7273

73-
### encode_as_png
74+
## encode_as_png
7475
`encode_as_png(compression_level=6)`
7576

7677
Encode the current canvas as PNG and return the binary data.
@@ -81,7 +82,7 @@ Encode the current canvas as PNG and return the binary data.
8182
**Returns:**
8283
- `bytes`: PNG encoded image data
8384

84-
### encode_as_jpeg
85+
## encode_as_jpeg
8586
`encode_as_jpeg(quality=80)`
8687

8788
Encode the current canvas as JPEG and return the binary data.
@@ -94,7 +95,7 @@ Encode the current canvas as JPEG and return the binary data.
9495

9596
---
9697

97-
### array
98+
## array
9899
`array()`
99100

100101
Convert the raster image to a numpy array.

docs/docs/api/gw-settings.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ parent: API Reference
55
nav_order: 6
66
---
77

8-
### Display Settings
8+
# Display Settings
99
{: .no_toc .text-delta }
10+
---
1011

1112
## Table of contents
1213
{: .no_toc .text-delta }
@@ -29,7 +30,7 @@ Set the canvas width and recreate the raster surface.
2930

3031
---
3132

32-
### set_canvas_height
33+
# set_canvas_height
3334
`set_canvas_height(height)`
3435

3536
Set the canvas height and recreate the raster surface.
@@ -42,7 +43,7 @@ Set the canvas height and recreate the raster surface.
4243

4344
---
4445

45-
### set_canvas_size
46+
# set_canvas_size
4647
`set_canvas_size(width, height)`
4748

4849
Set both canvas width and height and recreate the raster surface.
@@ -56,7 +57,7 @@ Set both canvas width and height and recreate the raster surface.
5657

5758
---
5859

59-
### set_theme
60+
# set_theme
6061
`set_theme(theme_name)`
6162

6263
Set a predefined visualisation theme.
@@ -75,7 +76,7 @@ gw.set_theme("dark")
7576

7677
---
7778

78-
### set_paint_ARBG
79+
# set_paint_ARBG
7980
`set_paint_ARBG(paint_enum, a, r, g, b)`
8081

8182
Set the ARGB color for a specific paint type.
@@ -95,7 +96,7 @@ gw.set_paint_ARBG(GwPalette.NORMAL_READ, 255, 0, 0, 128)
9596

9697
---
9798

98-
### apply_theme
99+
# apply_theme
99100
`apply_theme(theme_dict)`
100101

101102
Apply a custom theme using a dictionary of paint types and colors.
@@ -118,7 +119,7 @@ gw.apply_theme(custom_theme)
118119

119120
---
120121

121-
### load_theme_from_json
122+
# load_theme_from_json
122123
`load_theme_from_json(filepath)`
123124

124125
Load and apply a theme from a JSON file.
@@ -136,7 +137,7 @@ gw.load_theme_from_json("custom_theme.json")
136137

137138
---
138139

139-
### save_theme_to_json
140+
# save_theme_to_json
140141
`save_theme_to_json(filepath)`
141142

142143
Save the current theme settings to a JSON file.
@@ -155,7 +156,7 @@ gw.save_theme_to_json("my_theme.json")
155156

156157
---
157158

158-
### set_font_size
159+
# set_font_size
159160
`set_font_size(size)`
160161

161162
Set the font size.

docs/docs/api/gw-visual.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ parent: API Reference
55
nav_order: 4
66
---
77

8-
## Visualisation
8+
# Visualisation
99
{: .no_toc .text-delta }
10+
---
1011

1112
## Table of contents
1213
{: .no_toc .text-delta }
@@ -16,7 +17,7 @@ nav_order: 4
1617

1718
---
1819

19-
### draw
20+
## draw
2021
`draw()`
2122

2223
Draw the visualisation to the raster surface. Suitable for non-interactive visualisations.
@@ -26,7 +27,7 @@ Draw the visualisation to the raster surface. Suitable for non-interactive visua
2627

2728
---
2829

29-
### draw_interactive
30+
## draw_interactive
3031
`draw_interactive(clear_buffer=False)`
3132

3233
Draw the visualisation to the raster surface. Caches state for using with interactive functions.
@@ -39,7 +40,7 @@ Draw the visualisation to the raster surface. Caches state for using with intera
3940

4041
---
4142

42-
### draw_image
43+
## draw_image
4344
`draw_image()`
4445

4546
Draw the visualisation and return it as a PIL Image.

0 commit comments

Comments
 (0)