Do you really need these two lines or can you your pcoa_results.species/eigvals within the code?