Skip to content

Introduce quiet attribute to DeseqDataSet that is checked before printing status updates#146

Merged
BorisMuzellec merged 5 commits intoscverse:mainfrom
noamteyssier:introduce-quiet-feature-to-deseq2-method
Jul 17, 2023
Merged

Introduce quiet attribute to DeseqDataSet that is checked before printing status updates#146
BorisMuzellec merged 5 commits intoscverse:mainfrom
noamteyssier:introduce-quiet-feature-to-deseq2-method

Conversation

@noamteyssier
Copy link
Copy Markdown
Contributor

Reference Issue or PRs

This is in reference to issue #102, i.e. introducing a quiet parameter to suppress status updates.

What does your PR implement? Be specific.

  1. This introduces a self.quiet bool attribute to the DeseqDataSet class
  2. Functions that print first check if the self.quiet attribute is set and only print if so
  3. Print statements are routed to sys.stderr as opposed to stdout (this wasn't in the issue but I find this to be more standard for status updates like this)

@BorisMuzellec
Copy link
Copy Markdown
Collaborator

Hi @noamteyssier, thanks a lot for this PR, looks great!

To make this PR complete, it would be nice if you had the time to extend it to DeseqStats (in dds.py) as well. Happy to merge after that :)

@noamteyssier
Copy link
Copy Markdown
Contributor Author

No problem - just extended it to the DeseqStats class as well.

Copy link
Copy Markdown
Collaborator

@BorisMuzellec BorisMuzellec left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@BorisMuzellec BorisMuzellec merged commit c4f4b6b into scverse:main Jul 17, 2023
@BorisMuzellec BorisMuzellec mentioned this pull request Jul 17, 2023
@noamteyssier noamteyssier deleted the introduce-quiet-feature-to-deseq2-method branch July 17, 2023 14:42
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

Successfully merging this pull request may close these issues.

2 participants