Classification of Organisms

Using a Digital Dichotomous Key

Step 1 - Creating a Checkpoint

Create a checkpoint by clicking File ==> Save and Checkpoint. If you make a major mistake, you can click File ==> Revert to Checkpoint to reset the Jupyter Notebook online on Binder.org.

Importing the Data

The next 2 blocks of code imports the data that we will need to examine the caracteristics of many different organisms. You can begin to execute the cells using Shift + Enter to import the data set and continue.


In [ ]:
# Import modules that contain functions we need
import pandas as pd
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt

In [ ]:
# Our data is the dichotomous key table and is defined as the word 'key'.
# key is set equal to the .csv file that is read by pandas.
# The .csv file must be in the same directory as the program.

#If the data is being pulled locally use the code that is commented out below
#key = pd.read_csv("Classification of Organisms- Jupyter Data.csv")
#key2 = pd.read_csv("Classification of Organisms- Jupyter Data KEY 2.csv")

key = pd.read_csv("https://gist.githubusercontent.com/GoodmanSciences/f4d51945a169ef3125234c57b878e058/raw/bebeaae8038f0b418ed37c2a98b82aa9d3cc38d1/Classification%2520of%2520Organisms-Jupyter%2520Data.csv")

key2 = pd.read_csv("https://gist.githubusercontent.com/GoodmanSciences/4060d993635e90cdcc46fe637c92ee37/raw/d9031747855b9762b239dea07a60254eaa6051f7/Classification%2520of%2520Organisms-%2520Jupyter%2520Data%2520KEY%25202.csv")

# This sets Organism as the index instead of numbers
#key = data.set_index("organism")

Pre-Questions

Using the information and video below and what you've learned in this unit, answer questions 1 & 2 in your coding booklet.

A Dichotomous Key is....

a tool that allows scienctists to identify and classify organisms in the natural world. Based on their characterists, scienctists can narrow down species into groups such as trees, flowers, mammals, reptiles, rocks, and fish. A Dichotomous Key can help to understand how scientists have classified organisms using Bionomial Nomenclature. You can find out more about Dichotomous Keys by watching this video. Dichotomous Key Video


In [ ]:
# Here is a helpful image of a sample Dichotomous Key!
from IPython.display import Image
from IPython.core.display import HTML 
Image(url= 'http://biology-igcse.weebly.com/uploads/1/5/0/7/15070316/8196495_orig.gif')

PART 1: Sorting Organisms by One Characteristic

We will be looking at the characterists of 75 unique organisms in our Dichotomous Key. The imput below will provide us with a some of the possible organisms you may discover and the different Organism Characteristics/Conditions in our data set.


In [ ]:
# Animal options in Dichotomous Key
# Displays all row titles as an array
key.organism

In [ ]:
# Conditions/Questions for finding the correct animal
# Displays all column titles as an array
key.columns

Use and modify the section of code below to answer questions 3-5 in your coding booklet.


In [ ]:
key[(key['fur'] == 'yes')]

PART 2: Sorting Organisms by Many Characteristics

These are the conditions or the characteristics in which ceratin answers are categorized for certain organisms. Each characteristic/condition has a yes/no except for the Kingdoms. Change the conditionals in the code below to change what organism(s) are displayed. For most, the only change needs to be the 'yes' or 'no'.

Capitalization matters so be careful. You also must put in only allowed answers in every condition or the code will break!

Use and modify the section of code below to answer questions 6-8 in your coding booklet.


In [ ]:
# This conditional allows us to query a column and if the data within that cell matches it will display the animal(s).
#if you are unsure of what to put try making that column a comment by adding # in front of it.

key[
#physical characteristics
    (key['fur'] == 'yes') & \
    (key['feathers'] == 'no') & \
    (key['poisonous'] == 'no') & \
    (key['scales'] == 'no') & \
    (key['multicellular'] == 'yes') & \
    (key['fins'] == 'no') & \
    (key['wings'] == 'no') & \
    (key['vertebrate'] == 'yes') & \
    
#environmental characteristics
    (key['marine'] == 'no') & \
    (key['terrestrial'] == 'yes') & \
    
#feeding characteristics
    
    #decomposers get their food by breaking down decaying organisms
    (key['decomposer'] == 'no') & \
    
    #carnivores get their food by eating animals
    (key['carnivore'] == 'no') & \
    
    #herbivores get their food by eating plants
    (key['herbivore'] == 'yes') & \
    
    #omnivores get their food by eating both plants and animals
    (key['omnivore'] == 'no') & \
    
    #photosynthesis is the process of making food using energy from sunlight
    (key['photosynthesis'] == 'no') & \
    
    #autotrophs are organisms that generate their own food inside themselves
    (key['autotroph'] == 'no') & \
    
#possible kingdoms include: animalia, plantae, fungi
    (key['kingdom'] == 'animalia') & \
   
#cell type     
    (key['eukaryotic'] == 'yes') & \
    (key['prokaryotic'] == 'no')
    ]

Part 3 & 4: Scientific Classification of Organisms & Unstructured Coding

Use and modify the section of code below to answer questions 9-13 in your coding booklet.


In [ ]:
#sort your organisms by their taxonomical classification

# This conditional allows us to query a column and if the data within that cell matches,
# it will display the corresponding animal(s)
key2[(key2['kingdom'] == 'animalia')]

In [ ]:
#Done?? Insert a image for one of the organisms you found using the dichotomous key.
from IPython.display import Image
from IPython.core.display import HTML 
Image(url= 'https://lms.mrc.ac.uk/wp-content/uploads/insert-pretty-picture-here1.jpg')