TC5.ids

Similar documents
Microsoft PowerPoint - スハ?コン利用入門_ _UNIX利用の基礎知識.pptx

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


PowerPoint Presentation

Microsoft PowerPoint - InfPro_I6.pptx

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

練習 4 ディレクトリにあるファイルを直接指定する (cat) cat コマンドを使う (% cat ファイル名 ) と ファイルの内容を表示できた ファイル名のところにパス名を使い ディレクトリ名 / ファイル名 のように指定すると ディレクトリ内にあるファイルを直接指定できる 1 % cat _

PowerPoint Presentation

A

ソフトウェア基礎 Ⅰ Report#2 提出日 : 2009 年 8 月 11 日 所属 : 工学部情報工学科 学籍番号 : K 氏名 : 當銘孔太

160420c_unix.pptx

スライド 1

プレポスト【解説】

170420_unix.pptx

第 3 回情報基礎演習 UNIX / Linux: ファイルシステム シェルを理解しよう! 谷口貴志 Panda に login し 情報基礎演習クラスの VDI から Ubuntu に接続し Linux に login した後, 左 上の Activity 端末のアイオン をクリック 端末 を立ち

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

GNU Emacs GNU Emacs

kiso2-01.key

PowerPoint プレゼンテーション

/

フィルタとは

_unix_text_command.pptx

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

Linux サーバー構築 LINUX サーバー構築目次... 1 第 1 章 LINUX のインストール... 6 第 1 節 CentOS とは... 6 第 1 項 CentOS とは... 6 第 2 節 CentOS インストールの準備... 6 第 1 項 iso ファイルの入手... 6

これを調べるには pwd というコマンドを使います pwd とは print working directory の頭文 字をとったもので これから意味は明らかですよね 演習 1 (a) pwd を実行した結果を書け なお 立ち上げた直後の作業用ディレクトリのことをホー ムディレクトリ もしくは単に

( ) 1 Windows HTML ( ) ( ) ( ) WWW 10 ( )

シェルプログラミング コマンドをパイプでつなげるだけでは済まないような ある程度まとまった処理を複数のコマンドを制御構文を用いたりしてファイルとしたものを ( シェル ) スクリプトと呼ぶ シェルプログラム バッチなどともいう.bash_profile もシェルスクリプトなので このファイルを解読し

ネットワークシステム管理 #01

シェルスクリプトマガジン 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

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

スライド 1

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

OWI(Oracle Wait Interface)の概要

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

ネットワークシステム管理 #01

PowerPoint Presentation

X Window System X X &

UnixText2.pptx

sp8ct : 2 (1-3) UNIX Linux sp8ct/src make install sp8ct/bin SPring-8 pr47 /home/image/bin sp8ct/src Makefile Intel-C compiler Makefile GNU-C compiler

2.4.7 \ AWK AWK......

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

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

USP MAGAZINE 2014 August

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

Microsoft Word - FreeBSD

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

UNIX version Copyright c Daikoku Manabu 1 UNIX 1.1 UNIX UNIX UNIX OS Windows UNIX UNIX UN

Microsoft PowerPoint - JohoEnshuu06_07.ppt

273? C

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

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

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

kiso2-01.key

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

Microsoft PowerPoint - OOP.pptx

リスト 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

演習室の PC のハードディスクには演習で作成したデータは保管できません 各 PC の ネットワーク接続 ショートカットからメディア情報センターのサーバーにアクセスしてください (Z ドライブとして使用できます ) 講義で使うフォルダ 2/23

CentOSv2_furoku

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè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 を 画 面

演習室の PC のハードディスクには演習で作成したデータは保管できません 各 PC の ネットワーク接続 ショートカットからメディア情報センターのサーバーにアクセスしてください (Z ドライブとして使用できます ) Web プログラミング 1 CGI (3 章 ) 2012/6/12( 水 ) 講義

デュアルウェア講習会課題 5 会津大学講習会 簡単な IoT を作成 2018 The University of Aizu

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

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

第2回 基本(1)関数とリスト

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

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

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

slide5.pptx

untitled

Windows Powershell 入門

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

ユーザーズマニュアル

PowerPoint Presentation

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

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

LAN

PowerPoint プレゼンテーション

Microsoft PowerPoint ppt

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

平成12年度 計算機数学 火・1

05 I I / 56

untitled

Asterisk PBX 不正利用防止

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

多くのコマンドやソフトウェアは 1 なんらかの情報を受け取り 2 処理し 3 結果を出力する ( 前ページの図 ) cat の処理結果は端末ウィンドウに表示されるが これは cat が結果を標準出力に 吐き出した ( 出力した ) からである 通常 標準出力に吐き出された情報は端末ウィンドウ に表示

PowerPoint プレゼンテーション

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

OS

debug ( ) 1) ( ) 2) ( ) assert, printf ( ) Japan Advanced Institute of Science and Technology

シェルスクリプトマガジン 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