240 发简信
IP属地:广西壮族自治区
  • 120
    小的PPI网络图,R也可以搞定它

    一般来说网络图都是R语言导出数据放入cytoscape里面绘制,今天想试试在R语言内部去画,确实有相应的R包(igraph)可以做,不是专门针对PPI网络来的,自己组织一下数...

  • 120
    多分组芯片数据的差异分析-升级版

    1.背景知识 今天的目的是为了从一个5分组数据中筛选出两个分组,去做后续分析。扩展了一下,5个分组的数据其实也可以直接一步到位作差异分析的。 数据编号:GSE54238实验设...

  • R读取excel文件的最佳方式

    背景 众所周知,excel生成的文件后缀是xls或者xlsx,早期读取这样的文件,要么就另存为csv格式,要么就用readxls或者xlsx这样的R包,可能会遇到Rjava报...

  • 文章写得不错,但是有个问题

    res = results(dds2, contrast=c("condition", "control", "treat")) 这个地方应该是存在问题的

    下面是help文件中result中contrast参数的描述

    this argument specifies what comparison to extract from the object to build a results table. one of either:

    a character vector with exactly three elements: the name of a factor in the design formula, the name of the numerator level for the fold change, and the name of the denominator level for the fold change (simplest case)

    a list of 2 character vectors: the names of the fold changes for the numerator, and the names of the fold changes for the denominator. these names should be elements of resultsNames(object). if the list is length 1, a second element is added which is the empty character vector, character(). (more general case, can be to combine interaction terms and main effects)

    a numeric contrast vector with one element for each element in resultsNames(object) (most general case)

    If specified, the name argument is ignored.

    可见,当contrast参数有三个元素时依次代表 数据中作为treat/control标签的列的名称, fold change的分子, 以及fold change的分母。
    fold change 一般算的时treat/control,作者也在他的描述中说他算的是treat versus control,所以这里正常应该是
    res = results(dds, contrast=c("condition", "treat", "control"))
    在作者后面分析部分
    > diff_gene_deseq2 <-subset(res, padj < 0.05 & abs(log2FoldChange) > 1)
    > head(diff_gene_deseq2)
    log2 fold change (MLE): condition control vs treat
    也展示了他这里算的log2 fold change是control vs treat

  • 120
    单细胞转录组分析中的各种数据结构

    单细胞分析世界里数据结构多种多样,主流的四种数据结构分别是Bioconductor主导的SingleCellExperiment,Seurat中的SeuratObject格式...

  • 120
    使用R语言展示我们生信技能树全国巡讲的征程

    话说有那么一天。全能打杂·小洁需要写一个全国巡讲推广软文,打开原来的推文看到这样一个路径图 (之前做的,但是忘记该怎么做了) 两个月过去了,又去了几个城市,图该更新了,这可咋...