Giter Site home page Giter Site logo

ampad_lineage's People

Contributors

lauraheath avatar mukhes3 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ampad_lineage's Issues

trying to understand the BinLims assignment in get var genes

Hi all
thank you for the interesting pipeline, its a neat work that impresses me everytime :)
i was wondering if you could explain the rationale behind your get var genes function Get.High.Var.Genes, especially the part on binLims BinLims <- seq(log(10/length(M)),max(M),Bins + 1) ; i dont quite understand the rationale for setting start as the number of genes in the assay, but setting the greatest highest rowmeans max(M expression as the end for seq(). conventionally, i only noticed BinLims setting up using min and max(M) of expression values instead of the length of number of genes.

from your Misc.Processing script:

Get.High.Var.Genes <- function(Dat, Bins = 10, frac = .2){
  
  M = rowMeans(Dat)
  V = RowVar(Dat)
  
  BinLims <- seq(log(10/length(M)),max(M),Bins + 1)
  
  In = c()
  
  for (i in 1:Bins){
    In_red <- which(as.logical((M >= BinLims[i])*
                                 (M < BinLims[i+1])))
    temp <- V[In_red]/M[In_red]
    temp2 <- sort(temp, decreasing = T, index.return = T)
    I <- temp2$ix
    topX <- round(length(In_red)*frac)
    In <- c(In,In_red[I[1:topX]])
    
  }
  
  In <- In[!is.na(In)]
  In <- unique(In)
  return(In)
  
}

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.