-
Notifications
You must be signed in to change notification settings - Fork 1
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
bam2 juicer issue #6
Comments
Could you share a snippet of the BAM file (e.g., samtools view foo.bam | head -n 1000)? My first thought is that the BAM may not be sorted by name (samtools sort -n). Default sort in samtools is by chromosome coordinate, but it is typical for Hi-C data to be sorted by read name (QNAME) so corresponding Hi-C reads are right next to each other in the BAM. I would have to check the data to be sure that's what's hitting this error, but in case this rings any bells you might try sorting by read name. |
I meet the same problem. Have you found out any solutions? |
Can you send a snippet of the BAM with a command similar to the above (e.g., samtools view foo.bam | head -n 100)? This error most commonly is caused when the BAM needs to be resorted by read name (samtools sort -n). |
Hi there, but I still face with the same issue: Thank you |
some parts of output for samtools view sample.unique.REduced.paired.bam | head -n 100: GWNJ-0901:774:GW2103153736th:1:1101:1631:66056 83 ptg000040l_1_25449999 21156739 60 150M = 21156742 -147 CNTCTGTAAAAGAATTTGAGAAATATAGAGACTCAGTATCATTTTGGAGTTGGCTTAAATAGAAATGCTTAGATACTCATATGGGTGATATTTTCCAGAAGATATTTGATGTCGTAAAAGTAGTTTTATGTAGACTGAAATGATTTTCCA F#F7J<7-FFJAF7--<7A7FFF<77--7-777<AA-F-JAFF7-FAA7---7F7-JFFAA7J<FAAAAA7-F-AA7--F<--FFF-FJA-<--JJJJF<-J<<-<<AA<7<--AJJJJJFF77<-<<-<-JFJFA-JJJJFF-A-<AAA NM:i:7 MD:Z:1T5G18G50G0G33G36T0 MC:Z:89S61M AS:i:122 XS:i:19 |
Hi, |
Hi, @xinghua1001 @Karimi-81 @baishengjun unfortunately we were not able to reproduce the error using the snippet above, so we aren't sure what the problem is yet. Can one of you send the BAM file you are using that is generating this error? If it is large, I can send you either a Google drive folder or instructions for uploading to an FTP server instead. Thanks, Shawn |
sorted.sam.zip |
Hi, |
Hello, have you resolved the problem? I meet the same problem. With best regards Sandip |
Sorry, I still have no idea about that.
…------------------ Original ------------------
From: ***@***.***>;
Date: 2021年11月29日(星期一) 晚上11:23
To: ***@***.***>;
Cc: "Xinghua ***@***.***>; ***@***.***>;
Subject: Re: [phasegenomics/matlock] bam2 juicer issue (#6)
Hello,
have you resolved the problem? I meet the same problem.
With best regards
Sandip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
No problem. Can you please explain the format of link file? Do you know any other way to import bam into Juicebox? Sandip |
I met the same problem. Some one could help us? |
Hi all, INFO: converting bam to juicer on mapped.PT.name_sorted.bam Have all the phasegeomics scripts in place and I had to installed matlock 5.2.5 with conda environment (because couldn't do it in our cluster without error). Just in case this helps, I list here all the programs and versions in the conda environment: Name Version Build Channel_libgcc_mutex 0.1 conda_forge conda-forge It will be useful to be able to overcome this program and get juicebox compatible files from any assembly. Thanks |
Hello, I ran into the same error message. In my case (attached top few lines of bam below), the problem seems to be matlock doesn't like the trailing /1 and /2 in the bam file. Removing the "/1" "/2" in the read names solved the problem for me. Hope this could be useful. Regards, ChuShin -- -- |
Hello, I had the same problem too and sorting the bam file with samtools worked for me. My bam files is an output from the Arima Pipeline.
It took ~5 hours for a 29Gb file with 48 core and 128 memory. |
Hello, I have the same problem. How did you remove "/1" "/2" in the read names in bam file? |
Hi @Tetyana-Tsykun , I used sed attached below:
Regards, ChuShin |
Hi, @ChuShin Thank you for your answer! samtools view -@ 18 -h INPUT.bam -o INPUT.sam and then matlock script finally worked without error message Cheers, Tetyana |
Hi all @ALL: |
PEER_373L.bam
is properly parsable by samtools, which makes me thing the issue us not in the bamfile itself.The text was updated successfully, but these errors were encountered: