Draft PR from Tina#242
Conversation
|
|
||
| # output_file <- file.path(output_dir, paste0(sample_id, "_allele_counts_consistent.tsv")) | ||
|
|
||
| tryCatch({ |
There was a problem hiding this comment.
I think if you name the file .gz fwrite will automatically compress
| #' @param output_file Character. File for combined allele outputs | ||
| #' @param compress Logical. Whether to compress the output file (default: TRUE) | ||
| #' @return Character. Path to the output file | ||
| combine_allele_counts <- function(alleleCounts_RNA, |
There was a problem hiding this comment.
Discuss - could take union instead. Is this also used for summed? For summed I just rbind the two dataframes and sum the counts for the same cell-snp combo
| cntsubN(cntmat[[2]],sharedFeature,maxCB,seed)) | ||
| return(comb_cnt) | ||
|
|
||
| if(add_suffix){ |
There was a problem hiding this comment.
Is this necessary? Why can't just append suffix to each matrix and combine?
| return(cnt) | ||
| } | ||
|
|
||
| if(add_suffix){ |
There was a problem hiding this comment.
Why is this necessary for summed? seems repeated
Merge two function -> mode = intersect/union
| ```r | ||
| source(glue("{numbat_repo}/inst/bin/input_prep.R")) | ||
| combine_allele_counts( | ||
| alleleCounts_RNA = glue("${sample}/{sample}_rna_bin.rds"), |
There was a problem hiding this comment.
path names seems wrong
| ) | ||
| ``` | ||
|
|
||
| #### Run Numbat with the --runMultiomeAsPaired tag |
There was a problem hiding this comment.
It's a bit confusing with all different running modes, can we make a separate tutorial for people who has joint multiome
Also need to clarify what paired mode is, I'm a bit unclear on this
| ``` | ||
|
|
||
|
|
||
| #### Running Numbat Paired Mode: |
There was a problem hiding this comment.
Need some recommended parameters, etc.
There was a problem hiding this comment.
Also it still says paired
There was a problem hiding this comment.
Can we just give a run_numbat command instead?
No description provided.