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

Added support for kraken2 #75

Merged
merged 5 commits into from
Apr 20, 2022
Merged

Conversation

charles-cowart
Copy link
Collaborator

Added support for kraken2. Multiple libraries are supported for minimap2 as well.

Added support for kraken2. Multiple libraries are supported for minimap2 as well.
@charles-cowart charles-cowart requested a review from antgonza April 16, 2022 00:16
@coveralls
Copy link

coveralls commented Apr 16, 2022

Pull Request Test Coverage Report for Build 2198481599

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 28 of 28 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.8%) to 79.91%

Totals Coverage Status
Change from base Build 2169281205: 0.8%
Covered Lines: 1079
Relevant Lines: 1267

💛 - Coveralls

Copy link
Contributor

@antgonza antgonza left a comment

Choose a reason for hiding this comment

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

Thank you @charles-cowart, looks good, a few question and I think we are missing a test for when the minimap2 command has more than 2 references, no? ... The test can be a direct call to _gen_chained_cmd, just to make sure that they are generated fine and we don't mess something up with future changes.

f' sr -t {self.nprocs} {self.mmi_db_path} - -a | '
f'{self.samtools_path} fastq -@ {self.nprocs} -f 12 -F '
f'256 -1 {path1} -2 {path2}')
result += (f' -l 100 -i {read1_input_path} -I {read2_input_path} -w '
Copy link
Contributor

Choose a reason for hiding this comment

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

@charles-cowar, could you open an issue to define the min length of the reads via the config file or somewhere else that is not hardcoded? Thank you.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done! #76

print("LAST LINE EXPECTED ##################")
print(config['last_line'])
print("##################")
print("LAST LINE: %s" % lines_obs[-1])
Copy link
Contributor

Choose a reason for hiding this comment

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

I think is fine to also remove the last print, no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

definitely. done!

@charles-cowart
Copy link
Collaborator Author

@antgonza unitest created for supplying multiple databases to minimap2 and kraken2

Copy link
Contributor

@antgonza antgonza 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, thank you.

@antgonza antgonza merged commit 32d7a94 into biocore:master Apr 20, 2022
@charles-cowart charles-cowart deleted the kraken2_revisited branch April 20, 2022 22:41
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