-
Notifications
You must be signed in to change notification settings - Fork 69
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
aligning basecalled bam file to genome #1244
Comments
Yes, of course. That's what we do here from the very beginning for better resource and parameter control .. make sure that you pass over all (relevant) tags from the input BAM ( samtools fastq \
--threads 8 \
-T "*" \
$uBAM \
| minimap2 \
--secondary=yes \
-2 \
-a \
-y \
-t 32 \
-K 2G \
-x map-ont \
$FA_REF \
- \
| samtools sort \
-m 2G \
--threads 8 \
-O BAM \
-o $BAM_ALN \
--write-index \
--reference $FA_REF \
- Then feed |
thanks, (1) I changed the "ubam" into fastq by preserving the mod tags using "-T" argument how to preserve the tags after genome alignment? |
Sure. You didn't mention DRS :-)
You wanted to align a basecalled BAM. What is "fastq" here?
How does your actual command (pipe) look like? |
the fastq is what we get after converting the basecalled bam into fastq using samtools. |
That's what the above command is actually doing. We do not store (intermediate) fastq files, so we just read the BAMs once, convert them on-the-fly to fastq and pipe the stream directly to But if you already have fastq data and you want to store them, then just take a quick look at the fastq header to see, if the methylation data (MM,ML tags) have been passed over to fastq ( If the fastq headers are okay, then make sure you have used |
okay, |
@baibhav-bioinfo - did it work for you? |
hello,
as there is already an option in Dorado to align the bascalled bam file to genome using minimap2. But as i can see there are limited number of options available in customising the commands of alignment.
So, if i align the reads separately using minimap2 and then use the aligned bam for subsequent analysis in modkit, will that be okay?
The text was updated successfully, but these errors were encountered: