TC5.ids

Similar documents
Taro-cshプログラミングの応用.jt

PowerPoint Presentation

Microsoft PowerPoint - InfPro_I6.pptx

<4D F736F F F696E74202D E3F FC96E55F F554E CC8AEE D8EAF2E B8CDD8AB B83685D>

GNU Emacs GNU Emacs

bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows ˆ Windows10 64bit Wi

シェルスクリプトマガジン vol.30

Windows Cygwin Mac *1 Emacs Ruby ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2

情報処理概論(第二日目)

PowerPoint プレゼンテーション - 物理学情報処理演習

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

-2 gnuplot( ) j ( ) gnuplot /shell/myscript 1

X Window System X X &

2.4.7 \ AWK AWK......

情報の分析 1. Linux ツールの活用

情報処理概論(第二日目)

USP MAGAZINE 2014 August

スパコンに通じる並列プログラミングの基礎

スパコンに通じる並列プログラミングの基礎

Microsoft PowerPoint - JohoEnshuu06_07.ppt

273? C

UNIX とは? 1969 年 米国のベル研究所で開発されたオペレーティングシステム特徴 文字ベースの対話型 OS マルチユーザ 複数のユーザが同時に利用できる マルチタスク マルチプロセス 複数の処理を平行して行える タイムシェアリング 一定の時間に区切って処理を行う 複数の処理を平行しているよう

スパコンに通じる並列プログラミングの基礎

Microsoft PowerPoint - Borland C++ Compilerの使用方法(v1.1).ppt [互換モード]

GrADS の使い方 GrADS(Grid Analysis and Display System) は おもに 客観解析データのような格子点データを地図上に作図するために使われるアプリケーションです 全球スケールの気象を扱う分野で広く使われています GrADS は Unix 系の OS 上でよく利

リスト 1 1 <HTML> <HEAD> 3 <META http-equiv="content-type" content="text/html; charset=euc-jp"> 4 <TITLE> 住所の検索 </TITLE> 5 </HEAD> 6 <BODY> <FORM method=

syspro-0405.ppt

はじめに このドキュメントではftServerに関する障害調査を行う際に 必要となるログ データの取得方法を説明しています ログ データの取得には 初期解析用のデータの取得方法と 詳細な調査を行うときのデータ取得方法があります 特別な理由でOS 側のログが必要となった場合には RHELログの取得につ

2 Windows 10 *1 3 Linux 3.1 Windows Bash on Ubuntu on Windows cygwin MacOS Linux OS Ubuntu OS Linux OS 1 GUI Windows Explorer Mac Finder 1 GUI

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè11²ó

LAN Copyright c Daikoku Manabu This tutorial is licensed under a Creative Commons Attribution 2.1 Japan License

本 日 の 授 業 内 容 最 低 限 覚 えるべきUNIXコマンド pwd, ls, mkdir, cd, cp, rm, mv テキストエディタの 簡 単 な 使 い 方 テキストエディット, Jedit X,Emacs C 言 語 プログラミングの 初 歩 hello, world を 画 面

Unix * 3 PC 2 Linux, Mac *4 Windows Cygwin Cygwin gnuplot Cygwin unix emulator online gnuplot *5 matplotlib *6 SuperMongo *7 gnuplot gnuplot OS *8 Uni

シェルスクリプトマガジン Vol.24

tebiki00.dvi

unix15-script2_09.key

プログラミング演習Ⅱ ガイダンス

ファイルサーバー(Samba)構築ガイド

第 1 章ターミナルの使い方 Ubuntu の場合は同種のソフトウェアに 端末 という名前が付いていますが 本書では OS X に合わせて ターミナル と呼ぶことにします 端末を起動するには Dash *1 に対して term というキーワードを入力し 検索結果の中から 端末 を探してクリックします

untitled

Windows Powershell 入門

Open usp Tukubai ってなに? Open usp Tukubai は 売上データの処理や勘定系システムの構築に利用されているエンタープライズ向けの高性能コマンド群 usp Tukubai のオープンソース版です 業務で特によく使われるコマンドを選りすぐって Python で再実装したも

CL 2. (bash) 3. IRAF IRAF(Imaging Reduction and Analysis Facility) & Facility IRAF IRAF img (M81) : MT819[1-8].fits : MT869?.fits,

情報処理概論(第二日目)

LAN

Microsoft PowerPoint - 遺伝統計学夏の学校2018_Linux入門.pptx

Asterisk PBX 不正利用防止

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL 2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b

PowerPoint プレゼンテーション

I117 II I117 PROGRAMMING PRACTICE II SCRIPT LANGUAGE 1 Research Center for Advanced Computing Infrastructure (RCACI) / Yasuhiro Ohara

シェルスクリプトマガジン Vol27

Transcription:

% cp ~train00/.cshrc.iris ~ % cp ~train00/.alias.all ~ % exit UNIX の基本 シェルシステムとユーザの仲立ちをするプログラムであって ユーザが入力したコマンドを解釈して実行する Unix では文法によって sh 系と csh 系がある sh 系には sh, ash, zsh, bash などがある csh 系には csh, tcsh などがある

コマンドの基本構造 1% command [argument] $ command [argument] 1% や $ はプロンプトといい シェルがユーザにたいしてコマンド入力を受け付ける状態であることを示している 最初に実行しようとしているプログラムの名前 (command) を入力し 空白を入れてから引数 (argument) を入力し改行を入力するとプログラムが実行される プログラムは プログラムに応じて引数を解釈し処理を行う 入力する部分を Courier Bold で書き 場合によってかえる部分は下線を付した Courier であらわしている ファイルのコピー $ cp oldfile newfile ファイルの削除 $ rm file ディレクトリの作成 $ mkdir newdirectory ディレクトリの削除 $ rmdir emptydirectory $ rm -r directory ファイルの移動とファイル名の変更 $ mv file directory $ mv oldfile newfile コマンドの使い方を調べる $ man command ファイルの中身を見る小さいファイルの場合 $ cat file 大きいファイルの場合 $ less file スペースで 1 ページ進む b で 1 ページ戻る q で終了 h で使い方の説明が見られる先頭を見る $ head file 末尾を見る $ tail file

* > file file file >> file file file < file file * command1 command2 command1 command2 command1 command2

% cat > cuc2.uids >Protein ^D (Contro-l D; Control キーをおしながら d を押す ) % getuid_lists cuc2.blast.html >> cuc2.uids getuid_lists プログラムの内容は以下に示すようなものである #!/usr/local/bin/perl while($_!~ /gnificant/){ $_ = <>; } while($_ = <>){ s/^.*list_uids=// && s/&.*// && print $_; exit 0 if /<\/PRE>/; }

% clustalw_mp cuc2.fasta cuc2.aln cuc2.aln

13% tr -d \ < cuc2-cut.nx.phylip seq2mol > cuc2.mol 14% trn2sed cuc2.trn >cuc2.sed 15% sed -f cuc2.sed cuc2.mol > cuc.mol tr -d \ % cat `which trn2sed` #!/usr/local/bin/perl while($_=<>){ last if /TranslateTaxa/}; #skip head eof && die; while($_=<>){ last if /;/; #process each line chop; ($label,$content) = split; $label =~ s/\ //; $nlabel = $label;

} $nlabel =~ s/\./t/g; print s/^,$label, \$/,$nlabel, \t ; #process the content; $content =~ s/gi\ /GI:/g; $content =~ s/\ [^ +]*/ /g; $content =~ s/,//g; $content =~ s/\+/+ /g; $content =~ s/ $//; print $content, /\n ; 16% protml -D cuc.mol > cuc.d 17% njdist cuc.d >cuc.nj 18% protml -R cuc.mol njdist.tpl >cuc.nj.r njdist.tpl

begin paup; log file=nac-p.log replace=yes flushlog=yes start; set maxtrees=500000; set monitor=no; outgroup OsNAC8; hsearch addseq=random nreps=100 rseed=19 randomize=trees; roottrees; savetrees file = nac.nxtrees format = altnex; quit; end;

begin paup; end; log file=nac-p.log replace=yes flushlog=yes start; nac-p.log set maxtrees=500000; set monitor=no; nac-p.log outgroup OsNAC8; hsearch addseq=random nreps=100 rseed=19 randomize=trees; addseq=random nreps=100 rseed=19 randomize=trees; roottrees; savetrees file = nac.nxtrees format = altnex; nac.nxtrees cuc.nx % paup4 cuc.nx & nac-p.log % tail -f nac-p.log #NEXUS Begin trees; [Treefile saved Wed Dec 13 22:55:03 2000] [! >Data file = /net/ep3/home/tomoaki/nac.nx

> Number of trees retained = 45 > Time used = 00:01:55 (CPU time = 00:01:43.1) ] tree PAUP_1 = [&R] (( (((((((((T47425,BAB083371),BAA784171),AAB816681), AAC785261), (AC006580_1, (AAD144931,BAB113861))),(( (((BAB104721,OsNAC5),... AF281062_1), (T04663,AC006424_21)), ((T05084, BAA975301),(AC007767_30, (CAB777251, (T01940,T01942)))))),((T49145,BAB083271),AC006233_9),OsNAC8); tree PAUP_2 = [&R] (((((((((((T47425,BAB083371), BAA784171),AAB816681),AAC785261), (AC006580_1,(AAD144931,BAB113861))),( ((((BAB104721, OsNAC5), ((AC009273_9,... (AC007767_30, (AB777251,(T01940,T01942)))))),((T49145,BAB083271),AC006233_9), OsNAC8); % mkdir R % grep ^tree nac.nxtrees sed -e s/^tree.*] // split -1 -a2 - R/nac. % cd R % sh $ for i in * ; do echo 1 > $i.tpl ; cat $i >> $i.tpl; rm $i; done $ for i in *.tpl; do protml -R../cuc.mol $i >$i.r 2> $i.r.err; mv protml.tpl $i.r.tpl; mv protml.tre $i.r.tre; mv protml.eps $i.r.eps; done $ exit %

% cd.. % grep AIC nac10.r R/*.R sort -k 7 % makesed cuc2.genpept >cuc2.sed % sed -f cuc2.sed protml.eps > cuc.eps

#!/usr/local/bin/perl print #!/usr/bin/sed -f\n ; while( $_ = <>) { if (/^LOCUS/){ ($dummy,$locus) = split; } if (s/^definition//){ chop; s;/;\\/;g; s/\(/[[/g; s/\)/]]/g; $def=$_;} if (/VERSION/) { ($v,$acc,$giname) = split; if(($giname!~ /GI:/) && ($Acc =~ /GI:/)){$giname = $Acc; $Acc= ;}; if($acc!~ /$locus/){ printf s/%s/%s %s, $giname, $locus, $Acc; }else{ printf s/%s/%s, $giname, $Acc; }}; if (s/organism//){chop; $organism = $_; ($genus,$species)=split; $organism =~ s/^\s*//; $def =~ s/$organism//i; $def =~ s/$genus $species//g; $def =~ s/$genus//g; if($organism =~ /Schizosaccharomyces/){ $def =~ s/fission yeast//g; } if($organism =~ /Drosophila/){ $def =~ s/fruit fly//g; } if($organism =~ /Mus/){ $def =~ s/mouse//g; } if($organism =~ /Xenopus/){ $def =~ s/african clawed frog//g; } $def =~ s/\[+\]+//g; $def =~ s/\[*$//; $def =~ s/?\.$//; $def =~ s/?\-$//; $def =~ s/[.,-]*$//; print $organism;print $def; # $_=<>; chop;print $_; # $_=<>;chop; print $_; print /\n ; # print #$genus\n ; }; }

% protml -R cuc.mol rerooted.tpl > cuc.rerooted.r % sed -f cuc2.sed protml.eps > cuc.rerooted.eps