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

toggle functionality removed? #251

Closed
jpsmith5 opened this issue Apr 21, 2020 · 3 comments
Closed

toggle functionality removed? #251

jpsmith5 opened this issue Apr 21, 2020 · 3 comments

Comments

@jpsmith5
Copy link
Contributor

Did the toggle function get removed?

In testing, it no longer seems to be recognized. In this case, a column in the sample annotation file named toggle, with entries of either 0 or 1.

@stolarczyk
Copy link
Member

stolarczyk commented Apr 21, 2020

yes, I sort of unintentionally removed it because this came to my radar: pepkit/peppy#338

Current select samples functionality

select samples:
  This group of arguments lets you specify samples to use by exclusion OR
  inclusion of the samples attribute values.

  --selector-attribute SELECTOR_ATTRIBUTE
                        Specify the attribute for samples exclusion OR
                        inclusion
  --selector-exclude [SELECTOR_EXCLUDE [SELECTOR_EXCLUDE ...]]
                        Operate only on samples that either lack this
                        attribute value or for which this value is not in this
                        collection.
  --selector-include [SELECTOR_INCLUDE [SELECTOR_INCLUDE ...]]
                        Operate only on samples associated with these
                        attribute values; if not provided, all samples are
                        used.

is less flexible than toggle, but the new one could replace both in a nicer way.

what do you think @nsheff @jpsmith5 , do we bring toggle back or implement sample_filters? I think I like the latter a bit more.

@nsheff
Copy link
Contributor

nsheff commented Apr 21, 2020

dunno... the toggle idea is nice in a way because it persists. but that's also the problem with it... it requires a change to the sample sheet, which we should try to avoid...

@stolarczyk
Copy link
Member

stolarczyk commented Apr 21, 2020

in fact toggle sample attribute can an implied/derived/appended one (similar to pipeline_interface). This is probably how sample_filters woud work?

We could also keep the old toggle functionality and just follow the pipeline_interface example:

  1. make toggle a special attr
  2. allow to change it in looper:toggle_key

stolarczyk added a commit that referenced this issue Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants