Mercurial > repos > mingchen0919 > rmarkdown_i_adhore
comparison i_adhore_configure.Rmd @ 5:dab02b629d48 draft
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_i_adhore commit 60ea96204588be4348bd5d7879d1eb0d73f487c7-dirty
author | mingchen0919 |
---|---|
date | Tue, 15 Aug 2017 15:35:23 -0400 |
parents | 9755ce6ac4d5 |
children | 8cf3b1298508 |
comparison
equal
deleted
inserted
replaced
4:85166d75910b | 5:dab02b629d48 |
---|---|
45 ``` | 45 ``` |
46 | 46 |
47 # Other parameters | 47 # Other parameters |
48 | 48 |
49 ```{r} | 49 ```{r} |
50 data_dir = gsub('dataset_.*dat', '', opt$blast_table) | |
51 output_dir = tail(strsplit(opt$i_adhore_configure_dir, '/')[[1]], 1) | |
52 output_path = paste(data_dir, output_dir, sep = '') | |
53 | |
50 params = c( | 54 params = c( |
51 'blast table' = opt$blast_table, | 55 'blast_table' = opt$blast_table, |
52 'output_path' = opt$i_adhore_configure_dir, | 56 'output_path' = output_path, |
53 'gap_size' = opt$gap_size, | 57 'gap_size' = opt$gap_size, |
54 'cluster_gap' = opt$cluster_gap, | 58 'cluster_gap' = opt$cluster_gap, |
55 'q_value' = opt$q_value, | 59 'q_value' = opt$q_value, |
56 'prob_cutoff' = opt$prob_cutoff, | 60 'prob_cutoff' = opt$prob_cutoff, |
57 'anchor_points' = opt$anchor_points, | 61 'anchor_points' = opt$anchor_points, |
58 'level_2_only' = opt$level2only, | 62 'level_2_only' = tolower(opt$level2only), |
59 'table_type' = opt$table_type, | 63 'table_type' = opt$table_type, |
60 'multi_hypothesis_correction' = opt$multi_hypothesis_correction | 64 'multiple_hypothesis_correction' = opt$multi_hypothesis_correction |
61 ) | 65 ) |
62 | 66 |
63 df = data.frame(name = names(params), | 67 df = data.frame(name = names(params), |
64 value = params) | 68 value = params) |
65 knitr::kable(df) | 69 knitr::kable(df) |
69 ```{r echo=FALSE} | 73 ```{r echo=FALSE} |
70 # generate i_adhore_configure.txt file | 74 # generate i_adhore_configure.txt file |
71 lines = c(unlist(g_analysis_files_list), | 75 lines = c(unlist(g_analysis_files_list), |
72 ' ', | 76 ' ', |
73 paste0(df$name, '=', df$value), | 77 paste0(df$name, '=', df$value), |
74 'CompareAligners') | 78 'compareAligners') |
75 fileConn = file('I_ADHORE_CONFIGURE_TXT') | 79 fileConn = file('I_ADHORE_CONFIGURE_TXT') |
76 writeLines(lines, con = fileConn) | 80 writeLines(lines, con = fileConn) |
77 ``` | 81 ``` |
78 | 82 |
79 | 83 |