Riddhavee Kapadia
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Lab 1 Notes ### **Exercise 1** Your working directory, or where you do most of your coursework, is within the Unix Environment. >To connect to the BI278 Unix Environment, connect using the following command- *ssh rakapa25@bi278* You can view the nested directories within the Unix Environment in various ways. >You can use the following- > - *ls > - ls /home/colbyid > - ls .* > >And ~ signifies your location, which is /home/colbyid in this case >Also, to exit BI278, simply type *exit* You can access more information within each of these directories by using the following command. >*ls -lh* In order to navigate to your colbyhome or Personal Directory, type in the following command. >*ls home* The Colbyhome page can also be accessed by typing in the following. >*smb://filer.colby.edu* In order to actually navigate into the various directories, you have to use the following command. >*cd* and then make it *cd colbyhome* to enter your personal directory Enter the various directories directly by typing in the path. >* cd/personal/rakapa25 In order to find out which directory you're in, use the following command. >- *pwd* (print working directory) Try to name your files in one of the following ways, because Unix doesn't like spaces. >- my_documents >- my.documents >- myDocuments In order to create and edit new directories, you can use the following commands, as taken from the lab exercise sheet given to us in class. >*mkdir name*- make a directory named whatever you list after this command > >*rmdir name*- remove a specific directory, only works if it’s empty; must use *rm –r* if the directory is not empty > >*cp a b*- This command copies file a to b; can be used to not only change location but also filename at same time) > >*mv a b*- move a file from a to b; both a and b must be specified; also used for renaming files > >*rm*- rm whatever you list after it; cannot be reversed > >*cat*- concatenate, or print to screen the entire contents of a file as long as it is a text file > >*less filename*- This display the contents of a file one screen length at a time; use arrows to scroll up or down one line at a time; exit by typing q > >*head filename*- This commands print to the screen print to screen the top 10 lines of a file) > >*tail filename*- This commands print to the screen the bottom 10 lines of a file. > There are some commands that help navigating within the directories themselves. >- (.) this will navigate to your current location >- (..) this will navigate to one directory above your current location >- (~) home, this will take you to wherever folder you started when you connected to BI278 > - (*) this is a "wildcard" that will match any string of characters (A-z; 0-9; etc) and then you can change or move these files. > > *man command*- This allows us to access a manual for most Unix commands. > >*command --help* -This is a command that helps us learn about the properties of specific commands. ### **Exercise 2** Individual chromosomes/ contigs or genes are labeled in a FASTA file by the symbol: > The following functions help parse these files. > *grep pattern **filename*** -Find a specific pattern within a file > > *wc **filename*** -Count the words in a file; can be used to count lines (-l) or characters (-c) in a file > >*tr*- Translate or delete sets of characters > - *Nano*- A command to open up an editor within the Unix shell > - *Ctrl + X*- A command to close the editor > - *#!/bin/bash*- A command to indicate that its a bash shell script > - *sh your_script.sh fasta_filename*- This runs the commands in your bash shell script on the file |Organism|Strain|Contig count| Genome size(bp)|GC%| | -------- | -------- | ------------ | --- | --- | |P.agricolaris|baqs159|2 Whole Genome Shotgun Sequence |8721420 | 61.63% P.bonniea |bbqs859|2 Whole Genome Shotgun Sequence | 4098182 | 58.72%| P. bonniea |bbqs395 | 2 |4009285 |58.80% | P. bonniea |bbqs433 |2 |4013203 | 58.78%| P. fungorum |ATCC |3 |9058983 |61.75% | P. hayleyella| bhqs11| 2|4125700 |59.24% | P. hayleyella | bhqs21 |35 |4088512 |59.22%| P. hayleyella | bhqs155| 2|4118676 |59.24% | P. hayleyella | bhqs171| 35 |4088457 | 59.22%| P. hayleyella |bhqs69 |2 |4125852 |59.24% | P. hayleyella |bhqs22 |45 |4084312 |59.22% | P. hayleyella | bhqs23| 36 |4090401 |59.22% | P. hayleyella | bhqs530| 2 |4118722 |58.79% | P. sprentiae | WSM5005| 5 |4948909 |63.21% | P. terrae |DSM 17804 | 4 |6230535 | 61.92%| P. xenovorans | LB400 | 3 |9702951 | 62.63% |

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully