How to get the alignment summary of HISAT2
2
1
Entering edit mode
7.9 years ago

Hi, I was trying to HISAT2, which is suppose to be the improved version of tophat or tophat2, HISAT publication , I applied it to my data, it was much much faster comparing with tophat2. I just a tinny issue, how could I get the "alignment summary" (information such as successful alignment rate)

I read the manual: "When HISAT2 finishes running, it prints messages summarizing what happened. These messages are printed to the "standard error" ("stderr") filehandle", how could I get my information from the filehandle?

I ran my command like:

nohup hisat2  -x ~/Tool/hisat2-2.0.3-beta/hisat2index/genome/genome -U sample.fastq -S sample.sam > nohup.out&

I checked the nohup.out file, there was nothing in it. I guess this is a dumb question. Thanks for any suggestion.

RNA-Seq alignment next-gen • 11k views
ADD COMMENT
2
Entering edit mode

If you run it in the standard way (without nohup and '&') it will nicely print the summary, which you can redirect to a file if you like, with at the end of your command the following:

2> summarymetrics.txt

But I would argue that the program is fast enough to run without nohup :p

ADD REPLY
1
Entering edit mode

@WouterDeCoster ,Thanks. I think you are right. HISAT2 is fast enough, which makes nohup not necessary anymore. I got the habit of using nohup and & from experience with tophat(2)...

ADD REPLY
0
Entering edit mode

Can I find alignment summary after completing job, I mean from SAM file ?

ADD REPLY
0
Entering edit mode

yes, with samtools stats

ADD REPLY
2
Entering edit mode
7.9 years ago
EVR ▴ 610

HI, Try running HiSAT2 like following

hisat2 -x ~/Tool/hisat2-2.0.3-beta/hisat2index/genome/genome -U > sample.fastq -S sample.sam 2>summary.txt.

ADD COMMENT
1
Entering edit mode

@Tom. Thanks, basically let a txt file take filehandle.

ADD REPLY
2
Entering edit mode
6.2 years ago
Arindam Ghosh ▴ 510

You can also add --summary-file *.txt to ur command.

hisat2 -p INT --dta -x path_to_ref_genome_index -U/-1/-2 *.fastq.gz -S *.sam -un-gz filename --summary-file *.txt --met-file *.txt

Refer: https://ccb.jhu.edu/software/hisat2/manual.shtml

ADD COMMENT

Login before adding your answer.

Traffic: 2542 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6