From bf44cde3c73329bd9efd170c52c0222abcf8bcef Mon Sep 17 00:00:00 2001 From: Jakub Vasicek Date: Mon, 9 Dec 2024 18:22:52 +1100 Subject: [PATCH] Add GUI for creating config files --- docs/configBuilder.js | 20 ++++ docs/index.html | 249 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 269 insertions(+) create mode 100644 docs/configBuilder.js create mode 100644 docs/index.html diff --git a/docs/configBuilder.js b/docs/configBuilder.js new file mode 100644 index 0000000..bb41424 --- /dev/null +++ b/docs/configBuilder.js @@ -0,0 +1,20 @@ +function getConfigHTML(ensembl_release, max_cores, haplo_table, var_table, final_FASTA, fasta_header, input_file, ID_col, seq_col, prot_col, pos_col, sep, output_file) { + return "

" + + "# ---------------- General config ----------------
" + + "ensembl_release: " + ensembl_release + "
" + + "max_cores: " + max_cores + "
" + + "
# ---------------- File paths ----------------
" + + "haplo_db_table: \"" + haplo_table + "\"
" + + "var_db_table: \"" + var_table + "\"
" + + "full_fasta: \"" + final_FASTA + "\"
" + + "fasta_header: \"" + fasta_header + "\"
" + + "peptides_file: \"" + input_file + "\"
" + + "output_file: \"" + output_file + "\"
" + + "
# ---------------- Input formatting ----------------
" + + "ID_col: \"" + ID_col + "\"
" + + "seq_col: \"" + seq_col + "\"
" + + "prot_col: \"" + prot_col + "\"
" + + "pos_col: \"" + pos_col + "\"
" + + "sep: \"" + sep + "\"
" + + "<\p>" +} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..646cd62 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,249 @@ + + + + + + + + + + + + +

+
+

Create your config.yaml file for ProHap Peptide Annotator

+
+ +
+
+
+

General parameters

+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+
Input file
+
+ + +
+
+
Input format
+
+
+
+ + (?) + +
+
+ + (?) + +
+
+ + (?) + +
+
+ + (?) + +
+
+
+
+ Separator +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
Output file
+
+ + +
+
+
+
+
+ + or copy the content below to your config.yaml file: +
+
+
+
+
+
+ + + + + + + + + + \ No newline at end of file