biocore / qiime

Official QIIME 1 software repository. QIIME 2 (https://qiime2.org) has succeeded QIIME 1 as of January 2018.
GNU General Public License v2.0
286 stars 266 forks source link

transform_coordinate_matrices.py no samples overlap error #307

Closed josenavas closed 11 years ago

josenavas commented 12 years ago

If you pass as input to pcoa files that have no overlap of samples between them the script fails with the following error: Traceback (most recent call last): File "/Users/antoniog/svn_programs/qiime/scripts/transform_coordinate_matrices.py", line 130, in main() File "/Users/antoniog/svn_programs/qiime/scripts/transform_coordinate_matrices.py", line 97, in main max_dimensions=num_dimensions) File "/Users/antoniog/svn_programs/qiime/qiime/transform_coordinate_matrices.py", line 134, in get_procrustes_results coords1, coords2 = pad_coords_matrices(coords1,coords2) File "/Users/antoniog/svn_programs/qiime/qiime/transform_coordinate_matrices.py", line 92, in pad_coords_matrices coords1_len = coords1.shape[1] IndexError: tuple index out of range

It might be more useful to validate this and raise a more informative error

gregcaporaso commented 11 years ago

Fixed in pull request #471