上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: usage: 脚本就不注释了,会perl的都看得懂;测试了下,速度感人OTZ,淦! #!/usr/bin/env perl use strict; use warnings; use Cwd qw/getcwd/; use Getopt::Long; use Net::FTP; use featur 阅读全文
posted @ 2023-11-01 15:02 un-define 阅读(155) 评论(0) 推荐(0)
摘要: perl 模块Getopt::Long使用示例 use strict; use warnings; use Getopt::Long; my @ARGV2 = @ARGV; my $leng =10; my $data ="x.txt"; my $verb; my $help; die("error 阅读全文
posted @ 2023-10-26 14:04 un-define 阅读(30) 评论(0) 推荐(0)
摘要: 书接上回,在上一篇博客中完成了数据的降维分析,这里在降维后的基础上继续进行聚类分析,使用前2个PC进行KMeans据类并可视化。 from sklearn.cluster import KMeans from collections import Counter # 语言定义颜色和画布 colors 阅读全文
posted @ 2023-10-19 21:10 un-define 阅读(88) 评论(0) 推荐(0)
摘要: 数据来源: 从这篇博客中借用下,百度云网页端居然可以直接下载文件了,稀奇 数据已经分享在百度云:客户年消费数据 密码:lehv 该份数据中包含客户id和客户6种商品的年消费额,共有440个样本 分析过程: 用python和R做个简单的PCA分析,顺便比较下结果是不是一致 numpy计算结果: imp 阅读全文
posted @ 2023-10-18 20:57 un-define 阅读(93) 评论(0) 推荐(0)
摘要: 一个用于处理fastq测序文件的命令行小工具,功能还在不断更新中,子命令也不多,支持gzip压缩文件的输入和输出(结果文件名以.gz结尾,结果会自动压缩)。 reop: https://github.com/sharkLoc/fqkit install: cargo install fqkit us 阅读全文
posted @ 2023-10-15 11:29 un-define 阅读(831) 评论(0) 推荐(0)
摘要: 按照key和value升序、降序、自定义排序示例 use std::collections::HashMap; use std::cmp::Ordering; fn main() { let mut df = HashMap::new(); for x in 5..=12 { let k = for 阅读全文
posted @ 2023-10-11 15:53 un-define 阅读(362) 评论(0) 推荐(0)
摘要: 多线程之间的通信和内存共享常见方式 use std::sync::mpsc; use std::thread; use std::sync::{Arc,Mutex}; struct User { name: String } fn main() { // Arc 通过共享内存 在线程间通信 数据不可 阅读全文
posted @ 2023-09-09 19:54 un-define 阅读(49) 评论(0) 推荐(0)
摘要: # Per-base per-nucleotide depth analysis 统计bam文件每个位置的测序深度、和各种碱基深度、还包括indel,支持多线程。 ### github: `https://github.com/sstadick/perbase.git` ### install: ` 阅读全文
posted @ 2023-09-07 15:24 un-define 阅读(59) 评论(0) 推荐(0)
摘要: [上一篇](https://www.cnblogs.com/mmtinfo/p/16842120.html)博文中写到出了这个小工具,现在更新到0.2.5了,新增了一些子命令。有seqtk,seqkit等好用的工具珠玉在前,还写这个主要是学习和熟悉rust这门语言的基础语法了,写出来自己玩儿咯。 # 阅读全文
posted @ 2023-09-06 20:27 un-define 阅读(69) 评论(0) 推荐(0)
摘要: 在目录 C:\Users\用户名\AppData\Roaming下新建目录 pip,并在pip目录中新建文件pip.ini,文件内容为: ``` [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple ``` 速度起飞…… 阅读全文
posted @ 2023-07-17 16:34 un-define 阅读(90) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 13 下一页