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

Automate cancer-data download from figshare #42

Merged
merged 1 commit into from
Aug 31, 2016

Conversation

dhimmel
Copy link
Member

@dhimmel dhimmel commented Aug 31, 2016

1.download.ipynb queries the figshare API to find the latest versions of the files and downloads them.

Changes directory for storing downloaded data from data to download, following the convention of cognoma/cancer-data.

Add requests library to environment.

Add an execute script that executes notebooks in the root directory in order and exports them to scripts.

In algorithms, notebooks were not updated besides SGDClassifier-master.ipynb which is the example notebook and template for new implementations.

@dhimmel
Copy link
Member Author

dhimmel commented Aug 31, 2016

@gwaygenomics, based on whether #39 or this is merged first, one of us will have to do some extra work.

@@ -35,7 +35,7 @@
# In[3]:

# We're going to be building a 'TP53' classifier
GENE = 'TP53'
GENE = '7157' # TP53
Copy link
Member

Choose a reason for hiding this comment

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

Is algorithms/scripts/SGDClassifier-master.py the nbconverted 2.TCGA-MLexample.ipynb? It is difficult to compare the diffs between 1.TCGA-MLexample.ipynb and 2.TCGA-MLexample.ipynb

Copy link
Member Author

Choose a reason for hiding this comment

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

I had forgotten to delete scripts/1.TCGA-MLexample.py. I did a force push. Now see the diff for "scripts/1.TCGA-MLexample.py → scripts/2.TCGA-MLexample.py"

`1.download.ipynb` queries the figshare API to find the latest versions of the
files and downloads them.

Changes directory for storing downloaded data from `data` to `download`,
following the convention of cognoma/cancer-data.

Add `requests` library to environment.

Add an execute script that executes notebooks in the root directory in order
and exports them to scripts.

In `algorithms`, notebooks were not updated besides `SGDClassifier-master.ipynb`
which is the example notebook and template for new implementations.
@gwaybio
Copy link
Member

gwaybio commented Aug 31, 2016

LGTM - excited about the progress! I will now remove the download logic in #39

@dhimmel
Copy link
Member Author

dhimmel commented Aug 31, 2016

Okay will merge now. You will probably have to rebase your PR.

@dhimmel dhimmel merged commit 51b8ee6 into cognoma:master Aug 31, 2016
@dhimmel dhimmel deleted the figshare branch August 31, 2016 20: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