上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 106 下一页
摘要: 转自:https://www.jianshu.com/p/f063a4aa980a 1.例子 from anndata import AnnData import scanpy as sc adata = ad.AnnData(np.array([ [3, 3, 3, 6, 6], [1, 1, 1 阅读全文
posted @ 2022-01-21 23:10 lypbendlf 阅读(304) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/zhao2chen3/article/details/113746841 https://blog.csdn.net/weixin_39673686/article/details/104364049 1.Nan与Inf NAN:Not A numb 阅读全文
posted @ 2022-01-21 01:16 lypbendlf 阅读(286) 评论(0) 推荐(0)
摘要: 转自:https://www.jb51.net/article/190589.htm 1. nargs nargs:ArgumentParser对象通常将一个动作与一个命令行参数关联。nargs关键字参数将一个动作与不同数目的命令行参数关联在一起: nargs=N,一个选项后可以跟多个参数(acti 阅读全文
posted @ 2022-01-19 22:35 lypbendlf 阅读(2116) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/u011475210/article/details/77770751 1.例子 import numpy as np x = np.array([3, 1, 2]) y=np.argsort(x) z=x[y] >>> y array([1, 2, 阅读全文
posted @ 2022-01-18 14:23 lypbendlf 阅读(46) 评论(0) 推荐(0)
摘要: 转自:https://www.jianshu.com/p/44c1f526e450 1.处理流程 data.count = Read10X(data.dir = "...") data = CreateSeuratObject(counts = data.count, min.cells = 3, 阅读全文
posted @ 2022-01-08 17:44 lypbendlf 阅读(154) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/u011630575/article/details/78594791 1.例子 from sklearn.metrics import cohen_kappa_score y_true = [1,1,1] y_pred = [2,2,2] prin 阅读全文
posted @ 2022-01-08 06:15 lypbendlf 阅读(502) 评论(0) 推荐(0)
摘要: 转自:https://www.jb51.net/article/210349.htm 1.占用内存大小 > library(pryr) > mem_used() 49.1 GB 2.清理空间 rm() #删除变量的引用,经常用它来清理中间对象,其中比较重要的文件可以存在硬盘里,比如csv文件或者RS 阅读全文
posted @ 2022-01-08 06:01 lypbendlf 阅读(1422) 评论(0) 推荐(0)
摘要: 转自:https://scrnaseq-course.cog.sanger.ac.uk/website/seurat-chapter.html#finding-differentially-expressed-genes-cluster-biomarkers https://satijalab.or 阅读全文
posted @ 2022-01-07 11:24 lypbendlf 阅读(4942) 评论(0) 推荐(0)
摘要: 1.针对一维 append: 列表添加一个元素(直接嵌套一个list) l1 = [2, 3, 4] l2 = [7, 8, 9] l1.append(l2) l1 [2, 3, 4, [7, 8, 9]] extend:两个列表合并: l1 = [2, 3, 4] l2 = [7, 8, 9] l 阅读全文
posted @ 2022-01-07 03:27 lypbendlf 阅读(203) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/qq_34218078/article/details/109591000 1.先D后G 1.1 不detach,但需要retain_graph=True 1.2 detach 2.先G后D 有些奇怪的方法,但可用。 因为 generator 的更新 阅读全文
posted @ 2021-12-19 17:25 lypbendlf 阅读(1636) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 106 下一页