Skip to content

Draft PR from Tina#242

Open
teng-gao wants to merge 3 commits into
kharchenkolab:mainfrom
tinakeshav:main
Open

Draft PR from Tina#242
teng-gao wants to merge 3 commits into
kharchenkolab:mainfrom
tinakeshav:main

Conversation

@teng-gao

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread inst/bin/input_prep.R

# output_file <- file.path(output_dir, paste0(sample_id, "_allele_counts_consistent.tsv"))

tryCatch({

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if you name the file .gz fwrite will automatically compress

Comment thread inst/bin/input_prep.R
#' @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,

@teng-gao teng-gao Oct 30, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread inst/bin/input_prep.R
cntsubN(cntmat[[2]],sharedFeature,maxCB,seed))
return(comb_cnt)

if(add_suffix){

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? Why can't just append suffix to each matrix and combine?

Comment thread inst/bin/input_prep.R
return(cnt)
}

if(add_suffix){

@teng-gao teng-gao Oct 30, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"),

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path names seems wrong

)
```

#### Run Numbat with the --runMultiomeAsPaired tag

@teng-gao teng-gao Oct 30, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need some recommended parameters, etc.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also it still says paired

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just give a run_numbat command instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant