Pictures

From WormBaseWiki
Jump to navigationJump to search

links to relevant pages
Caltech documentation
Pictures


Picture Curation

The immediate goal of picture curation is to be able to obtain images of gene expression data from the literature and individual laboratories and display them in the WormBase gene expression page.

  • We want display images related to the temporal or spatial (e.g., tissue, subcellular, etc.) localization of any gene in a wild-type background with different data types
    • Reporter gene analysis
    • Antibody staining
    • In situ hybridization
    • RT-PCR
    • Western or Northern blot data

Pipeline

In the early phases of curation, pictures will be taken from open access journals (e.g. PLoS). During the process of PLoS image curation, other publishers will be contacted for obtaining copyright permissions.

The images should be saved and stored according to the following guidelines. The example shown below refers to a PLoS Biology paper but the rules of handling the pictures are universal and not "paper specific".


Overview

This is a mock page of the expression page for gene K07C11.4. We would like to see highlighted panel B and F with the figure capture describing the expression of the gene AND be able to access the original figure by clicking the "See original figure" button.

PictureH.png

Downloading and saving the images

Pictures are downloaded in TIFF format from the original paper.

PictureA.png


Pictures are saved with their original name in order to minimize editing from the curator. In this case the file is called “journal.pbio.0020352.g006”. The files are directly converted into JPEG. TIFF is not indicated as web display format. Avoid using special characters like ' * / in the file name.

The file is saved in a directory named after the WB paper ID. E.g.: WBPaper00024505, meaning that picture “journal.pbio.0020352.g006” has been downloaded from WBPaper00024505.


PictureB.png

These 2 numbers together WBPaper00024505_journal.pbio.0020352.g006 will be UNIQUE IDENTIFIERS of the object, that we call Picture object 1 (WBPicture000000001). The ID WBPicture000000001 will be the NAME of the object (?Picture) in the Picture Data Model.

The path WBPaper00024505_journal.pbio.0020352.g006 will define the SOURCE of the object in the Picture Data Model.

Now look at the picture above: In our WormBase expression pattern page we don’t want to display the whole picture because it contains information not pertinent to the expression data. We therefore need to CROP the 2 pictures depicting expression of the gene in the Wild Type. We want to have only panel B and F.

Each panel is cropped from the original picture in Photoshop and the files are saved as “journal.pbio.0020352.g006_B” “journal.pbio.0020352.g006_F” in the same directory as before: WBPaper00024505

PictureC.png


These will be respectively Picture object 2(WBPicture000000002) and Picture object 3 (WBPicture000000003).


To summarize till now:

Picture object 1: WBPicture000000001: WBPaper00024505_journal.pbio.0020352.g006

Picture object 2 WBPicture000000002: WBPaper00024505_journal.pbio.0020352.g006_B

Picture object 3: WBPicture000000003: WBPaper00024505_journal.pbio.0020352.g006_F

where WBPicture000000001 corresponds to the NAME of the object in the picture data model and WBPaper00024505_ journal.pbio.0020352.g006 corresponds to the SOURCE of the object in the Picture Data Model.

Question to web team: is it OK to keep the file names as proposed? -> Yes (Answer from TH october 6th)


At the same time, the text file associated with the entire figure WBPicture000000001, is saved with the same name as the figure -journal.pbio.0020352.g006- with a .doc extension. In this way we can make sure which figure legend goes with which picture. This .doc file is per se irrelevant for picture curation as the figure legend will be inserted in the "description" tag in the Picture Data Model.


PictureE1.png


Special case: what do I do when one single panel refers to multiple genes. E.g. In the example below, panel B displays the expression of 3 different genes. We will simply name the pictures Fig3_B1, Fig3_B2, Fig3_B3.


PictureG1.png

Let's go one step further...

Picture lineage

Picture object 1 is our PARENTAL IMAGE, we will display it only when the user will click on a “see original figure” link. Picture Objects 2 and 3 are our Daughter Images, which will be displayed on the gene expression page. See mock page below for a visual example:


PictureD1.png


We would like to keep the lineage relationship in order to know how images should be handled. In other words, we would like to know which image should be displayed in the expression pattern page and which should be displayed next to the "See original figure" link. For that purpose, in the Picture Data Model we have the "Image lineage" tag.


PictureK.png


There are cases in which parental image = daughter image. See picture below.


PictureL.png

Question to the web team: in this case is the Picture Data Model proposed sufficient to determine that this picture should be displayed as PARENTAL or DAUGHTER? Answer Yes


Picture size and format

All the pictures should be in JPEG format, if possible.

The picture size for thumbnails shown in the main gene expression page should be 200x200 pixels.

Picture size for the full view 600x600 pixels.

Picture size for the original file will be as big as needed.

NB: a note on 200x200 and 600x600 pixel size. This will not distort the pictures but just put a constraint on the maximum size of the thumbnail or the full image.

PictureM1.png


Generating 200x200px thumbnails

Thumbnails are generated using the freeware "ThumbsUp" (v4.4) a simple, drag-and-drop based utility to create thumbnails for a bunch of pictures and supports all image formats of Mac OS X and QuickTime (including PDF documents)<ref>http://www.macupdate.com/info.php/id/11898/thumbsup</ref>

Trials for automation have been done with Photoshop (automated image processor) and MacOSX (Automator -> creation of Thumbnail images). With Photoshop automator is NOT possible to save the thumbnails in the same folder. With MacOSX Automator is not possible to create thumbnails larger than 128px. ThumbsUp allows generation of 200x200 in the same folder where the original files are.

The file name for thumbnails is the same as the original picture with a _thumb suffix

Generating 600x600px full view

600x600 images are generated with photoshop (scripts -> image processor) and stored in a separate folder called nameofthejournal_600. For example PLoS_600. The architecture of the sub-folders is the same as the original. OICR should take the 600x600 full view files from here

Picture Data Model Proposal

////////////////////////////////////////////////////////////////////////////////////

?Picture      Description ?Text
              Source ?Text
              Image_lineage Crop_picture ?Picture XREF Cropped_from
                            Cropped_from ?Picture XREF Crop_picture
              Pick_me_to_call Text Text
              Expr_pattern ?Expr_pattern XREF Picture
              Remark ?Text #Evidence
              Cellular_component      ?GO_term      XREF Pictures  
              Anatomy_term ?Anatomy_term XREF Picture 
              Acknowledgements ?Text
              Database	?Database	?Database_field	?Accession_number 
              Reference ?Paper XREF Picture
///////////////////////////////////////////////////////////////////////////////////

Picture Data Model step by step explanation

Picture

Name of the picture object. E.g. WBPicture0000000001

Description

Figure legend

Source

For actual picture names. This is the name of the path leading to the picture file. The source includes the name of the directory where the picture comes from AND the name of the picture file. e.g. WBPaper00024505_journal.pbio.0020352.g006

Image Lineage

This is the picture object lineage. Large figures will be cropped into sections when they represent different data. We want to maintain the picture lineage -> by clicking on the "see original figure button" we want to access the entire image.

Pick_me_to_call

It is an XACE command to call the image. We will keep the Pick_me_to_call tag because there are over 1000 objects in the database that are using it.

Expr_pattern

For linking to Expr-pattern data. This will be the Expr_pattern object that is associated with the picture.

Remark

For curator notes this tag will be also used when the picture is coming from a lab and not from a publication. E.g. Picture provided by Ian Hope.

Cellular_component

This links to the GO term e.g. if a picture depicts sub-cellular localization

Anatomy_term

It will link the picture object directly to an Anatomy Object

Acknowledgments

It will be used to input information on permission/copyright. E.g. WormBase wishes to thank the journal Development for permission to reproduce figures from this article. Please note that this material may be protected by copyright.

Database

It will provide the external link to the journal granting the permission. E.g. http://dev.biologists.org/content/136/16/2837

Reference

For the source of the picture E.g.WBPaper12345678.

Draft OA for picture curation

Name "" // this will be the picture ID -> generate automatically upon entry

Descritpion "" // this will be figure legend -> big text

Source "" // this will be the actual picture name -> small text

Cropped_from "" this will only be used by the cropped images to indicate its mother picture -> small text

Expr_pattern "" // this relates to the Expr_pattern associated with the picture -> list expr_pattern associated with that WBPaper. It would be great to have an auto complete. If I put in the Expr_pattern ID it will autocomplete the WBPaper. File that has Expr_pattern <-> paper association is ExprWS221.ace received from Wen October, 22 2010

Remark "" // For other curator notes -> small text?

Cellular_component "" // For sub-cellular localization -> small text

Anatomy_term "" // It will link the picture object directly to an Anatomy Object -> multiontology. File that has Expr_pattern <-> Anatomy_term association is ExprWS221.ace received from Wen October, 22 2010

Acknowledgments "" // Information on permission/copyright ->I can create a document which will contain the name of the journal associated to the publisher associated to the type of acknowledgment for copyright permission. Juancarlos, which file format is preferred?

Database "" // It will give the external link to the journal for acknowledging grant permission (this is requested by most publishers) -> small text

Reference "" // This will record which paper this picture comes from -> ontology

   * text : text
   * bigtext : like longtext, but makes the text box expand when you click in it so you can see everything you've written
   * dropdown : few values
   * ontology : controlled vocabulary (tell me where they come from)
   * multiontology / multidropdown : (allows multiple values)
   * toggle : on / off, yes/no etc. 

Sample curation results for a parental image

Name "WBPicture0000000001"

Descritpion "(A) A portion of the promoter sequence of K07C11.4 from C. elegans (bottom) aligned with its ortholog from C. briggsae (top). Boxed regions show conserved predicted PHA-4 binding sites and Early-1 and Early-2 elements. Site-directed mutations that disrupt Early-1 and Early-2 (“E2 + E1 Mut”) are shown below their respective wild-type (“E2 + E1 WT”) sequence from K07C11.4. (B–E) Confocal images of mid-stage embryos expressing GFP under the control of the wild-type K07C11.4 promoter (B) or promoters with a mutation in Early-1 (C), Early-2 (D), or both Early-1 and Early-2 (E). Percentages are the fraction of transgenic embryos expressing GFP; the remainder of embryos do not express GFP. (F) Expression of the wild-type K07C11.4 reporter in a subset of somatic gonad cells in an L4 animal (arrowheads). (G) Mutation of the Early-1 element eliminates gonadal expression but does not strongly affect expression in other tissues, such as intestinal cells (arrows). Dashed lines indicate the outline of the developing pharynx."

Source "journal.pbio.0020352.g006"

Expr_pattern "Expr3097"

Remark ""

Cellular_component ""

Anatomy_term " WBbt:0005175 gonad

WBbt:0003681 pharynx

WBbt:0005772 intestine

Acknowledgments "Wormbase wishes to thank the journal Developmental Dynamics for permission to reproduce figures from this article. Please note that this material may be protected by copyright."

Reference "WBPaper00024505"

Sample curation results for a daughter image

Name "WBPicture0000000002"

Source "journal.pbio.0020352.g006_B"

Descritpion "Confocal images of mid-stage embryos expressing GFP under the control of the wild-type K07C11.4 promoter"

Cropped_from ""

Picture conversion

cd Desktop/WormBase/PLoS/Gene<tab>/ enterthis let me choose the directory from where I get the files

scp -r <directory_name I have chosen before> acedb@tazendra.caltech.edu:draciti/pictures/ enter I copy a folder and all its files into tazendra <enter password>

Open a new terminal

ssh acedb@tazendra.caltech.edu enter login into tazendra <enter password>

cd draciti/pictures/ enter this is the directory in tazendra where I will put my files cd <directory name> enter you can type ls for a list of files present in the directory igal2 -bigy 400 enter the program converts the pictures, bigy 400 is an arbitrary size for vertical pixels

ls -al it will list all the files present

If you want to open a new command window just press command+N on keyboard

the folder for getting the converted picures is called Incoming from Tazendra. We want to bring the files back: cd Desktop/Incoming\ from\ Tazendra/ enter

scp -r acedb@tazendra.caltech.edu:draciti/pictures/WBPaper00024399 . enter


(ssh = secure shell) (scp = secure copy

scp -r = recursive secure copy for directories)

(cd = change directory) pwd - show current directory