You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## StringTie: efficient transcript assembly and quantitation of RNA-Seq data
4
+
5
+
Stringtie employs efficient algorithms for transcript structure recovery and abundance estimation from bulk RNA-Seq reads aligned to a reference genome.
6
+
It takes as input spliced alignments in coordinate-sorted SAM/BAM/CRAM format and produces a GTF output which consists of assembled
7
+
transcript structures and their estimated expression levels (FPKM/TPM and base coverage values).
8
+
9
+
For additional StringTie documentation and the latest official source and binary packages please refer to the official website: <https://ccb.jhu.edu/software/stringtie>
2
10
3
11
## Obtaining and installing StringTie
4
12
5
-
Source and binary packages for this software, along with a small test data set
6
-
can be directly downloaded from the [Releases](https://github.com/gpertea/stringtie/releases) page for this repository.
13
+
Source and binary packages for this software can be directly downloaded from the [Releases](https://github.com/gpertea/stringtie/releases) page for this repository.
7
14
StringTie is compatible with a wide range of Linux and Apple OS systems.
8
15
The main program (StringTie) does not have any other library dependencies (besides zlib) and in order to compile it from source it requires
9
16
a C++ compiler which supports the C++ 11 standard (GCC 4.8 or newer).
During the first run of the above make command a few library dependencies will be downloaded and compiled, but any subsequent stringtie updates (using `git pull`)
27
+
should rebuild much faster.
19
28
20
-
If the compilation is successful, the resulting `stringtie` binary can then be copied to
21
-
a programs directory of choice.
29
+
To complete the installation, the resulting `stringtie` binary can then be copied to a programs directory of choice (preferably one that is in the current shell's PATH).
22
30
23
-
Installation of StringTie this way should take less than a minute on a regular Linux or Apple MacOS
31
+
Building and installing of StringTie this way should take less than a minute on a regular Linux or Apple MacOS
24
32
desktop.
25
33
26
-
Note that simply running `make` would produce an executable which is more suitable for debugging
27
-
and runtime checking but which can be significantly slower than the optimized version which
28
-
is obtained by using `make release` as instructed above.
34
+
Note that simply running `make` would produce a less optimized executable which is suitable for debugging
35
+
and runtime checking but that is significantly slower than the optimized version which
36
+
is built by using the `make release` command as instructed above.
29
37
30
38
### Using pre-compiled (binary) releases
31
39
Instead of compiling from source, some users may prefer to download an already compiled binary for Linux
32
-
and Apple OS X, ready to run. These binary package releases are compiled on older versions of these
33
-
operating systems in order to provide compatibility with a wide range of (older) OS versions, not just the most recent distributions.
40
+
and Apple MacOS, ready to run. These binary package releases are compiled on older versions of these
41
+
operating systems in order to provide compatibility with a wide range of OS versions not just the most recent distributions.
34
42
These precompiled packages are made available on the <ahref="https://github.com/gpertea/stringtie/releases">Releases</a> page for this repository.
35
43
Please note that these binary packages do not include the optional [super-reads module](#the-super-reads-module),
36
-
which currently can only be built on Linux machines, from the source made available in this repository.
44
+
which currently can only be built on Linux machines from the source made available in this repository.
37
45
38
46
## Running StringTie
39
47
40
-
Run stringtie from the command line like this:
48
+
The generic command line for the default usage has this format:
The main input of the program is a SAMTools BAM file with RNA-Seq mappings
45
-
sorted by genomic location (for example the accepted_hits.bam file produced
46
-
by TopHat).
52
+
The main output is a GTF file containing the structural definitions of the transcripts assembled by StringTie from the read alignment data. The name of the output file should be specified with the `-o` option. If this `-o` option is not used, the output GTF with the assembled transcripts will be printed to the standard
53
+
output (and can be captured into a file using the `>` output redirect operator).
47
54
48
-
The main output of the program is a GTF file containing the structural definitions of the transcripts assembled by StringTie from the read alignment data. The name of the output file should be specified by with the `-o` option.
55
+
The main input of the program (_<read_alignments.bam>_) must be a SAM, BAM or CRAM file with RNA-Seq read
56
+
alignments sorted by their genomic location (for example the `accepted_hits.bam` file produced
57
+
by TopHat, or HISAT2 output sorted with `samtools sort` etc.). The output
58
+
59
+
__Note__: if the `--mix` option is used, StringTie expects two alignment files to be given as positional parameters, in a specific order: the short read alignments must be the first file given while the long read alignments must be the second input file. Both alignment files must be sorted by genomic location.
Note that the command line parser in StringTie allows arbitrary order and mixing of the positional parameters with the other options of the program, so the input alignment files can also precede or be given in between the other options -- the following command line is equivalent to the one above:
### Running StringTie on the provided test/demo data
71
+
51
72
When building from this source repository, after the program was compiled with `make release` as instructed above, the generated binary can be tested on a small data set with a command like this:
The above runs should take around one second each on a regular Linux or MacOS desktop.
93
-
(see also <ahref="https://github.com/gpertea/stringtie/blob/master/test_data/README.md">test_data/README.md</a>).
94
-
95
113
For very large data sets one can expect up to one hour of processing time. A minimum of 8GB of RAM is recommended for running StringTie on regular size RNA-Seq samples, with 16 GB or more being strongly advised for larger data sets.
96
114
97
115
98
116
### StringTie options
99
117
100
-
The following optional parameters can be specified (use -h/--help to get the
101
-
usage message):
118
+
The following optional parameters can be specified (use `-h` or `--help` to get the complete usage message):
102
119
```
120
+
Options:
103
121
--version : print just the version at stdout and exit
104
-
--conservative : conservative transcriptome assembly, same as -t -c 1.5 -f 0.05
105
-
--rf assume stranded library fr-firststrand
106
-
--fr assume stranded library fr-secondstrand
107
-
-G reference annotation to use for guiding the assembly process (GTF/GFF3)
122
+
--conservative : conservative transcript assembly, same as -t -c 1.5 -f 0.05
123
+
--mix : both short and long read data alignments are provided
124
+
(long read alignments must be the 2nd BAM/CRAM input file)
125
+
--rf : assume stranded library fr-firststrand
126
+
--fr : assume stranded library fr-secondstrand
127
+
-G reference annotation to use for guiding the assembly process (GTF/GFF)
128
+
--ptf : load point-features from a given 4 column feature file <f_tab>
108
129
-o output path/file name for the assembled transcripts GTF (default: stdout)
109
130
-l name prefix for output transcripts (default: STRG)
110
131
-f minimum isoform fraction (default: 0.01)
111
-
-L use long reads settings (default:false)
132
+
-L long reads processing; also enforces -s 1.5 -g 0 (default:false)
133
+
-R if long reads are provided, just clean and collapse the reads but
0 commit comments