The parameter of HISAT2 and samtools
1
0
Entering edit mode
3.8 years ago
Evy_00 • 0

Hi all,

I'm a new to RNA-seq and I'm going to use HISAT2 and samtools to analyze my data. I found the method from ref which recommended me to deal with the data like this.

CODE ->

hisat2 -t -p 16 -x <indexPath> -U <fastqFiles> | samtools sort -T <scratchPath> -o <sampleName>.srt.bam -

But I have no idea what the parameters <indexpath> and <scratchpath>mean. Can someone help me to explain the defination or usage of the parameters? It will be better if there's any example. Thanks a lot!

Evy

RNA-Seq • 1.1k views
ADD COMMENT
1
Entering edit mode
3.8 years ago

The -x flag in hisat2 is used to provide an index. Most aligners need an index in order to perform better (faster). So you first need to build an index and the provide the path to where this index is located. To build an index with hisat2 you just need to use the hisat2-build command. See more in the manual. In samtools sort the -T flag is used to specify the folder where temporary files are stored. You can always learn more about the different options each program has in the manual or by typing hisat2/samtools --help.
Hope it helps!
Jordi

ADD COMMENT
0
Entering edit mode

Thanks! I have processed my data successfully!

ADD REPLY

Login before adding your answer.

Traffic: 1852 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