01 2022 档案

摘要:转自:https://blog.csdn.net/weixin_39858245/article/details/110776936 1.例子 import numpy as np a=np.array([[1, 1, 1, 0, 0, 0], [0, 1, 1, 1, 0, 0], [0, 1, 阅读全文
posted @ 2022-01-28 21:27 lypbendlf 阅读(163) 评论(0) 推荐(0)
摘要:转自:https://zhuanlan.zhihu.com/p/380795956 1.torch.optim.lr_scheduler.ReduceLROnPlateau 定义: torch.optim.lr_scheduler.ReduceLROnPlateau(optimizer, mode= 阅读全文
posted @ 2022-01-28 19:30 lypbendlf 阅读(546) 评论(0) 推荐(0)
摘要:转自:https://blog.csdn.net/sinat_29957455/article/details/82778306 https://www.jianshu.com/p/eab5268ded22 1.os.walk遍历目录 阅读全文
posted @ 2022-01-25 16:34 lypbendlf 阅读(114) 评论(0) 推荐(0)
摘要:1.np.repeat https://blog.csdn.net/u010496337/article/details/50572866/ import numpy as np a=np.array(([1,2],[3,4])) print(np.repeat(a,2)) #结果: [1 1 2 阅读全文
posted @ 2022-01-25 11:09 lypbendlf 阅读(179) 评论(0) 推荐(0)
摘要:转自: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 阅读(324) 评论(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 阅读(305) 评论(0) 推荐(0)
摘要:转自:https://www.jb51.net/article/190589.htm 1. nargs nargs:ArgumentParser对象通常将一个动作与一个命令行参数关联。nargs关键字参数将一个动作与不同数目的命令行参数关联在一起: nargs=N,一个选项后可以跟多个参数(acti 阅读全文
posted @ 2022-01-19 22:35 lypbendlf 阅读(2146) 评论(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 阅读(49) 评论(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 阅读(160) 评论(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 阅读(517) 评论(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 阅读(1440) 评论(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 阅读(5046) 评论(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 阅读(212) 评论(0) 推荐(0)