FePhyFoFum / phlawd_db_editor

edit the databases used for pyphlawd
GNU General Public License v3.0
0 stars 0 forks source link

Create taxon function should take a (optional?) rank arg #4

Closed josephwb closed 5 years ago

josephwb commented 6 years ago

Self explanatory, I think.

# Create taxon
# create taxon (Order) Accipitriformes *** NOTE: create command does not currently take in a rank arg ***
python phlawd_db_editor.py -c Accipitriformes 66600001 -b ../PHLAWD_DBs/vrt_11July18.db
# creating Accipitriformes(66600002) to be a child of 66600001

# Check taxon
python phlawd_db_editor.py -i Accipitriformes -b ../PHLAWD_DBs/vrt_11July18.db
# opening logfile phlawd_db_editor.log
# connecting to ../PHLAWD_DBs/vrt_11July18.db
# id,name,parent_id,rank
# 66600002,Accipitriformes,66600001,None <- want this last to be Order
# closing ../PHLAWD_DBs/vrt_11July18.db

Not greatly important. More aesthetic?

josephwb commented 5 years ago

Added with e2b5538c31c66e7d33a7e2c0f2f085d4072ddb6d. Not optional, however.