SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
CuffDiff and Significant Splicing events Starr_Hazard Bioinformatics 3 08-28-2012 08:41 AM
Finding Alternative splicing events from 454 transcriptome ketan_bnf Bioinformatics 5 03-26-2011 03:53 AM
Is it possible to distinguish alternative splicing events from INDELs? sulicon Bioinformatics 4 02-28-2011 02:25 PM
Detection of alternative splicing events from 454 output Khanjan 454 Pyrosequencing 15 11-15-2010 07:56 PM

Reply
 
Thread Tools
Old 05-12-2017, 10:52 AM   #1
saldi
Junior Member
 
Location: Colorado

Join Date: Apr 2017
Posts: 3
Default pysamstats counting splicing events as deletions

Hello!


I am using pysamstats to calculate the number of mismatches, deletions and insertions per base in my RNAseq data. The RNA was treated with a chemical such that sites which are single stranded end up getting mutated, deleted etc. However, I am running into a problem as pysamstats is counting spliced regions as deletions. Does anyone know of a way I could fix this problem? Maybe a way I could get pysamstats to only consider deletions smaller than 4bp? Or some other program that could give me this information in a tab format?

Thanks!
saldi is offline   Reply With Quote
Old 05-12-2017, 11:07 AM   #2
Brian Bushnell
Super Moderator
 
Location: Walnut Creek, CA

Join Date: Jan 2014
Posts: 2,553
Default

Do these sites appear in your sam file cigar strings as an "N" or a "D"?
Brian Bushnell is offline   Reply With Quote
Old 05-12-2017, 11:13 AM   #3
saldi
Junior Member
 
Location: Colorado

Join Date: Apr 2017
Posts: 3
Default

They appear to be N. The reads with "real" deletions have D. IGV is counting them correctly (if I hoover my cursor over that position in the display, I get the correct number of deletions based on manually counting them in the displayed reads), but pysamstats gives all the deletions plus the number of splicing events that cross that position.

Maybe if there was a way to count the number of splicing events crossing each position I could match that to the pysamstats output and use awk to subtract out the splicing events from the deletion total?

Thanks!

Last edited by saldi; 05-12-2017 at 11:24 AM.
saldi is offline   Reply With Quote
Old 05-12-2017, 11:28 AM   #4
Brian Bushnell
Super Moderator
 
Location: Walnut Creek, CA

Join Date: Jan 2014
Posts: 2,553
Default

It's worth trying... I don't have a better suggestion.
Brian Bushnell is offline   Reply With Quote
Old 05-12-2017, 11:38 AM   #5
saldi
Junior Member
 
Location: Colorado

Join Date: Apr 2017
Posts: 3
Default

OK- do you happen to know how I could count number of splicing events that cross each position?

Thanks!
saldi is offline   Reply With Quote
Old 05-12-2017, 12:08 PM   #6
Brian Bushnell
Super Moderator
 
Location: Walnut Creek, CA

Join Date: Jan 2014
Posts: 2,553
Default

Well, no, unfortunately...

But BBMap's reformat.sh does support this flag:

Code:
dellenfilter=-1         Discard reads with a deletion longer than this.
Perhaps that would be useful? It considers both N and D as deletion events, but assuming that you can separate them based on length, that should work, for most mappers. Then you can call the short deletions on the output with a variant caller and ignore them subsequently.
Brian Bushnell is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 05:32 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO