摘要: 跳过空行: next if /^\s*$/; 变量内插: my $x = 1; my $y = 2; print "$x + $y = @{[ $x + $y ]}" 根据值对数组下标排序: my $max_ele_index = (sort {$data[$b] <=> $data[$a]} 0. 阅读全文
posted @ 2023-02-15 14:20 天使不设防 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 工具: B站视频下载工具:https://github.com/leiurayer/downkyi OBS录屏工具:https://obsproject.com/zh-cn window 系统激活工具:https://github.com/massgravel/Microsoft-Activatio 阅读全文
posted @ 2023-02-01 09:13 天使不设防 阅读(108) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2022-07-12 21:06 天使不设防 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 一个比fastANI更快更准确的工具 paper:Fast and robust metagenomic sequence comparison through sparse chaining with skani | Nature Methods git:bluenote-1577/skani: 阅读全文
posted @ 2024-01-18 10:06 天使不设防 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 一、 软件安装: conda search 仓库是有结果的,安装却死活安装不上,直接pip安装成功了,用的清华的源,执行完pip install humann 等了近20min才显示安装完成。 输入humann出现如下信息表示安装成功,接下来安装相应数据库文件。 usage: humann [-h] 阅读全文
posted @ 2024-01-11 16:24 天使不设防 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 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 天使不设防 阅读(53) 评论(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 天使不设防 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 书接上回,在上一篇博客中完成了数据的降维分析,这里在降维后的基础上继续进行聚类分析,使用前2个PC进行KMeans据类并可视化。 from sklearn.cluster import KMeans from collections import Counter # 语言定义颜色和画布 colors 阅读全文
posted @ 2023-10-19 21:10 天使不设防 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 数据来源: 从这篇博客中借用下,百度云网页端居然可以直接下载文件了,稀奇 数据已经分享在百度云:客户年消费数据 密码:lehv 该份数据中包含客户id和客户6种商品的年消费额,共有440个样本 分析过程: 用python和R做个简单的PCA分析,顺便比较下结果是不是一致 numpy计算结果: imp 阅读全文
posted @ 2023-10-18 20:57 天使不设防 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 一个用于处理fastq测序文件的命令行小工具,功能还在不断更新中,子命令也不多,支持gzip压缩文件的输入和输出(结果文件名以.gz结尾,结果会自动压缩)。 reop: https://github.com/sharkLoc/fqkit install: cargo install fqkit us 阅读全文
posted @ 2023-10-15 11:29 天使不设防 阅读(164) 评论(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 天使不设防 阅读(119) 评论(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 天使不设防 阅读(27) 评论(0) 推荐(0) 编辑
摘要: # Per-base per-nucleotide depth analysis 统计bam文件每个位置的测序深度、和各种碱基深度、还包括indel,支持多线程。 ### github: `https://github.com/sstadick/perbase.git` ### install: ` 阅读全文
posted @ 2023-09-07 15:24 天使不设防 阅读(32) 评论(0) 推荐(0) 编辑