Skip to content

Commit 35f1f04

Browse files
authored
Update README.md
1 parent 2bcb743 commit 35f1f04

1 file changed

Lines changed: 42 additions & 28 deletions

File tree

README.md

Lines changed: 42 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
## StringTie - efficient transcript assembly and quantitation of RNA-Seq data
44

5-
This software employs efficient algorithms for transcript structure recovery and abundance estimation from bulk RNA-Seq reads aligned to a reference genome.
6-
StringTie takes as input RNA-seq read alignments in coordinate-sorted SAM/BAM/CRAM format and produces a GTF output which consists of assembled
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 RNA-seq read alignments in coordinate-sorted SAM/BAM/CRAM format and produces a GTF output which consists of assembled
77
transcript structures and their estimated expression levels (FPKM/TPM and base coverage values).
88

99
For additional StringTie documentation and the latest official source and binary packages please refer to the official website: <https://ccb.jhu.edu/software/stringtie>
1010

1111
## Obtaining and installing StringTie
1212

13-
Source and binary packages for this software, along with a small test data set
14-
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.
1514
StringTie is compatible with a wide range of Linux and Apple OS systems.
1615
The main program (StringTie) does not have any other library dependencies (besides zlib) and in order to compile it from source it requires
1716
a C++ compiler which supports the C++ 11 standard (GCC 4.8 or newer).
@@ -62,13 +61,14 @@ __Note__: if the `--mix` option is used, StringTie expects two alignment files t
6261
stringtie [-o <output.gtf>] --mix [other_options] <short_read_alns.bam> <long_read_alns.bam>
6362
```
6463

65-
Note that the command line parser in StringTie allows arbitrary order and mixing of the input positional parameters with the other options of the program, so the input alignment files can precede or be given in between the other options, so the following command line if equivalent to the one above:
64+
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:
6665

6766
```
6867
stringtie <short_read_alns.bam> <long_read_alns.bam> --mix [other_options] [-o <output.gtf>]
6968
```
7069

7170
### Running StringTie on the provided test/demo data
71+
7272
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:
7373
```
7474
make test
@@ -110,26 +110,28 @@ stringtie -L -o long_reads.out.gtf long_reads.bam
110110
stringtie -L -G human-chr19_P.gff -o long_reads_guided.out.gtf long_reads.bam
111111
```
112112

113-
The above runs should take around one second each on a regular Linux or MacOS desktop.
114-
(see also <a href="https://github.com/gpertea/stringtie/blob/master/test_data/README.md">test_data/README.md</a>).
115-
116113
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.
117114

118115

119116
### StringTie options
120117

121-
The following optional parameters can be specified (use -h/--help to get the
122-
usage message):
118+
The following optional parameters can be specified (use `-h` or `--help` to get the complete usage message):
123119
```
120+
Options:
124121
--version : print just the version at stdout and exit
125-
--conservative : conservative transcriptome assembly, same as -t -c 1.5 -f 0.05
126-
--rf assume stranded library fr-firststrand
127-
--fr assume stranded library fr-secondstrand
128-
-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>
129129
-o output path/file name for the assembled transcripts GTF (default: stdout)
130130
-l name prefix for output transcripts (default: STRG)
131131
-f minimum isoform fraction (default: 0.01)
132-
-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
134+
do not assemble
133135
-m minimum assembled transcript length (default: 200)
134136
-a minimum anchor length for junctions (default: 10)
135137
-j minimum junction coverage (default: 1)
@@ -144,14 +146,19 @@ usage message):
144146
-M fraction of bundle allowed to be covered by multi-hit reads (default:1)
145147
-p number of threads (CPUs) to use (default: 1)
146148
-A gene abundance estimation output file
149+
-E define window around possibly erroneous splice sites from long reads to
150+
look out for correct splice sites (default: 25)
147151
-B enable output of Ballgown table files which will be created in the
148152
same directory as the output GTF (requires -G, -o recommended)
149153
-b enable output of Ballgown table files but these files will be
150154
created under the directory path given as <dir_path>
151155
-e only estimate the abundance of given reference transcripts (requires -G)
156+
--viral : only relevant for long reads from viral data where splice sites
157+
do not follow consensus (default:false)
152158
-x do not assemble any transcripts on the given reference sequence(s)
153159
-u no multi-mapping correction (default: correction enabled)
154160
-h print this usage message and exit
161+
--ref/--cram-ref reference genome FASTA file for CRAM input
155162
156163
Transcript merge usage mode:
157164
stringtie --merge [Options] { gtf_list | strg1.gtf ...}
@@ -174,12 +181,13 @@ the following options are available:
174181
-i keep merged transcripts with retained introns; by default
175182
these are not kept unless there is strong evidence for them
176183
-l <label> name prefix for output transcripts (default: MSTRG)
184+
177185
```
178186

179187
## Input files
180188

181-
StringTie takes as input a binary SAM (BAM) file sorted by reference position.
182-
This file contains spliced read alignments such as the ones produced by TopHat or HISAT2.
189+
StringTie takes as input a SAM, BAM or CRAM file sorted by coordinate (genomic location).
190+
This file should contain spliced RNA-seq read alignments such as the ones produced by TopHat or HISAT2.
183191
A text file in SAM format should be converted to BAM and sorted using the
184192
samtools program:
185193
```
@@ -188,18 +196,24 @@ samtools view -Su alns.sam | samtools sort - alns.sorted
188196
The file resulted from the above command (alns.sorted.bam) can be used
189197
directly as input to StringTie.
190198

191-
Any SAM spliced read alignment (a read alignment across at least one junction)
192-
needs to contain the XS tag to indicate the strand from which the RNA that produced
193-
this read originated. TopHat alignments already include this tag, but if you use
199+
Any SAM record with a spliced alignment (i.e. having a read alignment across at least one junction)
200+
should have the `XS` tag to indicate the transcription strand - the genomic strand from which the RNA that produced
201+
this read originated. TopHat and HISAT2 alignments already include this tag, but if you use
194202
a different read mapper you should check that this tag is also included for spliced alignment
195-
records. For example HISAT2 should be run with the `--dta` option in order to tag spliced
196-
alignments this way. As explained above, the alignments in SAM format should be sorted and
197-
preferrably converted to BAM.
198-
199-
Optionally, a reference annotation file in GTF/GFF3 format can be provided to StringTie
200-
using the `-G` option. In this case, StringTie will check to see if the reference transcripts
201-
are expressed in the RNA-Seq data, and for the ones that are expressed it will compute coverage
202-
and FPKM values.
203+
records. STAR aligner should be run with the option `--outSAMstrandField intronMotif` in order to generate this tag.
204+
205+
There is an exception when the `XS` tags are not necessary in the case of long RNA-seq reads aligned with `minimap2`
206+
with the `-ax splice` option. minimap2 adds the `ts` tags to splice alignments to indicate the transcription strand
207+
(though in a different manner than the `XS` tag), and StringTie can recognize the `ts` tag as well, if the `XS` tag is missing.
208+
Thus the long read spliced alignments produced by `minimap2` can be also assembled by StringTie (with the option `-L` or
209+
as the 2nd input file for the `--mix` option).
210+
211+
As explained above, the alignments must be sorted by coordinate before they can be used as input for StringTie.
212+
213+
Optionally, a reference annotation file in GTF or GFF3 format can be provided to StringTie
214+
using the `-G` option which can be used as 'guides' for the assembly process, or their expression levels
215+
can be directly estimated (without any assembly) when the `-e` option is given.
216+
203217
Note that the reference transcripts should be fully covered by reads in order to be included
204218
in StringTie's output with the original ID of the reference transcript shown in the
205219
_`reference_id`_ GTF attribute in the output file . Other transcripts assembled from

0 commit comments

Comments
 (0)