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

Indices - add species richness estimators #420

Closed
GoogleCodeExporter opened this issue Mar 27, 2015 · 28 comments
Closed

Indices - add species richness estimators #420

GoogleCodeExporter opened this issue Mar 27, 2015 · 28 comments

Comments

@GoogleCodeExporter
Copy link

It would be useful to add some of the richness estimators as indices.  See the 
EstimateS software for more details.  
http://viceroy.eeb.uconn.edu/estimates/EstimateSPages/EstSUsersGuide/EstimateSUs
ersGuide.htm#Appendices


Original issue reported on code.google.com by shawnlaffan on 19 Nov 2013 at 5:18

@shawnlaffan shawnlaffan self-assigned this Apr 9, 2015
shawnlaffan added a commit that referenced this issue Apr 15, 2015
…Maybe this will avoid some of the merge conflicts.

Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>
shawnlaffan added a commit that referenced this issue Apr 15, 2015
Updates issue #420

The following conflicts were edited.  Most likely we will just cherry pick the RichnessEstimation.pm file into master when we merge it all back, rather than merge all the changes.

	bin/BiodiverseGUI.pl
	bin/run_randomisation.pl
	etc/pp/build.pl
	etc/versions.txt
	example_scripts/import_rasters_and_analyse.pl
	lib/Biodiverse/BaseData.pm
	lib/Biodiverse/BaseStruct.pm
	lib/Biodiverse/Common.pm
	lib/Biodiverse/GUI/BasedataImport.pm
	lib/Biodiverse/GUI/Callbacks.pm
	lib/Biodiverse/GUI/Help.pm
	lib/Biodiverse/GUI/MatrixGrid.pm
	lib/Biodiverse/GUI/Project.pm
	lib/Biodiverse/GUI/Tabs/Labels.pm
	lib/Biodiverse/GUI/Tabs/Tab.pm
	lib/Biodiverse/Indices.pm
	lib/Biodiverse/Indices/PhyloCom.pm
	lib/Biodiverse/Indices/Phylogenetic.pm
	lib/Biodiverse/Indices/PhylogeneticRelative.pm
	lib/Biodiverse/Randomise.pm
	lib/Biodiverse/ReadNexus.pm
	lib/Biodiverse/Statistics.pm
	lib/Biodiverse/Tree.pm
	lib/Biodiverse/TreeNode.pm
	t/13-Tree.t
	t/lib/Biodiverse/TestHelpers.pm

Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>
shawnlaffan added a commit that referenced this issue Apr 10, 2016
shawnlaffan added a commit that referenced this issue Apr 10, 2016
@shawnlaffan
Copy link
Owner

This issue is now close to completed.
Need to decide whether or not to include the ACE and ICE variance estimators. The formulae can be taken from SpadeR.

shawnlaffan added a commit that referenced this issue Apr 20, 2016
Adapted directly from SpadeR, and completely untested at this stage.

Updates issue #420
shawnlaffan added a commit that referenced this issue Apr 25, 2016
We check for cases (Q1==0 && Q2>0), (Q1 > 0 && Q2==0) and (Q1==0 && Q2==0).

Flush out an error in the confidence interval logic by doing so.

Updates issue #420
shawnlaffan added a commit that referenced this issue Apr 25, 2016
As with the Chao2 calcs in 0e2fb57 we now check for cases (F1==0 && F2>0), (F1 > 0 && F2==0) and (F1==0 && F2==0).

Flushes out some errors with the variance calcs in the process.

Updates issue #420
shawnlaffan added a commit that referenced this issue Apr 28, 2016
Update the test expectations as appropriate.

Updates issue #420
shawnlaffan added a commit that referenced this issue Apr 28, 2016
shawnlaffan added a commit that referenced this issue Apr 28, 2016
shawnlaffan added a commit that referenced this issue Apr 28, 2016
Needs more testing to shake out the various permutations.

Updates issue #420
shawnlaffan added a commit that referenced this issue Apr 28, 2016
Updates issue #420

Still need to update the ICE code and conditions for the same cases.
shawnlaffan added a commit that referenced this issue Apr 30, 2016
… suffix for consistency

This enables some code simplification.

Updates issue #420
shawnlaffan added a commit that referenced this issue Apr 30, 2016
Next is to test for Q1==0 an Q2==0.

Updates issue #420
shawnlaffan added a commit that referenced this issue Apr 30, 2016
Cases include all singletons, not singletons, single cells.

Still need to add a test for richness = 0

Updates issue #420
shawnlaffan added a commit that referenced this issue Apr 30, 2016
This entailed adding a new method to calculate the number of non-empty groups, and associated tests.

updates issue #420
shawnlaffan added a commit that referenced this issue Apr 30, 2016
…ators'

Updates issue #420

# Conflicts were:
#	lib/Biodiverse/GUI/BasedataImport.pm
#	lib/Biodiverse/GUI/Exclusions.pm
#	lib/Biodiverse/GUI/Export.pm
#	lib/Biodiverse/GUI/GUIManager.pm
#	lib/Biodiverse/GUI/MatrixImport.pm
#	lib/Biodiverse/GUI/Overlays.pm
#	lib/Biodiverse/GUI/ParametersTable.pm
#	lib/Biodiverse/GUI/PhylogenyImport.pm
#	lib/Biodiverse/GUI/Popup.pm
#	lib/Biodiverse/GUI/ProgressDialog.pm
#	lib/Biodiverse/GUI/Tabs/Clustering.pm
#	lib/Biodiverse/GUI/Tabs/Labels.pm
#	lib/Biodiverse/GUI/Tabs/Outputs.pm
#	lib/Biodiverse/GUI/Tabs/Randomise.pm
#	lib/Biodiverse/GUI/Tabs/Spatial.pm
#	lib/Biodiverse/GUI/Tabs/SpatialMatrix.pm
#	lib/Biodiverse/GUI/YesNoCancel.pm
#	lib/Biodiverse/Indices.pm
#	lib/Biodiverse/Metadata/Indices.pm
#	lib/Biodiverse/SpatialConditions.pm
#	t/lib/Biodiverse/TestHelpers.pm
shawnlaffan added a commit that referenced this issue Apr 30, 2016
@shawnlaffan
Copy link
Owner

Now we really are close to completion.

SpadeR also gives coverage estimates and frequencies of rare species, so we could also add those if needed.

There are also the iChao estimators, but those could be added under their own issue.
http://onlinelibrary.wiley.com/doi/10.1111/biom.12200/abstract

@shawnlaffan shawnlaffan reopened this Apr 30, 2016
@shawnlaffan shawnlaffan added this to the Release_2.0 milestone Apr 30, 2016
@shawnlaffan
Copy link
Owner

Mark as closed.

The additional points in the last comment can be dealt with under new issues.

shawnlaffan added a commit that referenced this issue May 1, 2016
This also make sthe code consistent with EstimateS in terms of when it switches from ACE/ICE to Chao1/2.

Updates issue #420 (even though it is closed now)
shawnlaffan added a commit that referenced this issue May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants