ICode9

精准搜索请尝试: 精确搜索
  • python 中根据RNA序列输出密码子编码的氨基酸序列2022-08-17 21:03:28

      001、 (base) root@PC1:/home/test4# ls test.py (base) root@PC1:/home/test4# cat test.py ## 测试程序 #!/usr/bin/python rna = "AUGGCCAUGGCGCCCAGAACUGAGAUCAAUAGUACCCGUAUUAACGGGUGA" table = { 'UUU':'F','CU

  • linux 中sed命令 P和p的区别2022-08-17 17:02:31

      001: p:输出缓冲区中的所有内容。 P:输出缓冲区中一个个换行符之前的内容 (base) root@PC1:/home/test4# ls a.txt (base) root@PC1:/home/test4# cat a.txt 1 2 3 4 5 ## N的作用是预先读取下一行,将两行作为一行来处理,即两行内容储

  • linux 中sed命令删除匹配字符之前的若干行2022-08-17 16:31:59

      001、 (base) root@PC1:/home/test4# cat a.txt 1 2 3 4 34aaaa 5 6 7 aaaa 8 9 10 (base) root@PC1:/home/test4# sed -e:b -e '$!{N;1,1bb' -e\} -e '/\n.*aaa/!P;D' a.txt ## 删除匹配字符之前的一行 1 2 3 34aaaa 5 6 aaaa 8 9 10   002、 (base) root@

  • linux 中 sed命令替换命令时i选项忽略大小写2022-08-17 06:30:09

      001、 (base) root@PC1:/home/test4# ls a.txt (base) root@PC1:/home/test4# cat a.txt e ds d g d E d G D f (base) root@PC1:/home/test4# sed 's/e/MMM/' a.txt ## e替换为MMM MMM ds d g d E d G D f (base) root@PC1:/home/test4# cat a.txt e ds d g d E

  • linux 中 sed = 选项在每一行之前插入编号2022-08-17 01:30:44

      001、 (base) root@PC1:/home/test4# ls a.txt (base) root@PC1:/home/test4# cat a.txt ## 测试数据 This is 1 This is 2 This is 3 This is 4 This is 5 (base) root@PC1:/home/test4# sed = a.txt ## 在每一行之前插入编号 1 This is 1 2 This is 2 3 This is

  • linux 中 shasum命令2022-08-08 00:00:41

      001、 [root@PC1 test4]# ls a.txt [root@PC1 test4]# shasum a.txt 8b945928bcfa1a6018f3e65d83ad27c6879bd6c8 a.txt [root@PC1 test4]# shasum --algorithm 256 a.txt 728c991fa4a6278284a98a4ce5e9021c4a847029c318c14899e9f0fb1107c15e a.txt [root@PC1 test4]# shas

  • plink 软件 --assoc 数量性状关联分析 T值的来源2022-07-15 10:36:27

      001、 root@DESKTOP-1N42TVH:/home/test4# ls gwas_test.map gwas_test.ped root@DESKTOP-1N42TVH:/home/test4# plink --file gwas_test --assoc --out test 1> /dev/null root@DESKTOP-1N42TVH:/home/test4# ls gwas_test.map gwas_test.ped test.log test.qassoc

  • plink 软件中 --assoc 参数对二分类性状关联分析卡方值、及p值计算2022-07-14 23:32:43

      001、 root@DESKTOP-1N42TVH:/home/test4# ls ## 测试数据 gwas_test.map gwas_test.ped root@DESKTOP-1N42TVH:/home/test4# plink --file gwas_test --assoc --out test 1> /etc/null ## 关联分析 root@DESKTOP-1N42TVH:/home/test4# ls gwas_test.map gwas_tes

  • plink 软件中 --reference-allele 参数 用于设定参考等位基因2022-07-14 19:36:53

      001、 root@DESKTOP-1N42TVH:/home/test4# ls ## 测试数据 outcome.map outcome.ped root@DESKTOP-1N42TVH:/home/test4# cat outcome.map 1 SNP1 0 55910 1 SNP2 0 85204 1 SNP3 0 122948 1 SNP4 0

  • linux awk命令统计行数和列数2022-04-14 15:02:03

      1、测试数据 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt d j k j x m y e s g j i x v b d z c e t   2、统计行数和列数 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt d j k j x m y e s g j i x v b d z c e t [r

  • linux中输出匹配行的行号2022-04-14 14:31:36

      1、测试数据 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt e f j d i x a d g c F w   2、grep 实现 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt e f j d i x a d g c F w [root@centos7 test4]# grep -n "d" t

  • 计算机网络test42021-12-22 09:59:39

    1. 网络层的检错方式是:A.CRC 校验 B.首部反码求和校验 C.水平奇偶校 验 D.整个分组的反码求和校验 2. 从网络规模看,博物楼的网络属于 A.个域网 B.局域网 C.城域网 D.广 域网 3. 以下对域名描述不正确的是:A.“.com”指商业机构 B.“.net”指网络服务 机构 C.“.mil”指政府部门 D.“.edu”指

  • 后台运行脚本2021-12-05 14:31:47

    以后台模式运行shell脚本非常简单。只要在命令后加个&符就行了。 $ cat test4.sh #!/bin/bash # Test running in the background # count=1 while [ $count -le 10 ] do sleep 1 count=$[ $count + 1 ] done # $ $ ./test4.sh & [1] 3231 $ 当&符放到命令后

  • 计算机图形学MFC 实现2021-12-04 20:07:08

    代码下载地址 觉得有帮助的给个star SudaCgMFC 介绍 计算机图形学课程实验 包含二维点类三维点类的建立,面类,二维变换, 三维变换,zbuffer,背面剔除,反走样划线, 颜色填充,模型数据文件读入 开源协议 MIT License 软件架构说明 ├── Readme.md ├── LICENSE ├── .gitignore ├

  • 山东大学 2020级数据库系统 实验四2021-10-02 14:31:23

    What’s more 山东大学 2020级数据库系统 实验一 山东大学 2020级数据库系统 实验二 山东大学 2020级数据库系统 实验三 山东大学 2020级数据库系统 实验四 山东大学 2020级数据库系统 实验五 山东大学 2020级数据库系统 实验六 山东大学 2020级数据库系统 实验七 山东大学 2

  • 这是关于scala计算n的阶乘的表达式2021-09-28 14:31:44

    import scala.io.StdInobject test4 { def a(n:Double): Double={ if(n <= 1) return 1 n * a(n-1) } def main(args:Array[String]): Unit = { println("请输入整数:") val n:Double = StdIn.readDouble() println("The a of " + n

  • centos中释放缓存的方法2021-08-20 16:01:10

    释放缓存区内存的方法 a)清理pagecache(页面缓存) # echo 1 > /proc/sys/vm/drop_caches 或者 # sysctl -w vm.drop_caches=1 b)清理dentries(目录缓存)和inodes # echo 2 > /proc/sys/vm/drop_caches 或者 # sysctl -w vm.drop_caches=2 c)清理pagecache、dentries和inodes #

  • day05_05 shutil模块进行压缩2021-06-06 14:01:23

    __author__ = "Alex Li" import shutil f1 = open("本节笔记",encoding="utf-8") f2 = open("笔记2","w",encoding="utf-8") shutil.copyfileobj(f1,f2) shutil.copyfile("笔记2","笔记3") shutil

  • 命令行传参2021-04-24 21:04:06

    命令行传参 package test4; public class CommandLineParam { public static void main(String[] args) { for (int i=0; i<args.length; i++){ System.out.println("arg["+i+"]:"+args[i]); } } } 不能直接Java命令运行主类,

  • java异常处理2021-04-05 20:05:15

    刚看了一些博客,为了自己不会忘记异常所以我再自己写一篇博客让自己好好复习,如果一些不对的地方请大家指出。 异常处理其实不是什么难点,至少我现在是这样认为。 这就是java异常处理的类的结构,所以的异常都是继承了Throwable,以下有Error 和Exception我们一般在以后的开发中

  • Arrays.stream(xxx).forEach2021-03-16 10:32:43

    一直使用Java8 但是新特性却是没怎么用过,借此项目机会,用到的都记录下来。 使用案例: List<String> updList = new ArrayList<>(); List<String> delList = new ArrayList<>(); for (int i = 0; i < 1; i++) { String uu = "test1-test2-test3-test4";

  • vue 3.x 插槽v-slot升级table组件2021-01-27 19:33:41

    1.需求:iview的table组件提供了自定义列模板的方式,使用slot-scop,结构出我们需要的数据项,极大方便了我们的开发,现在我们用vue3.x的v-slot来升级这种自定义列模板的写法。 2.子组件,slot上命名每一项的数据的name,并定义属性传入对应的数据项 <template> <ul> <li v-

  • python中字符串的常用拼接2020-12-26 12:32:49

      1、 + 号拼接 >>> test1 = "abcd" >>> test2 = "opqr" >>> test3 = "xyzh" >>> test1 + test2 'abcdopqr' >>> test2 + test3 'opqrxyzh' >>> test2 + test1 + test

  • kafka consumer zookeeper is not a recognized option2020-12-07 21:01:52

    /kafka-console-consumer.sh --zookeeper 127.0.0.1:2181 --topic test4 都是坑系列,启动消费者,发现一直报错consumer zookeeper is not a recognized option,搜索了半天 发现这是老的命令行 新时代的命令行是:./kafka-console-consumer.sh --bootstrap-server 127.0.0.1:9092 --t

  • Stream常见操作2020-06-08 23:07:15

    一、Java Colletion按对象属性分组、分组汇总、过滤等操作示例 @Data public class PersonData { private String id; private String type; private String name; private int age; } 对象PersonData使用了Lombook的@Data注解。 import java.util.ArrayList;

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有