Giter Club home page Giter Club logo

epic-atac's People

Contributors

aureliegabriel avatar jracle85 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

epic-atac's Issues

No marker peaks for three cell types in `atacRef_TME`

Hello,

The atacRef_TME object seems to lack marker peaks for endothelial, fibroblast, and macrophage cell types. Is this expected?

Here is how I have checked this:

# devtools::install_github("GfellerLab/EPIC-ATAC", build_vignettes=TRUE)
library(EPICATAC)
markers_list <- atacRef_TME$markers

result_df <- data.frame(Chromosome = character(), Start = integer(), End = integer(), Subcomponent = character(), stringsAsFactors = FALSE)

for (subcomponent in names(markers_list)) {
  regions <- markers_list[[subcomponent]]
  
  split_regions <- strsplit(regions, "-")
  chrom <- sapply(split_regions, `[`, 1)
  start <- as.integer(sapply(split_regions, `[`, 2))
  end <- as.integer(sapply(split_regions, `[`, 3))
  
  temp_df <- data.frame(Chromosome = chrom, Start = start, End = end, Subcomponent = subcomponent, stringsAsFactors = FALSE)

  result_df <- rbind(result_df, temp_df)
}

write.table(result_df, "atacRef_TME_markers.bed", sep = "\t", row.names = FALSE, col.names = FALSE, quote = FALSE)

markerPeaks.saf was downloaded from here.

bedtools intersect -u -a <(bedtools sort -i atacRef_TME_markers.bed) -b <(tail -n+2 markerPeaks.saf | cut -f2-4 | bedtools sort) | cut -f4 | sort | uniq -c
# 87 Bcells
# 64 CD4_Tcells
# 95 CD8_Tcells
# 95 DCs
# 48 Neutrophils
# 89 NK


cut -f4 atacRef_TME_markers.bed | sort | uniq -c
# 87 Bcells
# 64 CD4_Tcells
# 95 CD8_Tcells
# 95 DCs
# 48 Neutrophils
# 89 NK
# 91 Endothelial
# 59 Fibroblasts
# 88 Macrophages

Thank you in advance for consideration and response.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.