Question: Sorting BAM files from HISAT2 for DEXSeq
gravatar for squando
19 months ago by
squando10 wrote:

Hi everyone, I'm new to RNA seq and still have trouble with all the nuances of bioinformatics as I do my analysis. I used HISAT2 to map all my reads to my reference genome (mouse), and have used htseq-count to continue with my differential gene expression analysis and statistics.

However, I'm also interested in looking at my reads on the exon level, and many forum posts here have suggested DEXseq. One of the run settings asks for the "Sorting order of alignments", but I can't figure out how the BAM file alignment output from HISAT2 is sorted. Should I just sort all of my BAM files using SAMtools, or does anyone happen to know how I can find out how my alignments are sorted?


hisat2 rna-seq dexseq • 904 views
ADD COMMENTlink modified 19 months ago by Ian5.6k • written 19 months ago by squando10

HISAT2 output is probably unsorted, you can check with:

samtools view -h file.bam | grep 'SO:'
ADD REPLYlink written 19 months ago by h.mon30k

Instead than using Htseq-count try featureCounts it's much faster.

ADD REPLYlink written 19 months ago by Arup Ghosh2.5k
gravatar for Ian
19 months ago by
University of Manchester, UK
Ian5.6k wrote:

If in any doubt just rerun 'samtools sort'. Remember if you have multiple processors then use '-@ N', where N is the number of processor cores.

ADD COMMENTlink written 19 months ago by Ian5.6k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 763 users visited in the last hour