Icon

05. Time Series - solution

Time Series Solution

Solution for "Time Series" exercise for advanced Life Science User Training - Extract granularities from a timestamp - Aggregate by time granularities - Calculate moving average - Calculate moving aggregation

Annotations and comments
  • Literature Search on Pubmed The goal of this exercise is to get all the publications associated to smallpox from the Pubmed Database and analyze how the number of publications have changed over time.
  • Activity I: Conversion and Filtering Convert publication dates to Date&Time format and filter for publication during 1970-2000
  • Step 1 Read the publications from smallpox.csv using the File Reader node
  • Step 2 Convert the publication date from string format to Date&Time format using the String to Date&Time node
  • Step 3 Filter for all publications from 1970-2000 using the Date&Time-based Row Filter
  • Activity II: Analyse Time Series Analyze the amount of publications related to smallpox over the last years
  • Step 1 The Component PubMed Document Extractor loads all publications associated to smallpox. The Document Data Extractor node extracts title, abstract, author and publication date for each publicaiton. The Column Filter node remove document and query from the data table.
  • Step 2 Use Extract Date&Time Fields to extract year to a separate column.
  • Step 3 Remove missing integer values using the Missing Value node. Use GroupBy node to group all publication per year and count the number of titles.
  • Step 4 Use the Moving Average node to calculate the average of the titles using the Center Gaussian with a Window of 9.
  • Step 5 Use the Moving Aggregation node to calculate the maximum of the titles using the central window of size 9.
  • smallpox.csv

Nodes

Extensions

Links