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

From Anote2Wiki
Jump to: navigation, search
 
(9 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
[[Category:HOWTOs]]
 
[[Category:HOWTOs]]
  
The user can import information from a CSV file (see examples below) to adding term to Lookup Table. For that user must press the '''right mouse button''' in dictionary data-type and select '''Update From CSV File''' option in Lookup Table sub-menu. '''Resources - Lookup Table-> Update From CSV File'''
+
== 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)'''.
 +
 
  
 
[[File:Lookup_Table_Update_CSV_1.png|1500px|boarder|center]]
 
[[File:Lookup_Table_Update_CSV_1.png|1500px|boarder|center]]
  
Appears a graphical interface that allows the user to select the CSV file and option.
+
 
 +
== Configuration ==
 +
 
 +
A graphical interface is launched that allows you to select the file / view information about the first lines and select General Delimiter,Text Delimiter, DefaultValue and column for adding terms and for term classes.
 +
 
 +
 
 +
[[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 in the file where terms and term classes are defined (In violet)
 +
 
  
 
[[File:Lookup_Table_Update_CSV_2.png|800px|center]]
 
[[File:Lookup_Table_Update_CSV_2.png|800px|center]]
  
Options:
 
  
* File: pressing the File button the user can browse and select csv file on your computer.
+
== Example ==
* General Delimiter: The overall file delimiter to separate the contents of columns
 
* Text Delimiter: The delimiter to encapsulate information
 
* ExternalID Delimiter: The delimiter for separate ExternalId present in a column.
 
* ExternalID Source Delimiter: The delimiter for separate ExternalID and Source.
 
* Column Options: Select the column indices in which appears interest terms (term, class, synonyms and external IDs)
 
  
The .csv file examples :
+
Some examples :
  
 
'''Example '''
 
'''Example '''
Line 26: Line 38:
  
 
''text Delimiter:'' NONE
 
''text Delimiter:'' NONE
 
''ExternalID Delimiter:'' Vertical Bar (|)
 
 
''ExternalID Source Delimiter: WHITE SPACE (;)
 
  
 
<pre>
 
<pre>
  
GRF1        Protein   KEGG;zma:542291|P49106;IntAct
+
GRF1        Protein
GRF2        Protein   Q01526;SMR
+
GRF2        Protein
ATPA        Protein   -
+
ATPA        Protein
CYPLXXVIII  Protein   -
+
CYPLXXVIII  Protein
  
 
</pre>
 
</pre>
  
In the end of this operation the user can view a [[Resources_Update_Report]]
+
== Result ==
 +
 
 +
In the end of this operation you can view a [[Resources_Update_Report| resources update report]]

Latest revision as of 11:46, 23 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 you to select the file / view information about the first lines and select General Delimiter,Text Delimiter, DefaultValue and column for adding terms and for term classes.


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 in the file where terms and term classes are defined (In violet)


Lookup Table Update CSV 2.png


Example

Some examples :

Example

General delimiter: TAB ( \t )

text Delimiter: NONE


GRF1         Protein
GRF2         Protein
ATPA         Protein
CYPLXXVIII   Protein

Result

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