Project

General

Profile

« Previous | Next » 

Revision 10098

inputs/.NCBI/: added new-style import runscripts, which renamed the staging table columns to VegCore

View differences:

inputs/.NCBI/Source/run
1
#!/bin/bash -e
0 2

  
inputs/.NCBI/run
1
#!/bin/bash -e
2
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/datasrc_dir.run
0 3

  
inputs/.NCBI/nodes/run
1
#!/bin/bash -e
2
. "$(dirname "${BASH_SOURCE[0]}")"/../table.run
0 3

  
inputs/.NCBI/nodes/VegBIEN.csv
1
NCBI,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
parent tax_id,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_taxonlabel_set_parent_id/parent_id/taxonlabel/sourceaccessioncode,
3
parent tax_id,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/cond/_exists",
4
rank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/else/rank",
5
rank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/rank,
6
tax_id,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/sourceaccessioncode,
7
rank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonepithet/_if[@name=""if taxonomic name is epithet""]/cond/_alt:[2=true]/1/_taxonomic_name_is_epithet/rank",
8
name_txt,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonepithet/_if[@name=""if taxonomic name is epithet""]/then",
9
rank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then",
10
name_txt,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/3,
11
rank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/verbatimrank,
12
4,,** No join mapping for *4 ** 
13
5,,** No join mapping for *5 ** 
14
6,,** No join mapping for *6 ** 
15
7,,** No join mapping for *7 ** 
16
8,,** No join mapping for *8 ** 
17
9,,** No join mapping for *9 ** 
18
embl code,,** No join mapping for *embl code ** 
19
name class,,** No join mapping for *name class ** 
20
names.src.row_num,,** No join mapping for *names.src.row_num ** 
21
nodes.src.row_num,,** No join mapping for *nodes.src.row_num ** 
22
unique name,,** No join mapping for *unique name ** 
1
NCBI,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Filter; Comments,Comments
2
parentTaxonID,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/_taxonlabel_set_parent_id/parent_id/taxonlabel/sourceaccessioncode,
3
parentTaxonID,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/cond/_exists",
4
taxonRank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/else/rank",
5
taxonRank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/rank,
6
taxonID,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/sourceaccessioncode,
7
taxonRank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonepithet/_if[@name=""if taxonomic name is epithet""]/cond/_alt:[2=true]/1/_taxonomic_name_is_epithet/rank",
8
taxonNameOrEpithet,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonepithet/_if[@name=""if taxonomic name is epithet""]/then",
9
taxonRank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/5/_join_words/1/_if[@name=""if has infraspecificEpithet""]/then",
10
taxonNameOrEpithet,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/3,
11
taxonRank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/verbatimrank,
12
*4,,** No join mapping for *4 ** 
13
*5,,** No join mapping for *5 ** 
14
*6,,** No join mapping for *6 ** 
15
*7,,** No join mapping for *7 ** 
16
*8,,** No join mapping for *8 ** 
17
*9,,** No join mapping for *9 ** 
18
*embl code,,** No join mapping for *embl code ** 
19
*name class,,** No join mapping for *name class ** 
20
*names.src.row_num,,** No join mapping for *names.src.row_num ** 
21
*nodes.src.row_num,,** No join mapping for *nodes.src.row_num ** 
22
*unique name,,** No join mapping for *unique name ** 
inputs/.NCBI/nodes/test.xml.ref
14 14
                                        <taxonverbatim>
15 15
                                            <taxonlabel_id>
16 16
                                                <taxonlabel>
17
                                                    <_taxonlabel_set_parent_id><parent_id><taxonlabel><sourceaccessioncode>$parent tax_id</sourceaccessioncode></taxonlabel></parent_id></_taxonlabel_set_parent_id>
18
                                                    <rank>$rank</rank>
19
                                                    <sourceaccessioncode>$tax_id</sourceaccessioncode>
17
                                                    <_taxonlabel_set_parent_id><parent_id><taxonlabel><sourceaccessioncode>$parentTaxonID</sourceaccessioncode></taxonlabel></parent_id></_taxonlabel_set_parent_id>
18
                                                    <rank>$taxonRank</rank>
19
                                                    <sourceaccessioncode>$taxonID</sourceaccessioncode>
20 20
                                                    <taxonepithet>
21 21
                                                        <_if name="if taxonomic name is epithet">
22 22
                                                            <cond>
23 23
                                                                <_alt>
24 24
                                                                    <2>true</2>
25
                                                                    <1><_taxonomic_name_is_epithet><rank>$rank</rank></_taxonomic_name_is_epithet></1>
25
                                                                    <1><_taxonomic_name_is_epithet><rank>$taxonRank</rank></_taxonomic_name_is_epithet></1>
26 26
                                                                </_alt>
27 27
                                                            </cond>
28
                                                            <then>$name_txt</then>
28
                                                            <then>$taxonNameOrEpithet</then>
29 29
                                                        </_if>
30 30
                                                    </taxonepithet>
31
                                                    <taxonomicname>$name_txt</taxonomicname>
31
                                                    <taxonomicname>$taxonNameOrEpithet</taxonomicname>
32 32
                                                </taxonlabel>
33 33
                                            </taxonlabel_id>
34
                                            <verbatimrank>$rank</verbatimrank>
34
                                            <verbatimrank>$taxonRank</verbatimrank>
35 35
                                        </taxonverbatim>
36 36
                                    </taxonverbatim_id>
37 37
                                </taxondetermination>
inputs/.NCBI/table.run
1
#!/bin/bash -e
2
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/table.run
0 3

  
inputs/.NCBI/Makefile
1
include ../input.Makefile

Also available in: Unified diff