-
Notifications
You must be signed in to change notification settings - Fork 27
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
junctions extract producing blank file (no output) #139
Comments
Hey @andreismol, I was just wondering if you managed to solve this issue and how?I have the exact same problem and I have absolutely no idea how to solve it. Thank you in advance |
Hi @andreismol, After doing some preliminary digging, it may be an issue with how the CIGAR strings are encoded for the reads corresponding to the long read data (particularly from Nanopore). Is it possible for you to share a few lines of your bam file so that we can try to troubleshoot this on our end? |
The same goes for you @elisonigit if you're willing to share a few lines of your bam file. |
And @elisonigit - as I'm sure you've gathered, I haven't had any luck with this either. |
Hi @kcotto Here is a sample of my BAM file. I found actually a possible issue and I managed to get an output that it was not blank. But I would really appreciate it if you have any comment on the BAM file, as I encountered some problems further down in my analysis. I set the parameter -s 0, but the column I get in the .bed file is just questionmarks. Any idea why is this happening?I also tried -s 1 and -s 2 but I still get a column with both questionmarks and with +/-. Thanks! |
Hi @andreismol I hope you will find this comment helpful. |
Thank you for letting me know!
…On Fri, 7 May 2021, 7:30 pm elisonigit, ***@***.***> wrote:
Hi @andreismol <https://github.com/andreismol>
In my case it helped running minimap2 with -ax splice -uf. Apparently, by
default minimap2 excludes alignments that include introns, so you need to
manually select for it. For me it worked, and I managed to produce a
junction file that was not empty, but I still have some issues with the
strand tags.
I hope you will find this comment helpful.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#139 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOHH3RXO6OM7EUECEG4P5CTTMOXLNANCNFSM4SXNZ5BQ>
.
|
Was wondering if there were any updates on this front? I have been encountering the exact same issue and cannot figure it out. I keep running into the same issue, both with the BAM files I aligned and test BAM files from the regtools github. The BAM files were appropriately sorted and indexed. It appears the program simply doesn’t produce any output, whether or not I attempt for it to go to STDOUT or using the -o flag. Here I am running this on some of the test data that was provided, but I encounter the exact same issue when using my BAM files. I used STAR to align the reads with "--outSAMstrandField intronMotif " and only some of the reads have an XS tag denoting strand. (base) [xxxx@mforgehn5 leaf_cutter]$ regtools junctions extract -s XS -a 8 -m 50 -M 500000 regtools/tests/integration-test/data/bam/cis_ase_tumor_rna.bam
/tmp/m276075.singularity_cache
Program: regtools
Version: 1.0.0
Minimum junction anchor length: 8
Minimum intron length: 50
Maximum intron length: 500000
Alignment: regtools/tests/integration-test/data/bam/cis_ase_tumor_rna.bam
Output file: NA This is what several of my BAM lines look like: (base) [m276075@mforgehn5 leaf_cutter]$ samtools view bam_files/PM-362.bam | head
A00938:420:HY33YDRX2:2:2101:21594:15468 163 chr2 68394084 255 1S100M = 68394194 210 CTGAACAACTCCTTTCTTCTTTAGGCAGAAGATCCCCTGGGAGCAATTCACTTGAGAGGCTGTGTGGTGACTTCAGTGGAGAGCAACTCAAATGGTAAGAT ,:FFFFFFFFFFFFFFFFFFFFF:FFFFF:,FFFFFFFFF,FF:FFF:FFFFFFFFF:,F:FF:FFFFFF,FFFF:FF,FFFFFFFFFFFFFFFFFFFFF, NH:i:1 HI:i:1 AS:i:198 nM:i:0
A00938:420:HY33YDRX2:2:2101:21594:15468 83 chr2 68394194 255 100M1S = 68394084 -210 GTGAGAGAGGTGGGTCTGCTCAGACTCCCCTCCCACACCTGGACATCCTGGGCCAACATTAATCAATCAATCAATTAATCAGGATAAGCAGGAATGGGGCT :FFFF:FFFFFFF:FFF:FFFFFFFFFFFFFFFF:FFF:F:FF:FFFFFF:,FFFFFFFFFFFFFFFFFFFFFF:FFFFFFFFFFFFFFFF:FFFFF:FF, NH:i:1 HI:i:1 AS:i:198 nM:i:0
A00938:420:HY33YDRX2:2:2101:21667:15468 163 chr11 13377432 255 1S100M = 13377470 138 GCCTGAACCTTCTATCTCTTAAACTTCGTCACCACTATTGCTATTTCACCCTCCTCATCTGCTGCCTGGATTATTGCAAATCACTTCGCAACTCTATTCCC ,FFFFFF,FFF::F,FFFFFFFFFFF:::,FF,FFFFFFFF,FFFF:FFFF:,FFFFFFF:FFFFF:FFFFF:F:,:F:FF:FF,FFF,FF:,:FF,,,:F NH:i:1 HI:i:1 AS:i:194 nM:i:2
A00938:420:HY33YDRX2:2:2101:21667:15468 83 chr11 13377470 255 100M1S = 13377432 -138 GCTATTTCACCCTCCTCATCTGCTGCCTGGATTATTGCAAATCACTTCGCAACTCTAGTCCCCTTCTCCCCACCCCATCCTCCATTGTAGTTCATTCTCCA :FFFFFFFFFFFFFFFF:FFF:FF:F:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,FFF,FFFF:FFFFFFFFFFF:FFFFFFFFFFF,FFFF:F, NH:i:1 HI:i:1 AS:i:194 nM:i:2
A00938:420:HY33YDRX2:2:2101:21793:15468 99 chr7 968119 255 1S100M = 968291 273 TGTGCAGGGACACAGGGTTGGGCGGGCCCAGCCGCAATAGGTACTCAGTTCTGTGAGGAGGGGAGGGACATGTTTAACCACGAAAGGGCCACCACTGCAGG :FF:FFFFFFFFFFFFF:FFFF:FFFFFFFFFFFFFFFFFFFFFFFF:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFNH:i:1 HI:i:1 AS:i:199 nM:i:0
A00938:420:HY33YDRX2:2:2101:21793:15468 147 chr7 968291 255 101M = 968119 -273 GACGAGGGCAGCCTGTTTCCCAGAGCCTGAGGTCGGCCAGATTGGTGGCCCCACCTGCCAGGGCTTGGAGACAGCCACTGCCAGGGTCGCCAGAGAGGACG FFFFFFFFFFFFFFFF:FF:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFNH:i:1 HI:i:1 AS:i:199 nM:i:0
|
Hi
I'm trying to use junctions extract to produce a junctions.bed file from a BAM file aligned by minimap2 (contains nanopore data).
When I try to do this, nothing goes to stdout and if I specify an output file, it is completely blank.
Any ideas what might cause this behaviour, or how to deal with it?
The text was updated successfully, but these errors were encountered: