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

Data Merge #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Data Merge #64

wants to merge 1 commit into from

Conversation

jaceybronte
Copy link
Member

This PR merges the two dfs from the collaborator to get a df with the proper rows and columns to be used in the RNAseq model

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@MikeLippincott MikeLippincott left a comment

Choose a reason for hiding this comment

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

LGTM, nice clean PR. Ready to merge!

# In[2]:


data_directory = "../7.collab-data/data/"
Copy link
Member

Choose a reason for hiding this comment

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

consider resolving this path

@@ -0,0 +1,77 @@
#!/usr/bin/env python
# coding: utf-8

Copy link
Member

Choose a reason for hiding this comment

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

Consider adding a markdown cell describing this file

rnaseq_df = rnaseq_df.set_index('GeneID') # Set the GeneID column as index in df2
rnaseq_df.index.name = 'Symbol (GeneID)' # Rename index to match the new column name

# Step 3: Map the Symbol (GeneID) values from df1 to df2 index
Copy link
Member

Choose a reason for hiding this comment

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

I like these step # documentation comments, the flow is nice.

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