Skip to content

Commit 42affed

Browse files
authored
added back in misplaced pipeline step (#74)
1 parent bad6e92 commit 42affed

File tree

1 file changed

+31
-28
lines changed

1 file changed

+31
-28
lines changed

R/bican.mccarroll.eqtl/R/run_eqtl_manuscript_pipeline.R

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,34 @@ run_eqtl_manuscript_pipeline <- function(
223223
}
224224
)
225225

226-
#this does it's own logging, and is step 8.
226+
.run_eqtl_manuscript_pipeline_step(
227+
step_label = "Step 8: get_index_snp_start_distance",
228+
output_path = paths$start_distance_path,
229+
force = force,
230+
fun = function() {
231+
bican.mccarroll.eqtl::get_index_snp_start_distance(
232+
eqtl_dir = eqtl_dir,
233+
region_cell_type_path = region_cell_type_path,
234+
index_snp_matrix_path = paths$index_snp_path,
235+
output_path = paths$start_distance_path
236+
)
237+
}
238+
)
239+
240+
.run_eqtl_manuscript_pipeline_step(
241+
step_label = "Step 9: combine_expression_across_cell_types",
242+
output_path = paths$combined_expression_path,
243+
force = force,
244+
fun = function() {
245+
bican.mccarroll.eqtl::combine_expression_across_cell_types(
246+
eqtl_dir = eqtl_dir,
247+
region_cell_type_path = region_cell_type_path,
248+
output_path = paths$combined_expression_path
249+
)
250+
}
251+
)
252+
253+
#this does it's own logging, and is step 9 .
227254
.run_eqtl_manuscript_pipeline_gene_snp_plots(
228255
out_dir = out_dir,
229256
vcf_path = vcf_path,
@@ -232,32 +259,6 @@ run_eqtl_manuscript_pipeline <- function(
232259
force = force
233260
)
234261

235-
# .run_eqtl_manuscript_pipeline_step(
236-
# step_label = "Step 8: get_index_snp_start_distance",
237-
# output_path = paths$start_distance_path,
238-
# force = force,
239-
# fun = function() {
240-
# bican.mccarroll.eqtl::get_index_snp_start_distance(
241-
# eqtl_dir = eqtl_dir,
242-
# region_cell_type_path = region_cell_type_path,
243-
# index_snp_matrix_path = paths$index_snp_path,
244-
# output_path = paths$start_distance_path
245-
# )
246-
# }
247-
# )
248-
249-
# .run_eqtl_manuscript_pipeline_step(
250-
# step_label = "Step 9: combine_expression_across_cell_types",
251-
# output_path = paths$combined_expression_path,
252-
# force = force,
253-
# fun = function() {
254-
# bican.mccarroll.eqtl::combine_expression_across_cell_types(
255-
# eqtl_dir = eqtl_dir,
256-
# region_cell_type_path = region_cell_type_path,
257-
# output_path = paths$combined_expression_path
258-
# )
259-
# }
260-
# )
261262

262263
.run_eqtl_manuscript_pipeline_kmeans(
263264
out_dir = out_dir,
@@ -400,7 +401,9 @@ run_eqtl_manuscript_pipeline_defaults <- function(
400401
pos = case$pos,
401402
vcf_path = vcf_path,
402403
expression_path = expression_path,
403-
output_path = out_file
404+
output_path = out_file,
405+
width = 20,
406+
height = 4
404407
)
405408

406409
cat(" ", case$gene, "saved to:", out_file, "\n")

0 commit comments

Comments
 (0)