首页 > 其他分享 >单细胞分析 library(DropletUtils) Error in testEmptyDrops(m, lower = lower, ...) : no counts available to

单细胞分析 library(DropletUtils) Error in testEmptyDrops(m, lower = lower, ...) : no counts available to

时间:2024-10-22 08:52:39浏览次数:1  
标签:count emptyDrops lower matrix testEmptyDrops 矩阵 ambient estimate

 

单细胞分析

library(DropletUtils)

emptyDrops()

Error in testEmptyDrops(m, lower = lower, ...) : no counts available to estimate the ambient profile

 

问题分析和答复:

 

 我试图阻止人们以错误的方式使用该功能,这让你感到困惑。

CellRanger生成两组计数矩阵——原始的、未经过滤的计数矩阵,以及另一个已经过滤了列的矩阵,只保留他们认为的单元格。emptyDrops()表示执行过滤步骤的另一种方法,因此您需要将其应用于未过滤的计数矩阵。

将emptyDrops()应用于过滤后的计数矩阵没有任何意义。这是因为emptyDrop()使用低计数列来估计环境背景;但是,如果你给它一个经过滤波的矩阵,就没有低计数的列来估计背景了,所以你会得到一个环境轮廓的全零向量。

以前,如果你给它一个过滤后的矩阵,emptyDrops()会默默地运行并给出。。。我甚至不知道它会回来什么。好吧,很明显,它没有分割和炸毁你的电脑,但输出不可能是任何合理的。这个新的错误是我试图保护人们免受自己的伤害,另见此处(https://github.com/MarioniLab/DropletUtils/issues/14)。

值得一提的是,CellRanger v3的单元格调用方法基于emptyDrops(),但经过了实质性的修改,具有自己的风格。据推测,他们做出这些修改是有原因的,但结果是,这与在这里运行emptyDrops()不同。

原文:

Ah, you've been caught by my attempt to prevent people from using the function the wrong way.

CellRanger produces two sets of count matrices - the raw, unfiltered count matrix, and another matrix where they have already filtered the columns to only retain what they think are the cells. emptyDrops() represents an alternative approach to doing the filtering step, so you need to apply it to the unfiltered count matrix.

It doesn't make any sense to apply emptyDrops() to the filtered count matrix. This is because emptyDrops() uses the low-count columns to estimate the ambient background; but if you give it a filtered matrix, there are no low-count columns left to estimate the background, so you get an all-zero vector for the ambient profile.

Previously, if you did give it a filtered matrix, emptyDrops() would silently run and give... I don't even know what it would return. Well, clearly it didn't segfault and blow up your computer, but the output can't be anything sensible. This new error is my attempt at protecting people from themselves, see also here.

It is worth mentioning that CellRanger v3's cell calling method is based on emptyDrops(), but substantially modified with their own flavor. Presumably they had their reasons for making these modifications, but the takeway is that it will not be the same as running emptyDrops() here.

From:

https://support.bioconductor.org/p/123554/#123562

 

标签:count,emptyDrops,lower,matrix,testEmptyDrops,矩阵,ambient,estimate
From: https://www.cnblogs.com/emanlee/p/18491644

相关文章

  • 达梦数据库 函数的使用方法 比如 lower()等
    达梦数据库(DMDatabase)是中国的一款国产数据库管理系统,支持多种SQL标准和功能。达梦数据库中的许多函数与标准SQL中的函数类似,包括字符串处理函数如LOWER()。常见的字符串处理函数LOWER()功能:将字符串转换为小写。语法:LOWER(string)示例:SELECTLOWER('HelloWorld')ASlower_case......
  • Mysql8.0启动时出现ERROR: Different lower_case_table_names settings for server ('
    分析:出现这个原因数据库启动后,调整lower_case_table_names参数导致的这个问题。mysql8.0之后,lower_case_table_names配置必须在安装好MySQL后,初始化mysql配置时才有效。一旦mysql启动后,再设置是无效的,而且启动报错。lower_case_table_names=1表示mysql是不区分大小写的......
  • lower_bound( ) & upper_bound( )
    lower_bound()&upper_bound()1.对于一个从小到大排序的数组lower_bound(begin,end,x)upper_bound(begin,end,x)前者查找成功返回的是从地址begin到end-1中第一个大于或者等于x的地址,后者查找成功返回的是从地址begin到end-1中第一个大于x的地址,减去begin恰好为数组下标。......
  • 通过 NSSM 把 FastAPI+Celery+Flower 注册成 3个Windos 服务
    通过NSSM把FastAPI+Celery+Flower注册成3个Windos服务什么是nssm?是一个服务封装程序,它可以将普通exe程序封装成服务,实现开机自启动,同类型的工具还有微软自己的srvany,不过nssm更加简单易用,并且功能强大。nssm官网nssm常用命令nssminstallservername//创建servername......
  • 线段树与二分操作 vases and flowers ——hdu 4614
    操作1,的关键是找到第一只和最后一只空花瓶,完全可以利用二分法查找,找第一只花瓶可以在[X,N]内查找,第一个位置pos1,最后一只花瓶则在[POS1,N]中找,然后更新[POS1,POS2],全部置1即可代码:#include<iostream>usingnamespacestd;constintN=5e4+5;structnode{ intlazy; in......
  • 【洛谷 P5076】【深基16.例7】普通二叉树(简化版)题解(多重集合+lower_bound+upper_bound
    【深基16.例7】普通二叉树(简化版)题目描述您需要写一种数据结构,来维护一些数(都是以内的数字)的集合,最开始时集合是空的。其中需要提供以下操作,操作次数不超过:查询数的排名(排名定义为比当前数小的数的个数。若有多个相同的数,应输出最小的排名)。查询排名为的数。求的前驱(......
  • 使用kafka完成数据的实时同步,同步到es中。(使用kafka实现自动上下架 upper、lower)
    文章目录1、发送消息KafkaService2、生产者service-album->AlbumInfoServiceImpl2.1、新增saveAlbumInfo()2.2、更新updateAlbumInfo()2.3、删除removeAlbumInfo()3、消费者service-search->AlbumListener.java上架:新增专辑到es下架:删除专辑新增:如果是......
  • C# reflection slower 2.19X+ than direct
    usingSystem.Diagnostics;usingSystem.IO;usingSystem.Reflection;usingSystem.Text;namespaceConsoleApp58{internalclassProgram{staticList<Book>booksList{get;set;}staticvoidMain(string[]args){......
  • 面试官:Leader崩溃Follower不够新怎么办?
    这是一道非常经典的Kafka问题,是关于Leader在“异常”情况下的选举问题。背景我们知道Kafka中的Partition(分区)是存储消息的最终介质,但Partition又有两种分类:LeaderPartition:主分区,负责数据写入和读取。FollowerPartition:副本分区,用于数据备份和主节点宕机之后的分......
  • lower_boundv & upper_bound 用法
    需要数组a排序从小到大lower_bound(a+1,a+n+1,x);//返回数组a[]的1号位置到n号位置中第一个大于等于x(>=x)的值的编号upper_bound(a+1,a+n+1,x);//返回数组a[]的1号位置到n号位置中第一个大于x(>x)的值的编号需要数组a排序从大到小lower_bound(a+1,a+n+1,x,greater());//返回......