Galaxy | Tool Preview

HISAT2 (version 2.2.1+galaxy1)
Built-in references were created using default options
If your genome of interest is not listed, contact the Galaxy team
Must be of datatype "fastqsanger" or "fasta"
'F' means a read corresponds to a transcript. 'R' means a read corresponds to the reverse complemented counterpart of a transcript. With this option being used, every read alignment will have an XS attribute tag: '+' means a read belongs to a transcript on '+' strand of genome. '-' means a read belongs to a transcript on '-' strand of genome.
Summary Options
Summary Options 0
Advanced Options
Advanced Options 0

Introduction

What is HISAT?

HISAT is a fast and sensitive spliced alignment program. As part of HISAT, we have developed a new indexing scheme based on the Burrows-Wheeler transform (BWT) and the FM index, called hierarchical indexing, that employs two types of indexes: (1) one global FM index representing the whole genome, and (2) many separate local FM indexes for small regions collectively covering the genome. Our hierarchical index for the human genome (about 3 billion bp) includes ~48,000 local FM indexes, each representing a genomic region of ~64,000bp. As the basis for non-gapped alignment, the FM index is extremely fast with a low memory footprint, as demonstrated by Bowtie. In addition, HISAT provides several alignment strategies specifically designed for mapping different types of RNA-seq reads. All these together, HISAT enables extremely fast and sensitive alignment of reads, in particular those spanning two exons or more. As a result, HISAT is much faster >50 times than TopHat2 with better alignment quality. Although it uses a large number of indexes, the memory requirement of HISAT is still modest, approximately 4.3 GB for human. HISAT uses the Bowtie2 implementation to handle most of the operations on the FM index. In addition to spliced alignment, HISAT handles reads involving indels and supports a paired-end alignment mode. Multiple processors can be used simultaneously to achieve greater alignment speed. HISAT outputs alignments in SAM format, enabling interoperation with a large number of other tools that use SAM. HISAT is distributed under the GPLv3 license, and it runs on the command line under Linux, Mac OS X and Windows.

Running HISAT

Reporting

The reporting mode governs how many alignments HISAT looks for, and how to report them.

In general, when we say that a read has an alignment, we mean that it has a valid alignment. When we say that a read has multiple alignments, we mean that it has multiple alignments that are valid and distinct from one another.

Distinct alignments map a read to different places

Two alignments for the same individual read are "distinct" if they map the same read to different places. Specifically, we say that two alignments are distinct if there are no alignment positions where a particular read offset is aligned opposite a particular reference offset in both alignments with the same orientation. E.g. if the first alignment is in the forward orientation and aligns the read character at read offset 10 to the reference character at chromosome 3, offset 3,445,245, and the second alignment is also in the forward orientation and also aligns the read character at read offset 10 to the reference character at chromosome 3, offset 3,445,245, they are not distinct alignments.

Two alignments for the same pair are distinct if either the mate 1s in the two paired-end alignments are distinct or the mate 2s in the two alignments are distinct or both.

Default mode: search for one or more alignments, report each

HISAT searches for up to N distinct, primary alignments for each read, where N equals the integer specified with the -k parameter. Primary alignments mean alignments whose alignment score is equal or higher than any other alignments. It is possible that multiple distinct alignments whave the same score. That is, if -k 2 is specified, HISAT will search for at most 2 distinct alignments. The alignment score for a paired-end alignment equals the sum of the alignment scores of the individual mates. Each reported read or pair alignment beyond the first has the SAM 'secondary' bit (which equals 256) set in its FLAGS field. See the SAM specification for details.

HISAT does not "find" alignments in any specific order, so for reads that have more than N distinct, valid alignments, HISAT does not gaurantee that the N alignments reported are the best possible in terms of alignment score. Still, this mode can be effective and fast in situations where the user cares more about whether a read aligns (or aligns a certain number of times) than where exactly it originated.

Alignment summmary

When HISAT finishes running, it prints messages summarizing what happened. These messages are printed to the "standard error" ("stderr") filehandle and can be optionally printed to a file. Choose --new-summary under Summary Options for compatibility with MultiQC. For datasets consisting of unpaired reads, the summary might look like this:

20000 reads; of these:
  20000 (100.00%) were unpaired; of these:
    1247 (6.24%) aligned 0 times
    18739 (93.69%) aligned exactly 1 time
    14 (0.07%) aligned >1 times
93.77% overall alignment rate

For datasets consisting of pairs, the summary might look like this:

10000 reads; of these:
  10000 (100.00%) were paired; of these:
    650 (6.50%) aligned concordantly 0 times
    8823 (88.23%) aligned concordantly exactly 1 time
    527 (5.27%) aligned concordantly >1 times
    ----
    650 pairs aligned concordantly 0 times; of these:
      34 (5.23%) aligned discordantly 1 time
    ----
    616 pairs aligned 0 times concordantly or discordantly; of these:
      1232 mates make up the pairs; of these:
        660 (53.57%) aligned 0 times
        571 (46.35%) aligned exactly 1 time
        1 (0.08%) aligned >1 times
96.70% overall alignment rate

The indentation indicates how subtotals relate to totals.

HISAT2 options

Galaxy wrapper for HISAT2 implements most, but not all, options available through the command line. Supported options are described below.


Inputs

HISAT2 accepts files in FASTQ or FASTA format (single-end or paired-end).

Note that if your reads are from a stranded library, you need to choose the appropriate setting under Specify strand information above. For single-end reads, use F or R. 'F' means a read corresponds to a transcript. 'R' means a read corresponds to the reverse complemented counterpart of a transcript. For paired-end reads, use either FR or RF. With this option being used, every read alignment will have an XS attribute tag: '+' means a read belongs to a transcript on '+' strand of genome. '-' means a read belongs to a transcript on '-' strand of genome. (TopHat has a similar option, --library-type option, where fr-firststrand corresponds to R and RF; fr-secondstrand corresponds to F and FR.)


Input options:

-s/--skip <int>
        Skip (i.e. do not align) the first `<int>` reads or pairs in the input.

-u/--qupto <int>
        Align the first `<int>` reads or read pairs from the input (after the
        `-s`/`--skip` reads or pairs have been skipped), then stop.  Default: no limit.

-5/--trim5 <int>
        Trim `<int>` bases from 5' (left) end of each read before alignment (default: 0).

-3/--trim3 <int>
        Trim `<int>` bases from 3' (right) end of each read before alignment (default: 0).

--phred33
        Input qualities are ASCII chars equal to the Phred quality plus 33.  This is
        also called the "Phred+33" encoding, which is used by the very latest Illumina
        pipelines.

--phred64
        Input qualities are ASCII chars equal to the Phred quality plus 64.  This is
        also called the "Phred+64" encoding.

--solexa-quals
        Convert input qualities from Solexa Phred quality (which can be negative) to
        Phred Phred quality (which can't).  This scheme was used in older Illumina GA
        Pipeline versions (prior to 1.3).  Default: off.

--int-quals
        Quality values are represented in the read input file as space-separated ASCII integers, e.g., `40 40 30 40`..., rather than ASCII characters, e.g., `II?I`....
        Integers are treated as being on the Phred quality scale unless
        `--solexa-quals` is also specified. Default: off.

Alignment options:

--n-ceil <func>
        Sets a function governing the maximum number of ambiguous characters (usually
        `N`s and/or `.`s) allowed in a read as a function of read length.  For instance,
        specifying `-L,0,0.15` sets the N-ceiling function `f` to `f(x) = 0 + 0.15 * x`,
        where x is the read length.  Reads exceeding this ceiling are filtered out.
        Default: `L,0,0.15`.

--ignore-quals
        When calculating a mismatch penalty, always consider the quality value at the
        mismatched position to be the highest possible, regardless of the actual value.
        I.e. input is treated as though all quality values are high.  This is also the
        default behavior when the input doesn't specify quality values (e.g. in `-f`,
        `-r`, or `-c` modes).

--nofw/--norc
        If `--nofw` is specified, `hisat2` will not attempt to align unpaired reads to
        the forward (Watson) reference strand.  If `--norc` is specified, `hisat2` will not attempt to align unpaired reads against the reverse-complement (Crick)
        reference strand. In paired-end mode, `--nofw` and `--norc` pertain to the
        fragments; i.e. specifying `--nofw` causes `hisat2` to explore only those
        paired-end configurations corresponding to fragments from the reverse-complement
        (Crick) strand.  Default: both strands enabled.

Scoring options:

--mp MX,MN
        Sets the maximum (`MX`) and minimum (`MN`) mismatch penalties, both integers. A number less than or equal to `MX` and greater than or equal to `MN` is
        subtracted from the alignment score for each position where a read character
        aligns to a reference character, the characters do not match, and neither is an
        `N`.  If `--ignore-quals` is specified, the number subtracted quals `MX`.
        Otherwise, the number subtracted is `MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) )`
        where Q is the Phred quality value.  Default: `MX` = 6, `MN` = 2.

--sp MX,MN
        Sets the maximum (`MX`) and minimum (`MN`) penalties for soft-clipping per base, both integers. A number less than or equal to `MX` and greater than or equal to `MN` is subtracted from the alignment score for each position. The number subtracted is `MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) )` where Q is the Phred quality value. Default: `MX` = 2, `MN` = 1.

--no-softclip
        Disallow soft-clipping.

--np <int>
        Sets penalty for positions where the read, reference, or both, contain an
        ambiguous character such as `N`.  Default: 1.

--rdg <int1>,<int2>
        Sets the read gap open (`<int1>`) and extend (`<int2>`) penalties.  A read gap of
        length N gets a penalty of `<int1>` + N * `<int2>`.  Default: 5, 3.

--rfg <int1>,<int2>
        Sets the reference gap open (`<int1>`) and extend (`<int2>`) penalties.  A
        reference gap of length N gets a penalty of `<int1>` + N * `<int2>`.  Default:
        5, 3.

--score-min <func>
        Sets a function governing the minimum alignment score needed for an alignment to
        be considered "valid" (i.e. good enough to report).  This is a function of read
        length. For instance, specifying `L,0,-0.6` sets the minimum-score function `f`
        to `f(x) = 0 + -0.6 * x`, where `x` is the read length. The default is `L,0,-0.2`.

Spliced alignment options:

--pen-cansplice <int>
        Sets the penalty for each pair of canonical splice sites (e.g. GT/AG). Default: 0.

--pen-noncansplice <int>
        Sets the penalty for each pair of non-canonical splice sites (e.g. non-GT/AG). Default: 12.

--pen-canintronlen <func>
        Sets the penalty for long introns with canonical splice sites so that alignments with shorter introns are preferred to those with longer ones. Default: G,-8,1

--pen-noncanintronlen <func>
        Sets the penalty for long introns with noncanonical splice sites so that alignments with shorter introns are preferred to those with longer ones. Default: G,-8,1

--min-intronlen <int>
        Sets minimum intron length. Default: 20

--max-intronlen <int>
        Sets maximum intron length. Default: 500000

--no-spliced-alignment
        Disable spliced alignment.

-I/--minins <int>
        The minimum fragment length for valid paired-end alignments.This option is valid only with `--no-spliced-alignment`. E.g. if `-I 60` is specified and a paired-end alignment consists of two 20-bp alignments in the appropriate orientation with a 20-bp gap between them, that alignment is considered valid (as long as `-X` is also satisfied). A 19-bp gap would not be valid in that case. If trimming options `-3` or `-5` are also used, the `-I` constraint is applied with respect to the untrimmed mates.

        The larger the difference between `-I` and `-X`, the slower HISAT2 will run. This is because larger differences between `-I` and `-X` require that HISAT2 scan a larger window to determine if a concordant alignment exists. For typical fragment length ranges (200 to 400 nucleotides), HISAT2 is very efficient.

        Default: 0 (essentially imposing no minimum)

-X/--maxins <int>
        The maximum fragment length for valid paired-end alignments. This option is valid only with `--no-spliced-alignment`. E.g. if `-X 100` is specified and a paired-end alignment consists of two 20-bp alignments in the proper orientation with a 60-bp gap between them, that alignment is considered valid (as long as `-I` is also satisfied). A 61-bp gap would not be valid in that case. If trimming options `-3` or `-5` are also used, the -X constraint is applied with respect to the untrimmed mates, not the trimmed mates.

        The larger the difference between `-I` and `-X`, the slower HISAT2 will run. This is because larger differences between `-I` and `-X` require that HISAT2 scan a larger window to determine if a concordant alignment exists. For typical fragment length ranges (200 to 400 nucleotides), HISAT2 is very efficient.

        Default: 500.

--known-splicesite-infile <path>
        With this mode, you can provide a list of known splice sites, which HISAT2 makes use of to align reads with small anchors. You can create such a list using python hisat2_extract_splice_sites.py genes.gtf > splicesites.txt, where hisat2_extract_splice_sites.py is included in the HISAT2 package, genes.gtf is a gene annotation file, and splicesites.txt is a list of splice sites with which you provide HISAT2 in this mode. Note that it is better to use indexes built using annotated transcripts (such as genome_tran or genome_snp_tran), which works better than using this option. It has no effect to provide splice sites that are already included in the indexes.

--tmo/--transcriptome-mapping-only
        Report only those alignments within known transcripts.

--dta/--downstream-transcriptome-assembly
        Report alignments tailored for transcript assemblers including StringTie. With this option, HISAT2 requires longer anchor lengths for de novo discovery of splice sites. This leads to fewer alignments with short-anchors, which helps transcript assemblers improve significantly in computation and memory usage.

--dta-cufflinks
        Report alignments tailored specifically for Cufflinks. In addition to what HISAT2 does with the above option (--dta), With this option, HISAT2 looks for novel splice sites with three signals (GT/AG, GC/AG, AT/AC), but all user-provided splice sites are used irrespective of their signals. HISAT2 produces an optional field, XS:A:[+-], for every spliced alignment.

--no-templatelen-adjustment
        Disables template length adjustment for RNA-seq reads.

--novel-splicesite-outfile
                    In this mode, HISAT2 reports a list of splice sites in the file :
                            chromosome name <tab> genomic position of the flanking base on the left side of an intron <tab> genomic position of the flanking base on the right <tab> strand (+, -, and .) '.' indicates an unknown strand for non-canonical splice sites.

Reporting options:

-k <int>
        It searches for at most `<int>` distinct, primary alignments for each read. Primary alignments mean alignments whose alignment score is equal or higher than any other alignments. The search terminates when it can't find more distinct valid alignments, or when it finds `<int>`, whichever happens first. The alignment score for a paired-end alignment equals the sum of the alignment scores of the individual mates. Each reported read or pair alignment beyond the first has the SAM 'secondary' bit (which equals 256) set in its FLAGS field. For reads that have more than `<int>` distinct, valid alignments, hisat2 does not guarantee that the `<int>` alignments reported are the best possible in terms of alignment score. Default: 5 (HFM) or 10 (HGFM)

        Note: HISAT2 is not designed with large values for `-k` in mind, and when aligning reads to long, repetitive genomes large `-k` can be very, very slow.

Paired-end options:

--fr/--rf/--ff
        The upstream/downstream mate orientations for a valid paired-end alignment
        against the forward reference strand.  E.g., if `--fr` is specified and there is
        a candidate paired-end alignment where mate 1 appears upstream of the reverse
        complement of mate 2 and the fragment length constraints (`-I` and `-X`) are
        met, that alignment is valid.  Also, if mate 2 appears upstream of the reverse
        complement of mate 1 and all other constraints are met, that too is valid.
        `--rf` likewise requires that an upstream mate1 be reverse-complemented and a
        downstream mate2 be forward-oriented. ` --ff` requires both an upstream mate 1
        and a downstream mate 2 to be forward-oriented.  Default: `--fr` (appropriate
        for Illumina's Paired-end Sequencing Assay).

--no-mixed
        By default, when `hisat2` cannot find a concordant or discordant alignment for
        a pair, it then tries to find alignments for the individual mates.  This option
        disables that behavior.

--no-discordant
        By default, `hisat2` looks for discordant alignments if it cannot find any
        concordant alignments.  A discordant alignment is an alignment where both mates
        align uniquely, but that does not satisfy the paired-end constraints
        (`--fr`/`--rf`/`--ff`, `-I`, `-X`).  This option disables that behavior.

** SAM options

--no-unal Suppress SAM records for reads that failed to align.
--rg-id <text> Set the read group ID to <text>. This causes the SAM @RG header line to be printed, with <text> as the value associated with the ID: tag. It also causes the RG:Z: extra field to be attached to each SAM output record, with value set to <text>.
--rg <text> Add <text> (usually of the form TAG:VAL, e.g. SM:Pool1) as a field on the @RG header line. Note: in order for the @RG line to appear, --rg-id must also be specified. This is because the ID tag is required by the SAM Spec. Specify --rg multiple times to set multiple fields. See the SAM Spec for details about what fields are legal.

—remove-chrname Remove ‘chr’ from reference names in alignment (e.g., chr18 to 18)

--add-chrname Add ‘chr’ to reference names in alignment (e.g., 18 to chr18)

—omit-sec-seq When printing secondary alignments, HISAT2 by default will write out the SEQ and QUAL strings. Specifying this option causes HISAT2 to print an asterisk in those fields instead.


Output options:

--un/--un-gz/--un-bz2
        Write unpaired reads that fail to align to file at `<path>`. These reads correspond to the SAM records with the FLAGS `0x4` bit set and neither the `0x40` nor `0x80` bits set. If `--un-gz` is specified, output will be gzip compressed. If `--un-bz2` is specified, output will be bzip2 compressed. Reads written in this way will appear exactly as they did in the input file, without any modification (same sequence, same name, same quality string, same quality encoding). Reads will not necessarily appear in the same order as they did in the input.

--al/--al-gz/--al-bz2
        Write unpaired reads that align at least once to file at `<path>`. These reads correspond to the SAM records with the FLAGS `0x4`, `0x40`, and `0x80` bits unset. If `--al-gz` is specified, output will be gzip compressed. If `--al-bz2` is specified, output will be bzip2 compressed. Reads written in this way will appear exactly as they did in the input file, without any modification (same sequence, same name, same quality string, same quality encoding). Reads will not necessarily appear in the same order as they did in the input.

--un-conc/--un-conc-gz/--un-conc-bz2
        Write paired-end reads that fail to align concordantly to file(s) at `<path>`. These reads correspond to the SAM records with the FLAGS `0x4` bit set and either the `0x40` or `0x80` bit set (depending on whether it's mate #1 or #2). .1 and .2 strings are added to the filename to distinguish which file contains mate #1 and mate #2. If a percent symbol, %, is used in <path>, the percent symbol is replaced with 1 or 2 to make the per-mate filenames. Otherwise, .1 or .2 are added before the final dot in <path> to make the per-mate filenames. Reads written in this way will appear exactly as they did in the input files, without any modification (same sequence, same name, same quality string, same quality encoding). Reads will not necessarily appear in the same order as they did in the inputs.

--al-conc/--al-conc-gz/--al-conc-bz2
        Write paired-end reads that align concordantly at least once to file(s) at `<path>`. These reads correspond to the SAM records with the FLAGS `0x4` bit unset and either the `0x40` or `0x80` bit set (depending on whether it's mate #1 or #2). .1 and .2 strings are added to the filename to distinguish which file contains mate #1 and mate #2. If a percent symbol, %, is used in <path>, the percent symbol is replaced with 1 or 2 to make the per-mate filenames. Otherwise, .1 or .2 are added before the final dot in `<path>` to make the per-mate filenames. Reads written in this way will appear exactly as they did in the input files, without any modification (same sequence, same name, same quality string, same quality encoding). Reads will not necessarily appear in the same order as they did in the inputs.

Other options:

--seed <int>
        Use `<int>` as the seed for pseudo-random number generator.  Default: 0.

--non-deterministic
        Normally, HISAT2 re-initializes its pseudo-random generator for each read. It seeds the generator with a number derived from (a) the read name, (b) the nucleotide sequence, (c) the quality sequence, (d) the value of the `--seed` option. This means that if two reads are identical (same name, same nucleotides, same qualities) HISAT2 will find and report the same alignment(s) for both, even if there was ambiguity. When `--non-deterministic` is specified, HISAT2 re-initializes its pseudo-random generator for each read using the current time. This means that HISAT2 will not necessarily report the same alignment for two identical reads. This is counter-intuitive for some users, but might be more appropriate in situations where the input consists of many identical reads.