-
Notifications
You must be signed in to change notification settings - Fork 10
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
Refactor readers ix #251
base: refactor_readers_VIII
Are you sure you want to change the base?
Refactor readers ix #251
Conversation
@@ -251,115 +233,34 @@ def import_file(self, _file: str) -> pd.DataFrame: | |||
self._post_process() # here, libraryreader, diann, msfragger | |||
return self._psm_df | |||
|
|||
def _pre_process(self, df: pd.DataFrame) -> pd.DataFrame: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
has just been moved within the class
break | ||
# TODO: warn if there's more | ||
return mapped_columns | ||
def _pre_process(self, df: pd.DataFrame) -> pd.DataFrame: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming question: the original dataframe (the one loaded from disk) is sometimes referred to as df
sometimes as origin_df
.. any preferences? (or a third option?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
origin_df is better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
reorder some methods, rename, simplify