using STAR .SJout files instead of bed2junc on .bam files

246 views
Skip to first unread message

sahin...@gmail.com

unread,
Nov 5, 2017, 4:35:00 PM11/5/17
to leafcutter-users
Hi,

I've been using leafcutter downstream of STAR. In addition to outputting .bam, STAR also outputs a .SJout file, which contains a list of "high quality" splice junctions with read counts. It seems possible to use these .SJout files from STAR as the input to leafcutter clustering (i.e. instead of running bed2junc on the bam files and clustering based on that). Would you recommend one way or another? I have noticed that the resulting .junc file from bed2junc has many more junctions, sometimes up to 2x more, than the SJout file, presumably because STAR does some additional filtering step on junctions.

Thanks,
Sahin

lhbsyl...@gmail.com

unread,
Apr 10, 2018, 10:36:36 PM4/10/18
to leafcutter-users
hi,
may i ask you,which way you have choose ?  thank you!

在 2017年11月6日星期一 UTC+8上午5:35:00,sahin...@gmail.com写道:

waqaskh...@gmail.com

unread,
Jul 6, 2019, 10:17:33 AM7/6/19
to leafcutter-users
Hi, 
Did you get a answer for this query as I have also used STAR to generate sorted bam files using below parameters and I was thinking of using junction files to generate phenotype PSI matrix for sQTL analysis using FastQTL?

Parameters were: 

--sjdbOverhang 100
--outSAMprimaryFlag AllBestScore : output all alignments with the best score as primary alignments
--outFilterMismatchNmax 2/0(first/second pass): alignment will be output only if it has fewer mismatches than this value
--outSJfilterCountTotalMin 10 5 5 5 (non-canonical SJ and 3 canonical SJs)
--outSAMstrandField intronMotif
--outFilterIntronMotifs RemoveNoncanonical : filter out alignments with non-canonical junctions
--alignIntronMin 20 : mininum intron size
--alignIntronMax 6000 : maximum intron size
--outSAMtype BAM SortedByCoordinate: output sorted BAM file
Reply all
Reply to author
Forward
0 new messages