Difference between revisions of "Week 8"

From LMU BioDB 2024
Jump to navigation Jump to search
(Electronic Lab Notebook and Questions to Answer: clarify attribution)
(Electronic Lab Notebook and Questions to Answer: updated column names to reflect updated FDA database)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Under Construction}}
 
 
 
'''This journal entry is due on Thursday, March 14, at 12:01am Pacific time.'''
 
'''This journal entry is due on Thursday, March 14, at 12:01am Pacific time.'''
  
Line 94: Line 92:
 
''For the questions below, supply (a) the answer to the question and (b) the query that you used to answer the question.''
 
''For the questions below, supply (a) the answer to the question and (b) the query that you used to answer the question.''
 
# What are the names of the drug products that are administered in the ''form'' <code>INJECTABLE;INTRAVENOUS, SUBCUTANEOUS</code>?
 
# What are the names of the drug products that are administered in the ''form'' <code>INJECTABLE;INTRAVENOUS, SUBCUTANEOUS</code>?
# What are the names of the drug products whose active ingredient (''activeingred'') is <code>ATROPINE</code>?
+
# What are the names of the drug products whose active ingredient (''activeingredient'') is <code>ATROPINE</code>?
# In what ''form''s and ''dosage''s can the drug product named <code>BENADRYL</code> be administered?
+
# In what ''form''s and ''strength''s can the drug product named <code>BENADRYL</code> be administered?
 
# Which drug products have a name ''ending'' in <code>ESTROL</code>?
 
# Which drug products have a name ''ending'' in <code>ESTROL</code>?
 
# Produce a table listing all of the known values for the ''therapeutic_potential'' column in the ''application'' table and how many ''application'' records there are of each. (''Side note:'' The ''therapeutic_potential'' codes are explained in the ''ReviewClass_Lookup.txt'' file, in case you’re interested.)
 
# Produce a table listing all of the known values for the ''therapeutic_potential'' column in the ''application'' table and how many ''application'' records there are of each. (''Side note:'' The ''therapeutic_potential'' codes are explained in the ''ReviewClass_Lookup.txt'' file, in case you’re interested.)
 
# Produce a table listing all of the known values for the ''chemical_type'' column in the ''application'' table and how many ''application'' records there are of each. (''Side note:'' The ''chemical_type'' codes are explained in the ''ChemTypeLookup.txt'' file, in case you’re interested.)
 
# Produce a table listing all of the known values for the ''chemical_type'' column in the ''application'' table and how many ''application'' records there are of each. (''Side note:'' The ''chemical_type'' codes are explained in the ''ChemTypeLookup.txt'' file, in case you’re interested.)
# What are the names of the drug products that are sponsored (''sponsor applicant'' column) by <code>MERCK</code>?
+
# What are the names of the drug products that are sponsored (''sponsorname'' column) by <code>MERCK</code>?
# Which ''sponsor applicant'' companies have the text <code>LABS</code> in their names and have products whose active ingredients (''activeingred'') include ''both'' <code>ASPIRIN</code> and <code>CAFFEINE</code>?
+
# Which ''sponsorname'' companies have the text <code>LABS</code> in their names and have products whose active ingredients (''activeingred'') include ''both'' <code>ASPIRIN</code> and <code>CAFFEINE</code>?
 
# Also answer, would you have been able to answer these questions using the web interface that the FDA provides to this database ([https://www.accessdata.fda.gov/scripts/cder/daf/index.cfm Drugs@FDA?])
 
# Also answer, would you have been able to answer these questions using the web interface that the FDA provides to this database ([https://www.accessdata.fda.gov/scripts/cder/daf/index.cfm Drugs@FDA?])
 
  
 
==== Data and Files ====
 
==== Data and Files ====
Line 119: Line 116:
 
=== Read ===
 
=== Read ===
  
<!--
 
 
* Return to [http://www.bloomberg.com/graphics/2015-paul-ford-what-is-code/ “What is Code?”], now looking at these sections within Section 5, “The Time You Attended the E-mail Address Validation Meeting:”
 
* Return to [http://www.bloomberg.com/graphics/2015-paul-ford-what-is-code/ “What is Code?”], now looking at these sections within Section 5, “The Time You Attended the E-mail Address Validation Meeting:”
 
:5.1 What is the Relationship Between Code and Data?
 
:5.1 What is the Relationship Between Code and Data?
 
:5.2 Where Does Data Live?
 
:5.2 Where Does Data Live?
 
:5.3 The Language of White Collars
 
:5.3 The Language of White Collars
-->
 
  
 
=== Reflect ===
 
=== Reflect ===
  
<!--
 
 
# Based on what you have seen of the FDA database, do you feel that you have a better understanding of how the data mentioned in section 5.1 of ''What is Code?''—Spotify music, Fitbit exercise tracking, Twitter tweets, IRS tax returns, etc.—might look when stored on a computer?
 
# Based on what you have seen of the FDA database, do you feel that you have a better understanding of how the data mentioned in section 5.1 of ''What is Code?''—Spotify music, Fitbit exercise tracking, Twitter tweets, IRS tax returns, etc.—might look when stored on a computer?
-->
+
# Which part of this assignment made the most sense to you?
 +
# Which part of this assignment do you feel least confident about? 
 +
# What would you like to know more about?
  
 
[[Category:Assignment]]
 
[[Category:Assignment]]

Latest revision as of 14:51, 13 March 2024

This journal entry is due on Thursday, March 14, at 12:01am Pacific time.

Overview

The purpose of this assignment is:

  • To experience a real-world example of how raw data sets can be distributed and formatted
  • To get some practice with database queries using the graphical interface of MS Access

Individual Journal Assignment

  • Store this journal entry as "username Week 8" (i.e., this is the text to place between the square brackets when you link to this page).
  • Invoke your personal template that you created for the Week 1 Assignment on your individual journal entry page. Your template should provide the following set of navigation links:
    • Link to your user page.
    • Links to the weekly Assignment pages.
    • Links to your weekly Individual Journal entry pages.
    • Links to the weekly Class Journal pages.
    • The category "Journal Entry".

Homework Partners

You will work in groups of two for this week's assignment. Please sit next to your partner in class. You will be expected to consult with your partner, in order to complete the assignment. However, unless otherwise stated, each partner must submit his or her own work as the individual journal entry (direct copies of each other's work is not allowed). Homework partners for this week are:

  • Hailey & Andrew
  • Katie & Charlotte
  • Natalija & Dean

Preliminary Tasks

Turning on File Extensions in Windows 10

  • The Windows 10 operating systems defaults to hiding file extensions. To turn them back on, do the following:
    Folder Options window
    1. Go to the Search menu (circle icon) "File Explorer Options" in the search field. Select the result.
    2. When the File Explorer Options window appears, click on the View tab.
    3. Uncheck the box for "Hide extensions for known file types".
    4. Click the OK button.
  • The computers in Seaver 120 are are set to erase all custom user settings and restore the defaults once they have been restarted, so if you have done this previously, you might have to do it again.

Setting the Download Options for FireFox and Chrome

  • For Mozilla FireFox (122.0.1 or higher)
    • For this class we want to set the default download folder to "Desktop" and have Firefox ask each time a file is downloaded
      • Go to the Settings menu, General.
      • First, under the Files and Applications > Downloads section, next to "Save files to" click the "Browse" button, select the Desktop, and click the OK button.
      • Second, check the box next to "Always ask you where to save files"
  • For Google Chrome (Version 121.0.6167.162 or higher)
    • For this class we want to set the default download folder to "Desktop" and have Chrome ask each time a file is downloaded
    • Options set to default downloads to Desktop and to ask each time a file is downloaded
      • Go to Settings page, click on the "Downloads" menu item on the left hand side.
      • First, under the "Location" section, click the "Change" button, select the Desktop, and click the OK button.
      • Second, move the slider "Ask where to save each file before downloading" to the right to turn it on.

Decompressing Files in Windows

  • Files with the .zip extension are compressed files that need to be decompressed before using them.
  • Right-click on the file icon to open the context menu.
    • Select "Extract all".
    • Click the "Extract" button.

The FDA Drug Database

The United States Food and Drug Administration (FDA) provides, as a matter of public record, the full data set for its approved drugs at this website: http://www.fda.gov/Drugs/InformationOnDrugs/ucm079750.htm

The site includes both a link to the downloadable files (compressed in .zip format) and the schema (“entity relationship diagram”) for those files.

Using these files, what you have learned in the LinkedIn Learning tutorial, and additional information found in this wiki and on the aforementioned FDA website, do the following:

  1. Download and decompress the files.
  2. Import the data files into a Microsoft Access database you will create.
  3. Configure the fields in your tables to match the schema provided by the FDA (keys, datatypes).
  4. Set the relationships between your tables to match the schema provided by the FDA.
  5. Answer the questions below.

Electronic Lab Notebook and Questions to Answer

Complete your electronic notebook on your individual journal page. Your notebook entry should contain:

  • The purpose: what was the purpose of your investigations?
  • Your methods: what did you actually do? Give a step by step account for Tasks 1-4 listed above.
    • There should be enough detail provided so that you or another person could re-do it based solely on your notebook.
    • You may copy protocol instructions on your page and modify them as to what you actually did, as long as you provide appropriate attribution in your acknowledgments section.
    • Take advantage of the electronic nature of the notebook by providing screenshots, links to web pages, links to data, etc.
  • Your results: the answers to the questions below, plus any other results you gathered.
    • Usually it makes sense to embed your answers to the questions/results in the "methods" in the order in which you obtained them.
  • A scientific conclusion: what was your main finding for today's project? Did you fulfill the purpose? Why or why not?

Access SQL: basic concepts, vocabulary, and syntax

For your electronic lab notebook this week, do the following:

  1. Upload your zipped Microsoft Access FDA database to the wiki and link to it on your individual journal page.
  2. Write up the methods you used to create the database, load the tables, and write your first query.

For the questions below, supply (a) the answer to the question and (b) the query that you used to answer the question.

  1. What are the names of the drug products that are administered in the form INJECTABLE;INTRAVENOUS, SUBCUTANEOUS?
  2. What are the names of the drug products whose active ingredient (activeingredient) is ATROPINE?
  3. In what forms and strengths can the drug product named BENADRYL be administered?
  4. Which drug products have a name ending in ESTROL?
  5. Produce a table listing all of the known values for the therapeutic_potential column in the application table and how many application records there are of each. (Side note: The therapeutic_potential codes are explained in the ReviewClass_Lookup.txt file, in case you’re interested.)
  6. Produce a table listing all of the known values for the chemical_type column in the application table and how many application records there are of each. (Side note: The chemical_type codes are explained in the ChemTypeLookup.txt file, in case you’re interested.)
  7. What are the names of the drug products that are sponsored (sponsorname column) by MERCK?
  8. Which sponsorname companies have the text LABS in their names and have products whose active ingredients (activeingred) include both ASPIRIN and CAFFEINE?
  9. Also answer, would you have been able to answer these questions using the web interface that the FDA provides to this database (Drugs@FDA?)

Data and Files

  • References to data and files should be made within the methods and results section of your notebook.
  • In addition to these inline links, create a "Data and Files" section of your notebook to make a list of the files generated in this exercise. In particular, you will need to zip and upload a compressed version of your MS Access FDA drug database. Make sure that your filename contains your last name or username to distinguish it from databases created by other students in the class.

Shared Journal Assignment

  • Store your journal entry in the shared Class Journal Week 8 page. If this page does not exist yet, go ahead and create it (congratulations on getting in first :) )
  • Link to the Class Journal page from your user page (should be part of your template).
  • Link back from the Class Journal page to your user page.
  • Sign your portion of the journal with the standard wiki signature shortcut (~~~~).
  • Add the "Journal Entry" and "Shared" categories to the end of the wiki page (if someone has not already done so).

Read

  • Return to “What is Code?”, now looking at these sections within Section 5, “The Time You Attended the E-mail Address Validation Meeting:”
5.1 What is the Relationship Between Code and Data?
5.2 Where Does Data Live?
5.3 The Language of White Collars

Reflect

  1. Based on what you have seen of the FDA database, do you feel that you have a better understanding of how the data mentioned in section 5.1 of What is Code?—Spotify music, Fitbit exercise tracking, Twitter tweets, IRS tax returns, etc.—might look when stored on a computer?
  2. Which part of this assignment made the most sense to you?
  3. Which part of this assignment do you feel least confident about?
  4. What would you like to know more about?