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

G unifrac #19

Merged
merged 13 commits into from
Aug 18, 2017
Merged

G unifrac #19

merged 13 commits into from
Aug 18, 2017

Conversation

wasade
Copy link
Member

@wasade wasade commented Aug 16, 2017

Depends on #14 and #18, merge those first

We currently validate a=1.0. The GUniFrac R package does not include tests unfortunately. Before merge, it would be good to include verification of a=0.0 and a=0.5. Note that a=0.0 is unweighted UniFrac only if the proportions are dichotomized.

@ElDeveloper
Copy link
Member

@wasade Can you update this branch with the latest version of master?

@wasade wasade mentioned this pull request Aug 17, 2017
@ElDeveloper
Copy link
Member

Can you update the branch again :\

pxb2bet

@wasade
Copy link
Member Author

wasade commented Aug 17, 2017

BAM BAM

Copy link
Member

@ElDeveloper ElDeveloper left a comment

Choose a reason for hiding this comment

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

Looks good, just a couple questions and suggestions.

'the table.')
},
outputs=[('distance_matrix', DistanceMatrix % Properties('phylogenetic'))],
name='Wweighted normalized UniFrac',
Copy link
Member

Choose a reason for hiding this comment

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

Wweighted -> Weighted 🏋️ 🏋️‍♀️

description=('This method computes weighted unnormalized UniFrac')
description=('This method computes weighted unnormalized UniFrac as '
'described in Lozupone et al. 2007 Appl Environ Microbiol; '
'DOI: 10.1128/AEM.01996-06')
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice to add the citation_text for all these papers, see for example:

https://github.com/qiime2/q2-emperor/blob/3acf6b7b643b2b64c4fb31862ec56f8a0363f91c/q2_emperor/plugin_setup.py#L22-L25

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! Isn't that at the plugin level though, and not at the method level? These citations are method specific

Copy link
Member

Choose a reason for hiding this comment

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

You are exactly right!

w_task_p.g_unifrac_alpha = 1.0;
su::unifrac(table, tree, su::generalized, w_strides, w_strides_total, &w_task_p);

// as computed by GUniFrac
Copy link
Member

Choose a reason for hiding this comment

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

For sanity in the future, might be a good idea to include package version that produced this output.

d0_task_p.g_unifrac_alpha = 0.0;
su::unifrac(table, tree, su::generalized, d0_strides, d0_strides_total, &d0_task_p);

// as computed by GUniFrac
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

const su::task_parameters* task_p) {

if(table.n_samples != task_p->n_samples) {
fprintf(stderr, "Task and table n_samples not equal\n");
Copy link
Member

Choose a reason for hiding this comment

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

What does this mean?

Copy link
Member Author

Choose a reason for hiding this comment

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

table is not passed into the kernels, so table->n_samples is not accessible without a lot of monkeying. This is just a sanity check that the task parameters reflect the table (loosely)

Copy link
Member

Choose a reason for hiding this comment

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

👍

unsigned int end,
unsigned int tid);
const task_parameters* task_p);
//void unweighted_unifrac(biom &table,
Copy link
Member

Choose a reason for hiding this comment

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

Can you remove these lines?

@ElDeveloper ElDeveloper merged commit 6966503 into master Aug 18, 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.

2 participants