SrivastavaLab / cesabfunctionalwebsdata

Data cleaning and organization for CESAB FUNCTIONALWEBS papers
2 stars 1 forks source link

integrate the new trait table #6

Closed aammd closed 7 years ago

aammd commented 7 years ago

In order to get the new traits in, we must,

aammd commented 7 years ago

Alas! there is a problem. One important violation to the assumption that taxonomy reproduces traits is ontogeny. When adults and larvae have different traits (but the same species name), there are then two rows in the trait table -- one for the adult, and one for the larvae. There are also probably two rows in any bromeliad survey -- again, one, for adult and one for larvae. however, if we join by taxonomy alone we will have 2 x 2 = 4 rows, all for the same taxonomic species -- and worse, we do not know (without inspecting the data) which is the adult and which the larvae.

What is a good solution? One choice is possibly to add a new column: life stage. This column would have three levels (larval, adult or both). Note that this is different from the AS trait, which characterizes when a taxon is aquatic. Instead, this new column would say what life stages are included in this morphospecies. So it would normally be larva for most flies etc, but could be both for things with simple life history (e.g. leeches, ostracods) and either larvae or adult for those rare taxa which are present in both stages.

@cereghino @dsrivast any thoughts before I go through with this?

aammd commented 7 years ago

Another small issue -- we have identified that there are a lot of missing traits for Corethrellinae.

aammd commented 7 years ago

Before performing a merge on Taxonomy, should we take pains to confirm that the taxonomy is as accurate as possible? using for exampe rOpenSci's taxize?