SlideShare a Scribd company logo
1 of 13
What is bioinformatics?
Adapting the VU template to
Drupal: the CCSB@V.
Jerome Jourquin, PhD MS
Quaranta Lab
Center for Cancer Systems Biology at Vanderbilt
Department of Cancer Biology
jerome.jourquin@vanderbilt.edu
What is bioinformatics?Why Drupal?
2
10/28/2010
2006
2007
2008
2009
2010
http://vicbc.vanderbilt.edu/ccsb
“Collaborative
website”
Center for Cancer
Systems Biology at
Vanderbilt (CCSB@V)
Vanderbilt Integrative Cancer
Biology Center (VICBC)
Quaranta Lab
iTumor
Protein
Expression
User’s Club
What is bioinformatics?The task at hands
3
10/28/2010
http://www.vanderbilt.edu/publicaffairs/webcomm/2010/05/vanderbilt-brand-bar/
http://www.vanderbilt.edu/publicaffairs/webcomm/2010/05/simple-template-files-released/
What is bioinformatics?Drupal theme engine
4
10/28/2010
http://drupal.org/node/171194
What is bioinformatics?
5
10/28/2010
What is bioinformatics?
6
10/28/2010
What is bioinformatics?
name = CCSB Theme
description = Based on 960.gs, this theme was developed for the Center for Cancer Systems Biology at Vanderbilt
University.
screenshot = screenshot.png
core = 6.x
base theme = ninesixty
stylesheets[all][] = ccsb_theme.css
stylesheets[all][] = featuredcontentglider.css
regions[firstlinks] = First Links
regions[secondlinks] = Second Links
regions[footer] = Footer
regions[left] = Left
regions[right] = Right
regions[content] = Content
regions[account] = Account
regions[links] = Links
regions[pictures] = Pictures
regions[over_text] = Over-Text
regions[develp] = Development
regions[calendar] = Mini Calendar
regions[frontpagelinks] = Frontpage Links
regions[frontcontact] = Frontpage Contact
ccsb_theme.info
7
10/28/2010
What is bioinformatics?
8
10/28/2010
What is bioinformatics?
9
10/28/2010
menu
calendar
views
menu
site title, slogan, account
page
cck
What is bioinformatics?Rendering the front page slideshow
10
10/28/2010
CCK
ImageField
ImageCache
ImageAPI
What is bioinformatics?Rendering the front page slideshow
11
10/28/2010
• CCK
• ImageField
• ImageCache
• ImageAPI
<div id="secslides" style="margin-top: -40px;"><div class="vslides"></
<script type="text/javascript" language="javascript">
/* <![CDATA[ */
$('.vslides').wwfvslides([
<?php
$slides = '';
foreach ($images as $key=>$value) { $slides .= "{
'backgroundImage': '".$images[$key]."',
'headline': '".$headlines[$key]."',
'thumbnail': '".$thumbnails[$key]."',
'href': '".$links[$key]."' },"; }
print $slides;
?>
])
/* ]]> */
</script>
</div><!-- /secslides -->
// dimension images: main 650*311, thumbnail: 76*57
$nodes = array();
$result = db_query("SELECT nid FROM {node} WHERE type = '%s'", 'frontpage_image');
while($row = db_fetch_object($result)) { $nodes[] = node_load($row->nid); }
$images = array(); $headlines = array(); $thumbnails = array(); $links = array();
foreach ($nodes as $object) {
$imagepath = $object->field_fpi_image[0]['filepath'];
$image = 'files/ccsb/'.$object->field_fpi_image[0]['filename'].'-image.jpg';
$thumbnail = 'files/ccsb/'.$object->field_fpi_image[0]['filename'].'-thumbnail.jpg';
$imageapi = imageapi_image_open($imagepath);
imageapi_image_scale_and_crop($imageapi, '650', '311');
imageapi_image_close($imageapi, $image);
$width = '0'; $height = '0';
$imageapi = imageapi_image_open($imagepath);
$width = $imageapi->info['width'];
$height = $imageapi->info['height'] * 650 / $imageapi->info['width'];
imageapi_image_scale($imageapi, '650');
imageapi_image_crop($imageapi, '250', ($height/2), '76', '57');
imageapi_image_close($imageapi, $thumbnail);
$images[] = $image; $thumbnails[] = $thumbnail;
What is bioinformatics?Drupal theme engine
12
10/28/2010
page-front.tpl.php
page.tpl.php
What is bioinformatics?
13
10/28/2010
http://pratul.in/drupal-makes-me-hapi

More Related Content

What's hot

Creation, Transformation, Dissemination and Preservation: Advocating for Scho...
Creation, Transformation, Dissemination and Preservation: Advocating for Scho...Creation, Transformation, Dissemination and Preservation: Advocating for Scho...
Creation, Transformation, Dissemination and Preservation: Advocating for Scho...
NASIG
 

What's hot (9)

Coursera Getting and Cleaning Data 2014
Coursera Getting and Cleaning Data 2014Coursera Getting and Cleaning Data 2014
Coursera Getting and Cleaning Data 2014
 
Hoten mot Wikipedia av Lennart Guldbrandsson
Hoten mot Wikipedia av Lennart GuldbrandssonHoten mot Wikipedia av Lennart Guldbrandsson
Hoten mot Wikipedia av Lennart Guldbrandsson
 
Mobile technology support for field research
Mobile technology support for field researchMobile technology support for field research
Mobile technology support for field research
 
Medinfo Panel Vse
Medinfo Panel VseMedinfo Panel Vse
Medinfo Panel Vse
 
A Strategy for Sharing Your Research: Make Your Work Open Access
A Strategy for Sharing Your Research: Make Your Work Open AccessA Strategy for Sharing Your Research: Make Your Work Open Access
A Strategy for Sharing Your Research: Make Your Work Open Access
 
Krewpanel Peter Slides D01
Krewpanel   Peter Slides D01Krewpanel   Peter Slides D01
Krewpanel Peter Slides D01
 
Evaluating Websites
Evaluating WebsitesEvaluating Websites
Evaluating Websites
 
Creation, Transformation, Dissemination and Preservation: Advocating for Scho...
Creation, Transformation, Dissemination and Preservation: Advocating for Scho...Creation, Transformation, Dissemination and Preservation: Advocating for Scho...
Creation, Transformation, Dissemination and Preservation: Advocating for Scho...
 
Open Access Publishing - The Journal of Medical Internet Research
Open Access Publishing - The Journal of Medical Internet ResearchOpen Access Publishing - The Journal of Medical Internet Research
Open Access Publishing - The Journal of Medical Internet Research
 

Viewers also liked

Drupal Open Source Everything
Drupal Open Source EverythingDrupal Open Source Everything
Drupal Open Source Everything
librarywebchic
 
Andrew Hoppin, CIO, NY State Senate
Andrew Hoppin, CIO, NY State SenateAndrew Hoppin, CIO, NY State Senate
Andrew Hoppin, CIO, NY State Senate
Acquia
 

Viewers also liked (12)

Drupal Open Source Everything
Drupal Open Source EverythingDrupal Open Source Everything
Drupal Open Source Everything
 
MIE Toolbox, a Case for Drupal as an Application Framework
MIE Toolbox, a Case for Drupal as an Application FrameworkMIE Toolbox, a Case for Drupal as an Application Framework
MIE Toolbox, a Case for Drupal as an Application Framework
 
Andrew Hoppin, CIO, NY State Senate
Andrew Hoppin, CIO, NY State SenateAndrew Hoppin, CIO, NY State Senate
Andrew Hoppin, CIO, NY State Senate
 
Display suite - Drupal.cat
Display suite - Drupal.catDisplay suite - Drupal.cat
Display suite - Drupal.cat
 
Drupal Recipe
Drupal RecipeDrupal Recipe
Drupal Recipe
 
Presentación sobre Display Suite en el Drupal Day Valencia 2012
Presentación sobre Display Suite en el Drupal Day Valencia 2012Presentación sobre Display Suite en el Drupal Day Valencia 2012
Presentación sobre Display Suite en el Drupal Day Valencia 2012
 
Intro to drupal
Intro to drupalIntro to drupal
Intro to drupal
 
Drupal at Vanderbilt: A Success Story
Drupal at Vanderbilt: A Success StoryDrupal at Vanderbilt: A Success Story
Drupal at Vanderbilt: A Success Story
 
Drupal 7
Drupal 7Drupal 7
Drupal 7
 
¿Qué es drupal?
¿Qué es drupal? ¿Qué es drupal?
¿Qué es drupal?
 
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerHype vs. Reality: The AI Explainer
Hype vs. Reality: The AI Explainer
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving Cars
 

Similar to Adapting the VU template to drupal

Similar to Adapting the VU template to drupal (20)

A Global Commons for Scientific Data: Molecules and Wikidata
A Global Commons for Scientific Data: Molecules and WikidataA Global Commons for Scientific Data: Molecules and Wikidata
A Global Commons for Scientific Data: Molecules and Wikidata
 
MOST: exploring differences between versions of models in BioModels and in th...
MOST: exploring differences between versions of models in BioModels and in th...MOST: exploring differences between versions of models in BioModels and in th...
MOST: exploring differences between versions of models in BioModels and in th...
 
Software Pipelines: The Good, The Bad and The Ugly
Software Pipelines: The Good, The Bad and The UglySoftware Pipelines: The Good, The Bad and The Ugly
Software Pipelines: The Good, The Bad and The Ugly
 
Data and model management in Systems Biology
Data and model management in Systems BiologyData and model management in Systems Biology
Data and model management in Systems Biology
 
COMBINE standards & tools: Getting model management right
COMBINE standards & tools: Getting model management rightCOMBINE standards & tools: Getting model management right
COMBINE standards & tools: Getting model management right
 
Digital pathology and biobanks
Digital pathology and biobanksDigital pathology and biobanks
Digital pathology and biobanks
 
Adding value to scientific results: COMBINE standards & guidelines for system...
Adding value to scientific results: COMBINE standards & guidelines for system...Adding value to scientific results: COMBINE standards & guidelines for system...
Adding value to scientific results: COMBINE standards & guidelines for system...
 
Informatics Principles of Modern Institutional Bio-banking: The Road Ahead
Informatics Principles of Modern Institutional Bio-banking: The Road AheadInformatics Principles of Modern Institutional Bio-banking: The Road Ahead
Informatics Principles of Modern Institutional Bio-banking: The Road Ahead
 
VCO Simulation with Cadence Spectre
VCO Simulation with Cadence SpectreVCO Simulation with Cadence Spectre
VCO Simulation with Cadence Spectre
 
Bioinformatics on internet
Bioinformatics on internetBioinformatics on internet
Bioinformatics on internet
 
Acting as Advocate? Seven steps for libraries in the data decade
Acting as Advocate? Seven steps for libraries in the data decadeActing as Advocate? Seven steps for libraries in the data decade
Acting as Advocate? Seven steps for libraries in the data decade
 
Model repositories and standard formats for model reusability
Model repositories and standard formats for model reusabilityModel repositories and standard formats for model reusability
Model repositories and standard formats for model reusability
 
QR Codes and Augmented Reality Help Libraries Extend Services
QR Codes and Augmented Reality Help LibrariesExtend Services QR Codes and Augmented Reality Help LibrariesExtend Services
QR Codes and Augmented Reality Help Libraries Extend Services
 
Bw dave pattern lidp
Bw dave pattern lidpBw dave pattern lidp
Bw dave pattern lidp
 
'A PAL's Life' for OMII-UK Board, May 2008
'A PAL's Life' for OMII-UK Board, May 2008'A PAL's Life' for OMII-UK Board, May 2008
'A PAL's Life' for OMII-UK Board, May 2008
 
Cancer uk 2015_module1_ouellette_ver02
Cancer uk 2015_module1_ouellette_ver02Cancer uk 2015_module1_ouellette_ver02
Cancer uk 2015_module1_ouellette_ver02
 
2016 ACS Semantic Approaches for Biochemical Knowledge Discovery
2016 ACS Semantic Approaches for Biochemical Knowledge Discovery2016 ACS Semantic Approaches for Biochemical Knowledge Discovery
2016 ACS Semantic Approaches for Biochemical Knowledge Discovery
 
2010 10 07 Octane Ofi Presentation
2010 10 07 Octane Ofi Presentation2010 10 07 Octane Ofi Presentation
2010 10 07 Octane Ofi Presentation
 
Wish you were here before!
Wish you were here before!Wish you were here before!
Wish you were here before!
 
Welcome to IWMW 2010
Welcome to IWMW 2010Welcome to IWMW 2010
Welcome to IWMW 2010
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Adapting the VU template to drupal

  • 1. What is bioinformatics? Adapting the VU template to Drupal: the CCSB@V. Jerome Jourquin, PhD MS Quaranta Lab Center for Cancer Systems Biology at Vanderbilt Department of Cancer Biology jerome.jourquin@vanderbilt.edu
  • 2. What is bioinformatics?Why Drupal? 2 10/28/2010 2006 2007 2008 2009 2010 http://vicbc.vanderbilt.edu/ccsb “Collaborative website” Center for Cancer Systems Biology at Vanderbilt (CCSB@V) Vanderbilt Integrative Cancer Biology Center (VICBC) Quaranta Lab iTumor Protein Expression User’s Club
  • 3. What is bioinformatics?The task at hands 3 10/28/2010 http://www.vanderbilt.edu/publicaffairs/webcomm/2010/05/vanderbilt-brand-bar/ http://www.vanderbilt.edu/publicaffairs/webcomm/2010/05/simple-template-files-released/
  • 4. What is bioinformatics?Drupal theme engine 4 10/28/2010 http://drupal.org/node/171194
  • 7. What is bioinformatics? name = CCSB Theme description = Based on 960.gs, this theme was developed for the Center for Cancer Systems Biology at Vanderbilt University. screenshot = screenshot.png core = 6.x base theme = ninesixty stylesheets[all][] = ccsb_theme.css stylesheets[all][] = featuredcontentglider.css regions[firstlinks] = First Links regions[secondlinks] = Second Links regions[footer] = Footer regions[left] = Left regions[right] = Right regions[content] = Content regions[account] = Account regions[links] = Links regions[pictures] = Pictures regions[over_text] = Over-Text regions[develp] = Development regions[calendar] = Mini Calendar regions[frontpagelinks] = Frontpage Links regions[frontcontact] = Frontpage Contact ccsb_theme.info 7 10/28/2010
  • 10. What is bioinformatics?Rendering the front page slideshow 10 10/28/2010 CCK ImageField ImageCache ImageAPI
  • 11. What is bioinformatics?Rendering the front page slideshow 11 10/28/2010 • CCK • ImageField • ImageCache • ImageAPI <div id="secslides" style="margin-top: -40px;"><div class="vslides"></ <script type="text/javascript" language="javascript"> /* <![CDATA[ */ $('.vslides').wwfvslides([ <?php $slides = ''; foreach ($images as $key=>$value) { $slides .= "{ 'backgroundImage': '".$images[$key]."', 'headline': '".$headlines[$key]."', 'thumbnail': '".$thumbnails[$key]."', 'href': '".$links[$key]."' },"; } print $slides; ?> ]) /* ]]> */ </script> </div><!-- /secslides --> // dimension images: main 650*311, thumbnail: 76*57 $nodes = array(); $result = db_query("SELECT nid FROM {node} WHERE type = '%s'", 'frontpage_image'); while($row = db_fetch_object($result)) { $nodes[] = node_load($row->nid); } $images = array(); $headlines = array(); $thumbnails = array(); $links = array(); foreach ($nodes as $object) { $imagepath = $object->field_fpi_image[0]['filepath']; $image = 'files/ccsb/'.$object->field_fpi_image[0]['filename'].'-image.jpg'; $thumbnail = 'files/ccsb/'.$object->field_fpi_image[0]['filename'].'-thumbnail.jpg'; $imageapi = imageapi_image_open($imagepath); imageapi_image_scale_and_crop($imageapi, '650', '311'); imageapi_image_close($imageapi, $image); $width = '0'; $height = '0'; $imageapi = imageapi_image_open($imagepath); $width = $imageapi->info['width']; $height = $imageapi->info['height'] * 650 / $imageapi->info['width']; imageapi_image_scale($imageapi, '650'); imageapi_image_crop($imageapi, '250', ($height/2), '76', '57'); imageapi_image_close($imageapi, $thumbnail); $images[] = $image; $thumbnails[] = $thumbnail;
  • 12. What is bioinformatics?Drupal theme engine 12 10/28/2010 page-front.tpl.php page.tpl.php