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

collation module WIP #28

Merged
merged 26 commits into from
Nov 2, 2018
Merged

collation module WIP #28

merged 26 commits into from
Nov 2, 2018

Conversation

anupriyatripathi
Copy link
Collaborator

This PR adds a module to collate fingerprints if predicted by CSI:FingerID outside chemistree

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.

@anupriyatripathi. This looks good. I only have two requests:

  • Remove the collatefp function that exists in _fingerprint.py and replace it for a function call to the new collate_fingerprint function. This will avoid code replication. You should do the same for any tests that might be duplicated.

  • Create a new semantic type for the CSI results. While you can process data directly from a filepath, it is recommended that all data coming into a QIIME2 plugin be imported into an Artifact. Let me know if you need help doing this.

@coveralls
Copy link

coveralls commented Nov 1, 2018

Pull Request Test Coverage Report for Build 31

  • 36 of 38 (94.74%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.6%) to 95.597%

Changes Missing Coverage Covered Lines Changed/Added Lines %
q2_chemistree/_collate_fingerprint.py 25 26 96.15%
q2_chemistree/_semantics.py 3 4 75.0%
Totals Coverage Status
Change from base Build 23: -1.6%
Covered Lines: 119
Relevant Lines: 123

💛 - Coveralls

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 great, just a handful of minor comments!

Returns
-------
biom.Table
biom table containing mass-spec feature IDs (in rows) and molecular
Copy link
Member

Choose a reason for hiding this comment

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

rows -> observations

-------
biom.Table
biom table containing mass-spec feature IDs (in rows) and molecular
substructure IDs (in columns). Values are presence (1) or absence (0)
Copy link
Member

Choose a reason for hiding this comment

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

columns -> samples

@@ -32,10 +32,10 @@ def test_siriusBinaryPath(self):

def test_fingerprintOut(self):
with self.assertRaises(ValueError):
collatefp(self.emptycsi)
collate_fingerprint(self.emptycsi)
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 delete this and the next testing method?

@anupriyatripathi
Copy link
Collaborator Author

addressed :)

@ElDeveloper ElDeveloper merged commit 657e177 into biocore:master Nov 2, 2018
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