Difference between revisions of "LookupTable Import Element From CSV FIle"

From Anote2Wiki
Jump to: navigation, search
(Configuration)
Line 14: Line 14:
 
== Configuration ==
 
== Configuration ==
  
 +
A graphical interface is launched that allows the user to select the file / view information about first lines and select General Delimiter,Text Delimiter, DefaultValue and column for add terms and for term class.
  
A graphical interface is launched that allows to select the file in the upper panel and define several loading options.
+
[[File:Lookup_Table_Update_CSV.png|800px|center]]
  
 +
* General Delimiter: overall file delimiter to split the contents of different columns (in Blue)
 +
* Text Delimiter: delimiter to encapsulate information (in green)
 +
* Default Value: Default value used to represent empty records; ( in orange )
 +
* Column Selection Options: select the column for terms and for term class (In violet)
  
 
[[File:Lookup_Table_Update_CSV_2.png|800px|center]]
 
[[File:Lookup_Table_Update_CSV_2.png|800px|center]]
 
 
Options:
 
* General Delimiter: overall file delimiter to split the contents of different columns
 
* Text Delimiter: delimiter to encapsulate information
 
* ExternalID Delimiter: delimiter for splitting External Ids present in the respective column.
 
* ExternalID Source Delimiter: delimiter for splitting External ID and respective source database.
 
* Column Options: select the column for terms
 
  
 
== Example ==
 
== Example ==

Revision as of 16:07, 16 January 2014

Operation

The application allows a set of terms to be imported into a lookup table from a file in the CSV format. The format of this file is quite flexible allowing several different configurations (see definitions and examples below). For that purpose, right click in the lookup table object and select Load Lookup Table (CVS File) in the Lookup Table sub-menu: Resources - Lookup Table-> Load Lookup Table (CVS File).


boarder


Configuration

A graphical interface is launched that allows the user to select the file / view information about first lines and select General Delimiter,Text Delimiter, DefaultValue and column for add terms and for term class.

Lookup Table Update CSV.png
  • General Delimiter: overall file delimiter to split the contents of different columns (in Blue)
  • Text Delimiter: delimiter to encapsulate information (in green)
  • Default Value: Default value used to represent empty records; ( in orange )
  • Column Selection Options: select the column for terms and for term class (In violet)
Lookup Table Update CSV 2.png

Example

Some examples :

Example

General delimiter: TAB ( \t )

text Delimiter: NONE

ExternalID Delimiter: Vertical Bar (|)

ExternalID Source Delimiter: ;


GRF1         Protein   KEGG;zma:542291|P49106;IntAct
GRF2         Protein   Q01526;SMR
ATPA         Protein   -
CYPLXXVIII   Protein   -

Result

In the end of this operation you can view a resources update report