HELP- output of BAM files after batch correction in ArchR
0
0
Entering edit mode
18 months ago
Chihiro • 0

Hi!

I'm currently using ArchR for a scATAC-seq analysis. I'd like to get BAM files after batch correction using "Harmony" in ArchR. Namely, a bam file for each cluster in each sample.

I would appreciate any help.

# after reading inputFiles (2 inputFiles from 2 samples)
ArrowFiles <- createArrowFiles(
  inputFiles = inputFiles,
  sampleNames = names(inputFiles),
  minTSS = 6, 
  minFrags = 2000, 
  maxFrags = 1e+05,
  addTileMat = TRUE,
  addGeneScoreMat = TRUE, force=T
)
doubScores <- addDoubletScores(
  input = ArrowFiles,
  k = 10, 
  knnMethod = "UMAP", 
  LSIMethod = 1
)
proj <- ArchRProject(
  ArrowFiles = ArrowFiles, 
  outputDirectory = "HemeTutorial",
  copyArrows = TRUE 
)
getAvailableMatrices(proj)
proj <- filterDoublets(ArchRProj = proj, filterRatio = 2.5)
proj <- addIterativeLSI(ArchRProj = proj, useMatrix = "TileMatrix", name = "IterativeLSI")
proj <- addHarmony(
  ArchRProj = proj,
  reducedDims = "IterativeLSI",
  name = "Harmony",
  groupBy = "Sample"
)
proj <- addClusters(input = proj, reducedDims = "Harmony")
scATAC-seq • 368 views
ADD COMMENT

Login before adding your answer.

Traffic: 2069 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6