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

Refactoring Pancancer Ras Analysis #82

Merged
merged 14 commits into from
Sep 25, 2018
Merged

Conversation

gwaybio
Copy link
Collaborator

@gwaybio gwaybio commented Sep 20, 2018

This is the first step referencing #77 - included in this PR are several, mostly minor, updates to the pancancer Ras analysis pipeline. Most of the changes are style updates. The next PR will include the actual files that are generated from a call to bash analysis.sh.

@gwaybio gwaybio requested a review from ypar September 20, 2018 13:52
@@ -43,8 +43,6 @@
default: False if flag omitted
--x_matrix string of which feature matrix to use
default: raw
--y_matrix string of which status matrix to use
Copy link

Choose a reason for hiding this comment

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

so y_matrix is always pancan_mutation_freeze? any reason for it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

pancan_mutation_freeze is a large sample by gene matrix indicating mutation status for all of TCGA. Previously, the functionality included using the data provided by xena. At the time, xena was open source TCGA, but the PanCanAtlas was embargoed (updated data, mutation calls, etc.). Now that TCGA is public, we will only provide the options to use this updated data.

In the future, it would be nice to allow updates to this matrix (i.e. a different way to define positive samples). For the sake of this PR being for refactoring, I will wait to introduce this feature in a new PR.

README.md Outdated


| `--x_matrix` | `raw` | if not "raw", then the filename storing the features |
| `--y_matrix` | `default` | can also be "xena" |
Copy link

Choose a reason for hiding this comment

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

is xena still an option?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nope, good point


# Ensure that the path is starting in the scripts directory
if not cwd.split('/')[-1] == 'scripts':
os.chdir(os.path.join(cwd, 'scripts'))
Copy link

Choose a reason for hiding this comment

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

maybe make scripts if non exists?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this file is in the scripts folder already

Copy link

Choose a reason for hiding this comment

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

ah. I was picturing that someone may use these scripts without your directory structure in place

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i think the error message that would occur in this scenario is sufficient.

Copy link

@ypar ypar left a comment

Choose a reason for hiding this comment

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

some minor comments (questions) inserted inline.

@gwaybio
Copy link
Collaborator Author

gwaybio commented Sep 24, 2018

Thanks for the comments/questions @ypar - updated README in 167ca7d

Copy link

@ypar ypar left a comment

Choose a reason for hiding this comment

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

lntm !

@gwaybio gwaybio merged commit eb61159 into greenelab:master Sep 25, 2018
@gwaybio gwaybio deleted the refactor branch September 25, 2018 17:46
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