Skip to content

Commit 826b458

Browse files
authored
Merge pull request #159 from lldelisle/moreAutomatisationInREADME
bash script to update the README
2 parents d25d321 + a67407f commit 826b458

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ Here is a table to summarize which are the parameters that can be use for each o
444444
Empty means this parameter is not used.
445445
not set means that by default the parameter is commented.
446446

447+
<!--- Start of default table -->
447448
parameter | x-axis | epilogos | links | domains | bed | narrow_peak | bigwig | bedgraph | bedgraph_matrix | hlines | hic_matrix
448449
-- | - | - | - | - | - | - | - | - | - | - | -
449450
where | bottom | | | | | | | | | |
@@ -490,12 +491,12 @@ show_masked_bins | | | | | | | | | | | false
490491
scale_factor | | | | | | | | | | | 1
491492
transform | | | | | | | | | | | no
492493
colormap | | | | | | | | | | | RdYlBu_r
493-
494+
<!--- End of default table -->
494495

495496
Some parameters can take only discrete values.
496497

497498
They are summarized here:
498-
499+
<!--- Start of possible table -->
499500
- **where**:
500501
- for *x-axis*: top, bottom
501502
- **orientation**:
@@ -542,6 +543,7 @@ They are summarized here:
542543
- for *bigwig, bedgraph*: true, false
543544
- **arrowhead_included**:
544545
- for *bed*: true, false
546+
<!--- End of possible table -->
545547

546548
Adding new tracks
547549
-----------------

pygenometracks/updateREADME.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This bash script can be used to regenerate the README when parameters changed in tracksclasses.
2+
3+
# Firts run the python script getAllDefaultsAndPossible.py
4+
python pygenometracks/getAllDefaultsAndPossible.py
5+
6+
# This generates 2 tables to include in the README
7+
# First include the first one: docs/content/all_default_properties.txt
8+
awk 'NR==1,/<!--- Start of default table -->/' README.md > newREADME.md
9+
cat docs/content/all_default_properties.txt >> newREADME.md
10+
awk '/<!--- End of default table -->/{toprint = 1}toprint == 1{print}' README.md >> newREADME.md
11+
# Then include the second one: docs/content/all_possible_properties.txt
12+
awk 'NR==1,/<!--- Start of possible table -->/' newREADME.md > README.md
13+
cat docs/content/all_possible_properties.txt >> README.md
14+
awk '/<!--- End of possible table -->/{toprint = 1}toprint == 1{print}' newREADME.md >> README.md
15+
rm newREADME.md

0 commit comments

Comments
 (0)