Skip to content

Commit 4effad1

Browse files
authored
Merge pull request #152 from lldelisle/updated_doc
updated readme with last parameters and changed file location
2 parents b2e5cab + 37fe0c0 commit 4effad1

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,8 @@ global_max_row | | | | | false | | | | | |
469469
gene_rows | | | | | not set | | | | | |
470470
arrow_interval | | | | | 2 | | | | | |
471471
arrowhead_included | | | | | false | | | | | |
472+
color_utr | | | | | grey | | | | | |
473+
height_utr | | | | | 1 | | | | | |
472474
show_data_range | | | | | | true | true | true | true | true |
473475
show_labels | | | | | | true | | | | |
474476
use_summit | | | | | | true | | | | |

all_default_properties.txt renamed to docs/content/all_default_properties.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ global_max_row | | | | | false | | | | | |
2323
gene_rows | | | | | not set | | | | | |
2424
arrow_interval | | | | | 2 | | | | | |
2525
arrowhead_included | | | | | false | | | | | |
26+
color_utr | | | | | grey | | | | | |
27+
height_utr | | | | | 1 | | | | | |
2628
show_data_range | | | | | | true | true | true | true | true |
2729
show_labels | | | | | | true | | | | |
2830
use_summit | | | | | | true | | | | |
File renamed without changes.

pygenometracks/getAllDefaultsAndPossible.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
"""
22
This python script will generate two files:
3-
- all_default_properties.txt
3+
- docs/content/all_default_properties.txt
44
This file is a markdown table with all the defaults values for each parameter
55
for each track class. This table can be copy pasted in the README.md
6-
- all_possible_properties.txt
6+
- docs/content/all_possible_properties.txt
77
This file is a markdown list with possible values.
88
This can also be copy pasted in the README.md
99
"""
1010
from pygenometracks.tracksClass import PlotTracks, XAxisTrack
1111
import numpy as np
12+
import os.path
1213

1314
not_used_string = ''
1415
not_set_string = 'not set'
@@ -98,10 +99,12 @@ def main():
9899

99100
mat[i + 2, j] = default
100101
# The matrix is written in a file to be able to use it in the README.md
101-
np.savetxt("all_default_properties.txt", mat, fmt='%s', delimiter=" | ")
102+
np.savetxt(os.path.join("docs", "content", "all_default_properties.txt"),
103+
mat, fmt='%s', delimiter=" | ")
102104

103105
# For the possible:
104-
with open("all_possible_properties.txt", 'w') as fo:
106+
with open(os.path.join("docs", "content", "all_possible_properties.txt"),
107+
'w') as fo:
105108
for p, possible_dic in all_possible_parameters.items():
106109
possible_values = {}
107110
for track_type, pv in possible_dic.items():

0 commit comments

Comments
 (0)