Giter Site home page Giter Site logo

ncla's Introduction

ncla

ncla is an R package written to help with mapping samples between different datasets using transcriptomic data on the basis of measuring dissimilarity

Installation

You can install the development version of ncla from GitHub with:

# install.packages("devtools")
devtools::install_github("samleenz/ncla")

Citing

See the manuscript:

ncla's People

Contributors

samleenz avatar

Watchers

 avatar

ncla's Issues

induce bipartite neigbour graph

Given a set of query samples X, return a network diagram showing the mapping to the nearest neghbours of the other type. Similar to the bespoke analysis I did for the PDX analysis but for the general case (would likely not have the dual edge type)

look into using the ggraph package for this

xdissim

add check that the matrices have same features

require philentropy version 0.5?

>     di <- sapply(2:nrow(xyMat), function(i){
+       ncla::dissim(
+         xyMat[c(1, i), ],
+         d
+       )[1,2] # [1,2] is to select the top-right of the 2x2 distance matrix
+     })
Error in philentropy::distance(x, "euclidean", mute.message = TRUE) :
  unused argument (mute.message = TRUE)

error when using philentropy version 0.4, fixed on update to latest philentropy version

fn: transform distance matrix into tidy table

write a utility function that takes a square distance matrix, and returns the upper-triangle of it as a 3 column tibble. add argument to determine whether the diagonal of the matrix will be returned.

X Y distance
a b 0.2

Add SE wrapper for map_samples

map_samples_se <- function(query, reference, f, i_q, i_r){
  q <- assay(query, i_q) |>
    t()
  
  r <- assay(reference, i_r) |>
    t()
  
  res <- ncla::map_samples(q, r, f)
  
  res
}
  • write documentation
  • add + update

bug in plotGG_PCAscree_eda

stringr func not declared properly

Error in `dplyr::mutate()`:
! Problem while computing `PC_int = as.numeric(str_remove(PC,
  "PC"))`.
Caused by error in `str_remove()`:
! could not find function "str_remove"
Run `rlang::last_error()` to see where the error occurred.

ncla()

Given two datasets return k-NN for each sample in dataset one from dataset two.

This should probably be done in it's own branch?

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.