Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a new species name to a database #5227

Closed
ch728 opened this issue Nov 22, 2024 · 2 comments
Closed

Adding a new species name to a database #5227

ch728 opened this issue Nov 22, 2024 · 2 comments
Assignees

Comments

@ch728
Copy link

ch728 commented Nov 22, 2024

I would like to add some species to my database. I assume I need to write a db patch to do this. What table needs to be modified? Thanks!

@ch728 ch728 changed the title Adding a new species to a database Adding a new species name to a database Nov 22, 2024
@lukasmueller
Copy link
Member

lukasmueller commented Dec 4, 2024

Hi Chris, you can really just insert it into the public.organism table.
These are the fields that you need:
Column | Type | Collation | Nullable | Default
------------------+------------------------+-----------+----------+-----------------------------------------------
organism_id | integer | | not null | nextval('organism_organism_id_seq'::regclass)
abbreviation | character varying(255) | | |
genus | character varying(255) | | not null |
species | character varying(255) | | not null |
common_name | character varying(255) | | |
comment | text | | |
genbank_taxon_id | integer | | |
sgn_organism_id | integer | | |
obsolete | integer | | |

Abbreviation would be "S. lycopersicum", genus "Solanum", species "Solanum lycopersium", common_name "tomato and you can look up the genbank taxon id but it is not a required field.

So it would just be an

INSERT into public.organism (abbreviation, genus, species, common_name) values ('S. lycopersicum', 'Solanum', 'Solanum lycopersicum', 'tomato)

@ch728
Copy link
Author

ch728 commented Dec 4, 2024

Worked! Thank you Lucas.

@ch728 ch728 closed this as completed Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants