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

Make addSpecies optional also when using cut_its #372

Merged
merged 5 commits into from Jan 26, 2022

Conversation

jtangrot
Copy link
Contributor

PR checklist

  • This comment contains a description of changes (with reason).
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker).
  • CHANGELOG.md is updated.

Comment

This adresses issue #370
Option --skip_dada_addspecies was not compatible with --cut_its, but now this should be fixed.

@github-actions
Copy link

github-actions bot commented Jan 26, 2022

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 159b9da

+| ✅ 139 tests passed       |+
!| ❗   1 tests had warnings |!

❗ Test warnings:

✅ Tests passed:

Run details

  • nf-core/tools version 2.2
  • Run at 2022-01-26 12:13:06

Copy link
Collaborator

@d4straub d4straub 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 to me!
I have only comments/suggestions/questions that are optional, so I approve it right away.

CHANGELOG.md Outdated Show resolved Hide resolved
workflows/ampliseq.nf Show resolved Hide resolved
path(fastafile)
val(outfile)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be sort of more obvious and functional when

outfile = taxfile.replace("ASV_ITS_", "ASV_")
# Join taxonomy and full sequence, write to file
tax = tax.set_index('ASV_ID').join(seqs.set_index('id'), how='outer')
tax.to_csv(outfile, sep='\t',na_rep="", index_label="ASV_ID")

would actually use the value coming in here I think. But it works the way you are doing it right now I guess.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It works, but you are right. Thanks for the suggestion!

@jtangrot jtangrot merged commit 6c5569d into nf-core:dev Jan 26, 2022
@jtangrot jtangrot deleted the addspecies_optional branch January 26, 2022 13: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.

None yet

2 participants