Skip to content

Update HDF5AnnData to use common validation function - #79

Merged
rcannood merged 6 commits into
mainfrom
hdf5-validate
May 11, 2023
Merged

rcannood merged 6 commits into
mainfrom
hdf5-validate

Conversation

@lazappi

@lazappi lazappi commented May 10, 2023

Copy link
Copy Markdown
Collaborator

Related to #52

Also modifies them to:

  • Use the self$n_obs()/self$n_vars() methods
  • Add an option to check the number of rows in .validate_obsvar_dataframe()

@lazappi
lazappi requested a review from rcannood May 10, 2023 14:52

@rcannood rcannood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please fix linting issues ;)

Warning: file=R/AbstractAnnData.R,line=184,col=71,[trailing_whitespace_linter] Trailing whitespace is superfluous.
Warning: file=R/AbstractAnnData.R,line=187,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
Warning: file=R/AbstractAnnData.R,line=191,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
Warning: file=R/AbstractAnnData.R,line=193,col=23,[function_left_parentheses_linter] Remove spaces before the left parenthesis in a function call.
Warning: file=R/AbstractAnnData.R,line=197,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
Warning: file=R/AbstractAnnData.R,line=202,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
Warning: file=R/AbstractAnnData.R,line=219,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
Warning: file=R/AbstractAnnData.R,line=220,col=20,[function_left_parentheses_linter] Remove spaces before the left parenthesis in a function call.
Warning: file=R/AbstractAnnData.R,line=224,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
Warning: file=R/HDF5AnnData.R,line=58,col=66,[trailing_whitespace_linter] Trailing whitespace is superfluous.

@lazappi

lazappi commented May 10, 2023

Copy link
Copy Markdown
Collaborator Author

Please fix linting issues ;)

Done. I blame RStudio, for some reason it isn't stripping whitespace properly and {lintr} doesn't like the snippet for switch().

@rcannood rcannood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please fix linting issues 😊

Warning: file=R/AbstractAnnData.R,line=221,col=20,[function_left_parentheses_linter] Remove spaces before the left parenthesis in a function call.
Warning: file=R/HDF5AnnData.R,line=58,col=66,[trailing_whitespace_linter] Trailing whitespace is superfluous.

@rcannood

Copy link
Copy Markdown
Member

( I think you can use styler::style_pkg() to automatically solve most of the issues.)

@lazappi
lazappi requested a review from rcannood May 11, 2023 08:54
@rcannood
rcannood merged commit f8f5f6f into main May 11, 2023
lazappi added a commit that referenced this pull request May 11, 2023
* origin/main:
  Issue-59-suggestions (#80)
  Update `HDF5AnnData` to use common validation function (#79)
  implement from_SingleCellExperiment()
@rcannood
rcannood deleted the hdf5-validate branch July 5, 2023 10:37
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