小编Nik*_*ide的帖子

如何使用bash计算特定列的总和?

我想使用bash计算特定列的总和而不使用特定列的打印(我想保留管道的所有输出列,只将其中一个加起来!)

bash sum

6
推荐指数
1
解决办法
1万
查看次数

安装Bio :: DB :: Sam perl模块

我正在尝试Bio::DB::Sam在远程服务器上的主目录上安装perl模块.

我下载了模块,解压缩了文件,然后运行:

perl Build.pl prefix=~/local
Run Code Online (Sandbox Code Playgroud)

接下来会发生什么:

This module requires samtools 0.1.10 or higher (samtools.sourceforge.net).
Please enter the location of the bam.h and compiled libbam.a files: **/some_places/samtools-0.1.19**

Found /some_places/samtools-0.1.19/bam.h and /some_places/samtools-0.1.19/libbam.a.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Bio-SamTools' version '1.39'
Run Code Online (Sandbox Code Playgroud)

接下来当我尝试运行时:

./Build
Run Code Online (Sandbox Code Playgroud)

这就是我得到的:

  Building Bio-SamTools
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o blib/arch/auto/Bio/DB/Sam/Sam.so lib/Bio/DB/Sam.o c_bin/bam2bedgraph.o -L/some_places/samtools-0.1.19 -lbam -lpthread -lz
/usr/bin/ld: /some_places/samtools-0.1.19/libbam.a(bgzf.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when …
Run Code Online (Sandbox Code Playgroud)

installation perl module bioinformatics bioperl

6
推荐指数
1
解决办法
5554
查看次数

除了模式和接下来的n行之外,我怎样才能获得所有内容?

我有一个文件:

NAMES.DAT:

AAAA
BBBB
Run Code Online (Sandbox Code Playgroud)

text.dat:

AAAA
CTGCTTCGTCA
12127567612
BBBB
TCGACTACTAG
12331276318
CCCC
TCATCATACAT
23612763812
DDDD
GCTATCGCATC
23767263723
Run Code Online (Sandbox Code Playgroud)

我想要做的是(仅使用shell命令)从text.dat中排除这些行,这些行也存在于names.dat中,并且(最重要的是)在公共行之后有三行.

所以基本上输出应该看起来像是:

CCCC
TCATCATACAT
23612763812
DDDD
GCTATCGCATC
23767263723
Run Code Online (Sandbox Code Playgroud)

regex bash shell grep

1
推荐指数
1
解决办法
1077
查看次数

标签 统计

bash ×2

bioinformatics ×1

bioperl ×1

grep ×1

installation ×1

module ×1

perl ×1

regex ×1

shell ×1

sum ×1