Skip to content

Commit

Permalink
citeseq integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Matiss Ozols committed Jun 28, 2024
1 parent 3003d72 commit 5003a16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/2.integrate.R
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ integrate_cite <- function(slist, reference_samples, normalize, assay, k.anchor=
# Normalize the data
# slist[[donor_name]] <- NormalizeData(slist[[donor_name]])
# print(paste("Normalized data for Sample", donor_name))

slist[[donor_name]] <- ScaleData(x, features = seurat.features.adt, verbose = FALSE)
# # Perform PCA
# print('run pca:')
# slist[[donor_name]] <- RunPCA(slist[[donor_name]], features = variable_features)
slist[[donor_name]] <- RunPCA(slist[[donor_name]], features = variable_features)
# print(paste("PCA completed for Sample", donor_name))
print(DefaultAssay(slist[[donor_name]]))

Expand All @@ -218,8 +218,8 @@ integrate_cite <- function(slist, reference_samples, normalize, assay, k.anchor=

print('Scale data and run PCA and UMAP')
integrated.adt <- ScaleData(integrated.adt)
integrated.adt <- RunPCA(integrated.adt, npcs = dims)
integrated.adt <- RunUMAP(integrated.adt, dims = 1:dims)
# integrated.adt <- RunPCA(integrated.adt, npcs = dims)
# integrated.adt <- RunUMAP(integrated.adt, dims = 1:dims)

return(integrated.adt)
}
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/match_genotypes.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ workflow match_genotypes {
cellsnp_cell_vcfs2
cell_assignments
subsampling_donor_swap
informative_uninformative_sitesFREPLA
informative_uninformative_sites
main:


Expand Down

0 comments on commit 5003a16

Please sign in to comment.