-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update heatcluster.py #36
Open
DrB-S
wants to merge
16
commits into
v1.1.0.20240131
Choose a base branch
from
v1.1.0.20240201
base: v1.1.0.20240131
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Removed shape from lines 75 & 76
Changed line 77 "if tabs > commas" to "if len(tabs) > len(commas)"
Change line 77 to determine whether comma or tab delimited with "if len(tabs.columns) > len(commas.columns):"
Removed "index_col=False" from lines 79 & 82
Commented out "logging.debug(df.to_string())". df.to_string is not valid in a LazyFrame
Removed check for melted matrix in lines 51-53.
"Dropped" first column by setting row_index_name=None in lines 79 & 82.
Line 102: #df.columns = df.columns.map(str) #df.columns.map doesn't work in Polars, so see it line 112 will work without it
Printing out header in lines 79 & 81 as a check.
Line 112: df.columns = df.columns.replace('|'.join(consensus_patterns), '', regex=True) # changed from df.columns.str.replace
Replaced line 112 with this: df.columns = list(map(lambda x: x.replace('|'.join(consensus_patterns), '', regex=True), df.columns))
Removed search/replace consensus_patterns in line 113
Removed line 118: #df = df.set_index(df.columns)
Examining unsorted df
Line 165: #df.replace([np.inf, -np.inf], np.nan)
#df.dropna() df.filter(~pl.all_horizontal(pl.all().is_null())).collect() #see if this works to drop rows with all nulls
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Removed shape from lines 75 & 76