{"id":1140,"date":"2023-05-02T13:09:30","date_gmt":"2023-05-02T13:09:30","guid":{"rendered":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/?p=1140"},"modified":"2024-05-08T15:11:47","modified_gmt":"2024-05-08T15:11:47","slug":"genomic-informatics-for-beginners-1","status":"publish","type":"post","link":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/?p=1140","title":{"rendered":"Genomic Informatics for Beginners #1"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Working with CLI &#8211; What you need to know<\/h2>\n\n\n\n<p>This is a summary of the lecture content for the course &#8216;Shotgun Sequencing &#8211; Principle and Experiments&#8217; in IGB, NCHU. This course module is designed to enable students with preliminary computer skills to use some of the bioinformatics software to perform analysis of genomic data. This part of the course will be conducted in a computer classroom, where each of the students will use a computer classroom PC (Windows) or their own laptop to log into a Linux server and learn to operate the computer using the CLI (command line interface). The operating system installed on the server is ubuntu Linux. There are pre-existing accounts for all students on the server.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">What is Linux? Why we use Linux?<\/h2>\n\n\n\n<p>About Ubuntu<\/p>\n\n\n\n<p>Use SSH (secure shell protocol) to login remotely<br>Multiuser computer OS<br>Client and Server<br>Port in computer networking<br>Shell &#8211; CLI prompt, the cursor, typing with the keyboard, &#8216;enter&#8217;<br>The disturbing &#8216;command not found&#8217;<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>$ echo \"Hello World\"<\/code><\/pre>\n\n\n\n<p>date  &#8211; print or set the system date and time<br>command options :  date -R<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>$ date -R<\/code><\/pre>\n\n\n\n<p>users &#8211;&nbsp; print the user names of users currently logged in to the current host<br>man &#8211; an interface to the system reference manuals<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Navigating the hierarchical directory system<\/h2>\n\n\n\n<p>Home directory (wiggle key &#8216;~&#8217;)<br>Root directory (\/)<br>Dot and Dot-dot (. and ..)<br>Path &#8211; absolute and relative paths<br>Get around in the directory system &#8211; pwd, cd, ls, auto completion and previous commands<br>Brief introduction on the common directories in Linux directory system &#8211; usr, bin, sbin, etc, lib,\u2026<br>More on the file attributes: ls -al<br>Binary and text files<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">To play with text files and shell scripts<\/h2>\n\n\n\n<p>create a file<br>vi &#8211; introducing the the text editor<br>why you should learn vi<br>the command mode, insert mode, and escape mode &#8211; (&#8216;esc&#8217;, &#8216;i&#8217;, and &#8216;esc&#8217; then &#8216;:&#8217;)<br>more vi practices &#8211; typing, moving the cursor, delete characters, remove a line, save file, quit vi.<br>Assignment &#8211; hello.sh<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>#!\/bin\/bash\necho \"Hello World!\"<\/code><\/pre>\n\n\n\n<p>Run your first script<br>About the #! (shebang) : which bash, sh text_filename.sh, .\/text_fileneme.sh<br>file attributes: chmod, chown<br>The concept of using scripts<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Keep your files and directories in order<\/h2>\n\n\n\n<p>File naming conventions <br>Copy, move, rename, deletion of files and directories &#8211; cp, mv, rm, rmdir, rm with options<br>The uses of * (star)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Working with CLI &#8211; What you need to know This is a summary of the lecture content for the course<\/p>\n","protected":false},"author":1,"featured_media":1700,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"no_sidebar_full_width","colormag_page_sidebar_layout":"no_sidebar","footnotes":""},"categories":[5],"tags":[31,18],"class_list":["post-1140","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-lecture-notes","tag-linux"],"magazineBlocksPostFeaturedMedia":{"thumbnail":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-150x150.jpg","medium":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-300x225.jpg","medium_large":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-768x576.jpg","large":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-1024x768.jpg","1536x1536":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-1536x1152.jpg","2048x2048":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5.jpg","colormag-highlighted-post":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-392x272.jpg","colormag-featured-post-medium":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-390x205.jpg","colormag-featured-post-small":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-130x90.jpg","colormag-featured-image":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-800x445.jpg","colormag-default-news":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-150x150.jpg","colormag-featured-image-large":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-1400x600.jpg"},"magazineBlocksPostAuthor":{"name":"onion","avatar":"https:\/\/secure.gravatar.com\/avatar\/a596197721c6296d27446d1377ed931e199d7d76ae4dedbebf95195b579de271?s=96&d=mm&r=g"},"magazineBlocksPostCommentsNumber":false,"magazineBlocksPostExcerpt":"Working with CLI &#8211; What you need to know This is a summary of the lecture content for the course","magazineBlocksPostCategories":["blog"],"magazineBlocksPostViewCount":34,"magazineBlocksPostReadTime":2,"magazine_blocks_featured_image_url":{"full":["https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5.jpg",1600,1200,false],"medium":["https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-300x225.jpg",300,225,true],"thumbnail":["https:\/\/megagenome.nchu.edu.tw\/wordpress\/wp-content\/uploads\/2024\/05\/blogheader-5-150x150.jpg",150,150,true]},"magazine_blocks_author":{"display_name":"onion","author_link":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/?author=1"},"magazine_blocks_comment":0,"magazine_blocks_author_image":"https:\/\/secure.gravatar.com\/avatar\/a596197721c6296d27446d1377ed931e199d7d76ae4dedbebf95195b579de271?s=96&d=mm&r=g","magazine_blocks_category":"<a href=\"#\" class=\"category-link category-link-5\">blog<\/a>","_links":{"self":[{"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1140"}],"version-history":[{"count":19,"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1140\/revisions"}],"predecessor-version":[{"id":1229,"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1140\/revisions\/1229"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/1700"}],"wp:attachment":[{"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/megagenome.nchu.edu.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}