Coder Social home page Coder Social logo

ltmgsca's People

Stargazers

 avatar

Watchers

 avatar

Forkers

zcslab

ltmgsca's Issues

Data_Meta has an error

my code is :

library(LTMGSCA)
library(Matrix)
library(dplyr)
library(ggplot2)
library(ggpubr)
library(Rtsne)
library(RColorBrewer)
library(KRLS)
library(RSpectra)
library(SwarmSVM)
library(reshape2)

### Read and preprocess 10X files
PBMC<-Read10X("GRCh38")
PBMC_meta<-Data_Meta(PBMC)

my error is:

Error in colSums(MAT > 0) : 
  'x' must be an array of at least two dimensions

Sorry,I have another question

*I use the following code : *

library(LTMGSCA)
library(Matrix)
library(dplyr)
library(ggplot2)
library(ggpubr)
library(Rtsne)
library(RColorBrewer)
library(KRLS)
library(RSpectra)
library(SwarmSVM)
library(reshape2)
PBMC<-Read10X("hg19")
PBMC<-as.matrix(PBMC)
PBMC_meta<-Data_Meta(PBMC)
Plot_Meta(PBMC_meta)
#ggsave("test_meta.png",width=4,height=4,dpi=300)
PBMC<-Data_subset(PBMC,PBMC_meta,nFeature.lower = 200,nFeature.upper = 2000,Counts.upper = 5000,Percent.mt.upper = 0.1)
str(PBMC_meta)
#List of 3
# $ nFeature  : Named num [1:2700] 781 1352 1131 960 522 ...
#  ..- attr(*, "names")= chr [1:2700] "AAACATACAACCAC" "AAACATTGAGCTAC" "AAACATTGATCAGC" "AAACCGTGCTTCCG" ...
# $ Counts    : Named num [1:2700] 2421 4903 3149 2639 981 ...
#  ..- attr(*, "names")= chr [1:2700] "AAACATACAACCAC" "AAACATTGAGCTAC" "AAACATTGATCAGC" "AAACCGTGCTTCCG" ...
# $ Percent.mt: Named num [1:2700] 0.03015 0.03794 0.00889 0.01743 0.01223 ...
#  ..- attr(*, "names")= chr [1:2700] "AAACATACAACCAC" "AAACATTGAGCTAC" "AAACATTGATCAGC" "AAACCGTGCTTCCG" ...
PBMC<-PBMC[rowSums(PBMC>0)>0.01*ncol(PBMC),]
PBMC<-NormalizeCount(PBMC)
Zcut_G<-log(Global_Zcut(PBMC))
head(Zcut_G)
#[1] 0
Gene<-"CCL5"
VEC<-PBMC[Gene,]
VEC_LTMG<-LTMG(VEC,Zcut_G,k=5)
plot_gene(VEC = VEC,Data_LTMG = VEC_LTMG,Zcut = Zcut_G)

Then , I got Zcut_G=0 , Then I got Zcut_G as 0. Is this correct? Also, there are three peaks in my plot_gene result ?

parameter meanings

Hi! Could you please add man folder or annotations about the meaning of parameters and outputs in each function (e.g. I'm a little confused about the meaning of k here in LTMG function)? Thanks!

Method to Find Curve Intersection from plot_gene?

image

Hello,

I was wondering if there is a way to graph and obtain the point of intersection of curves obtained from the plot_gene function? Basically like the ZxAE1 bound from the graph in the paper published. I appreciate any help you can offer.

Thank you

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.