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

Feature Select Implementation to CytoPipe #6

Merged
merged 10 commits into from
May 13, 2022
Merged

Conversation

axiomcura
Copy link
Member

Hello @gwaygenomics

This PR focuses on the feature select implementation. The new files created in this PR are:

  • consensus.py
  • feature_select.py
  • feature_select.smk

@axiomcura axiomcura added the enhancement New feature or request label May 9, 2022
@axiomcura axiomcura requested a review from gwaybio May 9, 2022 18:33
Copy link
Member

@gwaybio gwaybio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple minor comments. Once you address them all, feel free to merge!

configs/analysis_configs/feature_select_configs.yaml Outdated Show resolved Hide resolved
rules/feature_select.smk Outdated Show resolved Hide resolved

rule create_consensus:
input:
expand(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: beyond scope of this PR

sometimes we want to create consensus profiles from more than just feature selected files.

We may also want to perform feature selection on all profiles (instead of just by plate).

How would this work? (we can discuss later too, but just something to keep in mind)

Copy link
Member Author

@axiomcura axiomcura May 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrote it down on my notes ! I'll see what snakemake has to offer!

Based on my current knowledge this, seems this can be done at the configuration level. We can provide a flag indicating the types of consensus we want and the script can handle it.

In addition, I feel that the consensus step is general enough to create a modular function and call it when we are generating different consensus files.

scripts/consensus.py Outdated Show resolved Hide resolved
scripts/consensus.py Outdated Show resolved Hide resolved
scripts/consensus.py Outdated Show resolved Hide resolved
scripts/consensus.py Show resolved Hide resolved
scripts/feature_select.py Show resolved Hide resolved
@axiomcura axiomcura merged commit 638009d into WayScience:main May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants