Comments (5)
Hi @lishen,
This error is almost always caused by one of two things:
- the SAM file was not sorted properly. The sort command should be:
sort -k 3,3 -k 4,4n input.sam > input.sorted.sam
- The SAM file contains incomplete alignments. This is usually discovered via running the aligner (GMAP, STAR, etc) again and ensuring that the process finished.
If neither fixes the problem, I would need to take a look at the SAM file to know the cause.
Thanks,
--Liz
from cdna_cupcake.
@Magdoll ,
I converted sam to bam and sorted them using samtools and convert back to sam. I'm sure the sam files are already sorted.
But what do you mean by incomplete alignments? There are unmapped reads, which are at the tail of a sam file with a tag value of 4. Are they the reads that are causing trouble?
from cdna_cupcake.
Hi @lishen,
Sorting using samtools has been known to cause this error. Can you please try:
sort -k 3,3 -k 4,4n input.sam > input.sorted.sam
and see if this problem goes away? Alternatively, you can remove all alignments that are unmapped.
The error shows up because it is expecting all unmapped alignments to either not exist at all, or appear all at the beginning of the SAM file. It's trying to print "r.qCoverage" for an alignment that is unmapped and since it's unmapped r.qCoverage is not a number.
--Liz
from cdna_cupcake.
Closing issue unless noted otherwise.
from cdna_cupcake.
I was using samtools sort, and got this error then I used:
sort -k 3,3 -k 4,4n input.sam > input.sorted.sam
I have the same error.
from cdna_cupcake.
Related Issues (20)
- Question: where does the count.txt file come from?
- cluster id mismatch issue in get_abundance_post_collapse.py HOT 3
- chain_samples.py does not work!
- cupcake2 directory missing, compilation fails HOT 4
- Create sam format for collapse_isoforms_by_sam.py
- lima for skera.bam
- fusion_collate_info.py script has bugs and its not working.
- TypeError: iter_gmap_sam() got an unexpected keyword argument 'type' using collapse_isoforms_by_sam.py
- run_preCluster.py HOT 1
- setup.py requires sklearn instead of scikit-learn HOT 1
- fusion_collate_info.py KeyError: 'count_fl' HOT 3
- Cython compiler error when installing/building cDNA_cupcake HOT 2
- solved
- Saturation analysis bug fixes; compatibility with newer isoseq cluster [make_file_for_subsampling_from_collapsed.py]
- AttributeError: module 'numpy' has no attribute 'int'. HOT 2
- ModuleNotFoundError: No module named 'cupcake.tofu' after installing cdna_cupcake in conda subenv HOT 3
- fusion_finder.py HOT 1
- Demultiplex after clustering / genome alignment
- cdna_cupcake与SQANTI3
- collapse_isoforms_by_sam.py out of memory
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 cdna_cupcake.