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

beta correlations #7

Merged
merged 4 commits into from
Jul 5, 2017
Merged

Conversation

antgonza
Copy link
Member

@antgonza antgonza commented Jul 5, 2017

No description provided.

Copy link
Contributor

@josenavas josenavas left a comment

Choose a reason for hiding this comment

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

A couple more comments in here, which should simplify the code.

opt_params = {'m-metadata-category': ('string', ''),
'p-method': ['choice:["spearman", "pearson"]', 'spearman'],
'p-permutations': ('integer', 999)}
# outputs = {'qiime2-visualization': 'qiime2-visualization'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove commented code

@@ -9,6 +9,8 @@
from os import mkdir
from os.path import join, exists

import pandas as pd

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove empty line


# Define the beta_correlation command
req_params = {'i-distance-matrix': ('artifact', ['distance_matrix']),
'm-metadata-file': ('artifact', ['BIOM'])}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a bit confused about requesting a BIOM for the metadata-file. I would not request any metadata here, and I will ask the analysis of the artifact for the metadata.

artifact_info = qclient.get("/qiita_db/artifacts/%s/" % artifact_id)
dm_fp = artifact_info['files']['plain_text'][0]
dm_qza = join(out_dir, 'q2-distance.qza')
analysis_id = parameters['m-metadata-file']
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this, in the artifact_info dict above, there should be the entry "analysis" which contains the analysis id.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 95.016% when pulling aee4a91 on antgonza:beta-correlation into 49f9629 on qiita-spots:master.

@josenavas josenavas merged commit 9b21513 into qiita-spots:master Jul 5, 2017
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.

3 participants