Comments (13)
The --hic option implicitly uses --low-mem option, which needs to generate temporary files using the prefix of the -o option. I don't think you can create a file in the folder /dev/ folder so Chromap could not generate the temporary files. In this case, you can either generate sam->bam as you already did, or run Chromap with the option "-o /dev/stdout --split-alignment --pairs" instead of "--hic". Your data is not very large, so the memory usage should not increase much.
We will find a better solution in the future. Thanks.
from chromap.
But when I use the the sam->bam, the samtools
throw the error
[E::sam_parse1] CIGAR and query sequence are of different length
[W::sam_read1] Parse error at line 20315
[main_samview] truncated file.
from chromap.
I run into the same error too
from chromap.
Which Chromap version did you use?
It seems that in your example the cigar length is 104 and the sequence length is 150, which is the full read length. I thought this was fixed in #29, where we forgot to trim the sequence before we output it. But it seems the problem is still there with your example. I will double check and fix this problem if it is still there in next release.
from chromap.
chromap (0.1.3) installed from the conda. I can try the latest 0.1.4 for small test data. Stay tuned.
from chromap.
chromap (0.1.3) installed from the conda. I can try the latest 0.1.4 for small test data. Stay tuned.
Hi,
No need to try that. I just located the problem. It is a bug with the SAM output and the sequence is not trimmed properly in the SAM output. I will generate a fix tomorrow. It would be great if you can try that later.
from chromap.
from chromap.
Could you try the new branch trim-hic-sam (#57) and see if the issue is fixed? I tried on my Hi-C data and I could then run SAMtools to convert the SAM output by Chromap to BAM without errors. Please let know if the problem is resolved so that I will tag a new release.
from chromap.
My test results on other benchmark data look fine. So I merged this into the master branch. You can now try master branch. I will tag a new release soon.
from chromap.
Sorry, I have met a install issue with make
on master branch, I can try it with the updated conda version.
from chromap.
Sorry, I have met a install issue with
make
on master branch, I can try it with the updated conda version.
It is now updated on bioconda with new release v0.1.5.
from chromap.
Sorry for the delay in testing, but the this seems to have solved the issue, I can now convert SAM to BAM with samtools
Thank you!
from chromap.
Sorry for the delay in testing, but the this seems to have solved the issue, I can now convert SAM to BAM with samtools
Thank you!
Good to know. Close this issue.
from chromap.
Related Issues (20)
- An unknown error HOT 32
- [BUG] summary and log are confusing. HOT 6
- "Number of mapped reads" from log file HOT 3
- [Feature Request] report number of duplicated fragments in bulk HOT 4
- Different ValidPairs rate between chromap and bowtie2 in HiC data HOT 9
- how to keep multi-mapped paires for HiC data. HOT 1
- [BUG] output to /dev/stdout HOT 6
- Understanding the multi-mapping reads and whether they are part of the bed file HOT 2
- ATAC-seq single end? HOT 3
- Coordinate system of the output fragment file? HOT 1
- multi-mapped reads HOT 3
- [BUG] Manpage is down HOT 1
- [BUG] Support for combinatorial barcode indexing(like SHARE) not present HOT 3
- [BUG] chromap map Hi-C short reads Parameters: error threshold HOT 2
- [BUG]For HiC data, the size of SAM files outputted using Chromap is much smaller compared to those from BWA-MEM HOT 4
- Repetitive or low-quality barcode sequences in scATAC data HOT 1
- [BUG] possibly improper MD tag generation whej running atac data. HOT 3
- Mapping paired-end single-cell ATAC-Seq reads HOT 2
- why so slow? HOT 2
- Failure to load cellular barcodes containing Ns HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chromap.