-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
There was a problem hiding this 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.
qp_qiime2/__init__.py
Outdated
opt_params = {'m-metadata-category': ('string', ''), | ||
'p-method': ['choice:["spearman", "pearson"]', 'spearman'], | ||
'p-permutations': ('integer', 999)} | ||
# outputs = {'qiime2-visualization': 'qiime2-visualization'} |
There was a problem hiding this comment.
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 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty line
qp_qiime2/__init__.py
Outdated
|
||
# Define the beta_correlation command | ||
req_params = {'i-distance-matrix': ('artifact', ['distance_matrix']), | ||
'm-metadata-file': ('artifact', ['BIOM'])} |
There was a problem hiding this comment.
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.
qp_qiime2/qiime2.py
Outdated
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'] |
There was a problem hiding this comment.
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.
No description provided.