Comments (6)
I changed {1:.3f} to {1} in cupcake/tofu/branch/branch_simple2.py, and problem solved. Plus I am using minimap2 aligned bam.
from cdna_cupcake.
@paprikachan ,
Even if that solves the problem, I think it's possible some records in your SAM file is not correct. This error happens when the SAM file is not sorted or is corrupted/incomplete.
--Liz
from cdna_cupcake.
@Magdoll I checked the Sam file, it's sorted but there are some unmapped reads at the end of file. So, the unmapped reads should be filtered out, right?
from cdna_cupcake.
@Magdoll
Hi, I have removed the ummapped reads and successfully completed the collapse and count steps with no error message.
While, when I run filter command:
filter_away_subset.py $prefix
Error occurs:
The number of PBID records in the files disagree! Sanity check failed.
# of PBIDs in /home/chenlingxi/mnt/chenlingxi/workspace/FS_Projects/WHOC.Sequel_PB.batch01/Isoform/cupcake_minimap2/OC001T/OC001T.hq_isoforms.collapsed.rep.fq: 14779
# of PBIDs in /home/chenlingxi/mnt/chenlingxi/workspace/FS_Projects/WHOC.Sequel_PB.batch01/Isoform/cupcake_minimap2/OC001T/OC001T.hq_isoforms.collapsed.gff: 14779
# of PBIDs in /home/chenlingxi/mnt/chenlingxi/workspace/FS_Projects/WHOC.Sequel_PB.batch01/Isoform/cupcake_minimap2/OC001T/OC001T.hq_isoforms.collapsed.abundance.txt: 12143
It seems there are problems in count step. I run count commands like:
get_abundance_post_collapse.py $prefix $cluster_fn
whileI didn't append the cluster_id prefix before running count,
is this the cause of error?
Thanks a lot.
from cdna_cupcake.
Hi @paprikachan ,
- The unmapped reads should not have been a problem unless you didn't sort using the following
sort -k 3,3 -k 4,4n input.sam > input.sorted.sam
This sorts all unmapped reads in the beginning, not the end of the SAM file. Since you say the unmapped reads were at the end of the files, the sorting is probably the issue.
That said, since you removed the unmapped alignments from SAM file, I don't think they would affect the collapse results (because the collapse script simply ignores them as long as they are properly sorted to the beginning).
- re: the discrepancy between the count file.
Can you check the number of lines in the group.txt file?
wc -l OC001T.hq_isoforms.group.txt
The number of lines in here should also be exactly 14779.
(side note: this sanity check is necessary, and I've now seen enough sanity check fails that I should figure out a way for you guys to not experience it, rather have the collapse or get_abundance step throw the proper warning if the outputs were not consistent.)
from cdna_cupcake.
Hi @Magdoll,
Thanks for your reply. For the discrepancy between the count files. I figure out why.
I use the old version of cluster, and run it with multiple bins. So I need to append bin_index into the cluster prefix in both cluster_report.csv and fastq id.
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.