-
Notifications
You must be signed in to change notification settings - Fork 841
wildcard expansion in vsearch bug fix #8307
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0cb5cef
wildcard expansion throwing an "arguments too long" error
tom-brekke 387aa5d
Merge pull request #1 from tom-brekke/tom-brekke-patch-1
tom-brekke 15c404c
added -type f to force find to only work on files
tom-brekke 7239818
Merge branch 'master' into master
Joon-Klaps 2be8570
Merge branch 'master' into master
tom-brekke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 would be consistent throughout, if you've had this issue with
--clusters
, others might have the same issue with--samout
. Also update that one no?Also is it a given that vsearch always append a single digit to the end of the file?
Might also be could to specify to find that we're looking for files with
-type f
?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 added in the
-type f
good call on that.The
--samout
bit doesn't use a wildcard expansion like the--clusters
does, so I think it should be ok as is. vsearch outputs many single-entry fastas, one for each centroid, whereas I believe that samtools makes a single multi-entry fasta so no wildcard expansion is needed. Happy to discuss further if I've missed something.vsearch does append digits to the end when that
--clusters
flag is set, starting with0
and counting up where there's one for each cluster centroid:So anchoring the regex with a final trailing digit does match all of those. The gzip then appends
.gz
and so the files end up looking likewhich will not be matched again as now they no longer end with a digit.
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.
Ok great, then it's good to go I believe!
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.
thank you!