Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

error if feature table samples aren't found in metadata #25

Closed
jairideout opened this issue Dec 29, 2017 · 12 comments · Fixed by #64
Closed

error if feature table samples aren't found in metadata #25

jairideout opened this issue Dec 29, 2017 · 12 comments · Fixed by #64
Labels
good first issue Good for newcomers help wanted Extra attention is needed type:bug Something is wrong.

Comments

@jairideout
Copy link
Member

An error should be raised if any sample IDs in the feature table aren't present in the sample metadata. This is to match the behavior in QIIME 1 and 2 where metadata IDs can be a superset of the table IDs, but every table ID must have corresponding metadata.

forum x-ref

@jairideout jairideout added the type:bug Something is wrong. label Dec 29, 2017
@thermokarst thermokarst added this to Triage (Automated) in 2018.4 via automation Feb 28, 2018
@ebolyen ebolyen moved this from Triage (Automated) to Week 4/2 in 2018.4 Feb 28, 2018
@thermokarst thermokarst added help wanted Extra attention is needed good first issue Good for newcomers labels Apr 2, 2018
@ebolyen ebolyen moved this from Week 4/2 to Community - Up For Grabs in 2018.4 Apr 2, 2018
@thermokarst thermokarst removed this from Community - Up For Grabs in 2018.4 May 1, 2018
@thermokarst thermokarst added this to Backlog (Automated) in 2018.6 via automation May 1, 2018
@thermokarst thermokarst moved this from Backlog (Automated) to Community - Up For Grabs in 2018.6 May 1, 2018
@mortonjt mortonjt mentioned this issue Aug 16, 2018
11 tasks
@Oddant1
Copy link
Member

Oddant1 commented Aug 2, 2019

Is this still a relevant issue? The error definitely isn't being raised, but it looks like all of the methods that even use metadata in gneiss are deprecated.

@thermokarst
Copy link
Contributor

@mortonjt
Copy link
Collaborator

mortonjt commented Aug 2, 2019

Thanks @thermokarst - yes this is still an outstanding issue

It'll boil down to something as follows here: https://github.com/qiime2/q2-gneiss/blob/master/q2_gneiss/cluster/_cluster.py#L93

difference = set(table.index) - set(gradient.index)
if difference and not ignore_missing_samples:
            raise KeyError("There are samples not included in the mapping "
                           "file. Override this error by using the "
                           "`ignore_missing_samples` argument. Offending "
                           "samples: %s"
                           % ', '.join(sorted([str(i) for i in difference])))

Concerning deprecation - the stats methods are being deprecated in favor of other differential abundance methods such as songbird and hopefully aldex2. CC @ggloor

@Oddant1
Copy link
Member

Oddant1 commented Aug 2, 2019

And this should be a thing in all q2-gneiss methods taking a Metadata or MetadataColumn as input?

@mortonjt
Copy link
Collaborator

mortonjt commented Aug 2, 2019 via email

@Oddant1
Copy link
Member

Oddant1 commented Aug 2, 2019

😆 those poor lonely deprecated methods

@Oddant1
Copy link
Member

Oddant1 commented Aug 2, 2019

I'm not finding any relevant methods other than gradient_clustering

@Oddant1
Copy link
Member

Oddant1 commented Aug 2, 2019

Also, do we want ignore_missing_samples arguments to be included in any relevant methods?

@mortonjt
Copy link
Collaborator

mortonjt commented Aug 2, 2019 via email

@mortonjt
Copy link
Collaborator

mortonjt commented Aug 2, 2019 via email

@Oddant1
Copy link
Member

Oddant1 commented Aug 2, 2019

Yeah I realized that after looking at it a bit more closely

@ggloor
Copy link

ggloor commented Aug 3, 2019

yes we are getting close to having ALDEx2 up and running inside QIIME2. https://github.com/dgiguer is just putting the finishing touches on this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers help wanted Extra attention is needed type:bug Something is wrong.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants