-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support for subsampling alignment to uniform coverage #17
Comments
Hi @IsmailM I'm glad you're finding the tool useful. Great question. I have some reservations around supporting BAM files as they are not quite as straightforward as fastq/a. For instance, there is the issue of reads having multiple entries in a BAM if there are secondary/supplementary alignments. I.e if the random subsample chooses a secondary alignment entry, should it also have to keep the primary alignment entry? In the meantime, as you say, your workaround would be the best solution. The added benefit of your solution is that you can apply filtering via Thank you for the feature request nonetheless. If, after discussions, we decide BAM support is not going to happen, I would still very much appreciate input on a code snippet I could add to the README for others trying to do the same thing as you. |
@IsmailM I just came across VariantBam, which seems to do what you're after I think? |
I would also appreciate input on the code snippet for how to downsample from a bam and end up with a bam again (without re-aligning) :) |
Coincidentally, I have been thinking about this feature lately. Depending on how I go over the next few weeks I may look at implementing this feature. |
Okay, this is implemented in v1.0.0 in the subcommand |
Hey,
Great tool.
Are there any plans to support Bam files (which would then ideally output a downsampled bam file)?
At the moment, if I want to do this, I would need to:
samtools fasta -F 4
)As such would be a lot easier if Rausa could support BAM files :)
The text was updated successfully, but these errors were encountered: