Linux Shell Gallery

extract 'keywords' sequences from fasta file


  1. cat uniprot_sprot.fasta | awk '{if(/exonuclease/) p=1; else if(/>/) { p=0; } if( p==1 ) {print $0;} }' > output.fasta
  2. zcat uniprot_sprot.fasta.gz | awk '{if(/exonuclease/) p=1; else if(/>/) { p=0; } if( p==1 ) {print $0;} }' > output.fasta

中国科学院上海生命科学研究院生物信息中心
(Bioinfomatics Center, Shanghai Institutes for Biological Sciences).
版权所有(All rights reserved).