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

Allow for naming differences in unbarcoded bam files from SMRT Link deplexing #482

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

ces
Copy link
Contributor

@ces ces commented Dec 5, 2024

Occasional re-deplexing is run via SMRT Link after lab errors are resolved e.g. data from instrument is not deplexed correctly.

In the output for SMRT Link deplexing files containing reads where the barcode is not determined (like tag zero in Illumina) were called movie_name.unbarcoded.bam but are now called movie_name.hifi_reads.unbarcoded.bam

@@ -400,7 +400,7 @@ sub _get_tag_name_from_fname {
sub _is_allowed_fname {
my ($self, $file, $fnames) = @_;
my @exists = grep { $file =~ m{[.] $_ [.]}smx } @{ $fnames };
return @exists == 1 ? 1 : 0;
return @exists >= 1 ? 1 : 0;
Copy link
Member

Choose a reason for hiding this comment

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

As we're already using List::AllUtils qw[any] I think it may read better when expressed as:

return any @exists;

rather than a ternary?

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