Skip to content

Commit 1bf55ed

Browse files
committed
added test_data/README.md
1 parent 288fd7a commit 1bf55ed

3 files changed

Lines changed: 54 additions & 9 deletions

File tree

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
## Obtaining and installing StringTie
22

33
Source and binary packages for this software, along with a small test data set
4-
can be directly downloaded from the <a href="https://github.com/mpertea/stringtie2/releases">Releases</a> page for this repository. StringTie is compatible with a wide range of Linux and Apple OS systems (going as far back as RedHat Enterprise Linux 5.0 and OS X 10.7). The main program (StringTie) does not have any other library dependencies and in order to compile it from source it requires only a C++ compiler which supports the C++ 0x standard (GCC 4.5 or newer).
4+
can be directly downloaded from the <a href="https://github.com/gpertea/stringtie/releases">Releases</a> page for this repository.
5+
StringTie is compatible with a wide range of Linux and Apple OS systems (going as far back as RedHat Enterprise Linux 5.0 and OS X 10.7).
6+
The main program (StringTie) does not have any other library dependencies and in order to compile it from source it requires only
7+
a C++ compiler which supports the C++ 0x standard (GCC 4.5 or newer).
58

69
### Building the latest version from the repository
710
In order to compile the StringTie source in this GitHub repository the following steps can be taken:
811

912
```
10-
git clone https://github.com/mpertea/stringtie2
11-
cd stringtie2
13+
git clone https://github.com/gpertea/stringtie
14+
cd stringtie
1215
make release
1316
```
1417

@@ -27,7 +30,7 @@ Instead of compiling from source, some users may prefer to download an already c
2730
and Apple OS X, ready to run. These binary package releases are compiled on older versions of these
2831
operating systems (RedHat Enterprise Linux 5.0 and OS X 10.7) in order to provide compatibility with
2932
a wide range of (older) OS versions, not just the most recent versions. These precompiled packages are
30-
made available on the <a href="https://github.com/mpertea/stringtie2/releases">Releases</a> page for this repository.
33+
made available on the <a href="https://github.com/gpertea/stringtie/releases">Releases</a> page for this repository.
3134
Please note that these binary packages do not include the optional [super-reads module](#the-super-reads-module),
3235
which currently can only be built on Linux machines, from the source made available in this repository.
3336

@@ -60,7 +63,9 @@ cd stringtie-2.0.Linux_x86_64
6063
./run_tests.sh
6164
```
6265

63-
These small test/demo data sets can also be downloaded separately as <a href="https://github.com/mpertea/stringtie2/releases/download/v2.0/test_data.tar.gz">test_data.tar.gz</a> along with the source package and pre-compiled packages on the <a href="https://github.com/mpertea/stringtie2/releases">Releases</a> page for this repository.
66+
These small test/demo data sets can also be downloaded separately as <a href="https://github.com/gpertea/stringtie/releases/download/v2.0/test_data.tar.gz">test_data.tar.gz</a>
67+
along with the source package and pre-compiled packages on the <a href="https://github.com/gpertea/stringtie/releases">Releases</a>
68+
page of this repository.
6469

6570
The tests can also be run manually as shown below (after changing to the _test_data_ directory, `cd test_data`):
6671

@@ -85,7 +90,7 @@ stringtie -L -G human-chr19_P.gff -o long_reads_guided.out.gtf long_reads.bam
8590
```
8691

8792
The above runs should take around one second each on a regular Linux or MacOS desktop.
88-
(see also <a href="https://github.com/mpertea/stringtie2/blob/master/test_data/README.md">test_data/README.md</a>).
93+
(see also <a href="https://github.com/gpertea/stringtie/blob/master/test_data/README.md">test_data/README.md</a>).
8994

9095
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.
9196

@@ -186,7 +191,7 @@ This optional module can be used to de-novo assemble, align and pre-process
186191
RNA-Seq reads, preparing them to be used as "super-reads" by Stringtie.
187192

188193
Mode detailed information is provided in the
189-
<a href="https://github.com/mpertea/stringtie2/blob/master/SuperReads_RNA/README.md">SuperReads_RNA/README.md</a>.
194+
<a href="https://github.com/gpertea/stringtie/blob/master/SuperReads_RNA/README.md">SuperReads_RNA/README.md</a>.
190195
Quick installation instructions for this module from the source available on this repository
191196
(assuming the above Stringtie installation was completed):
192197

@@ -197,7 +202,7 @@ Quick installation instructions for this module from the source available on thi
197202

198203
### Using super-reads with Stringtie
199204

200-
After running the super-reads module (see the <a href="https://github.com/mpertea/stringtie2/blob/master/SuperReads_RNA/README.md">SuperReads_RNA</a> module documentation for usage details), there
205+
After running the super-reads module (see the <a href="https://github.com/gpertea/stringtie/blob/master/SuperReads_RNA/README.md">SuperReads_RNA</a> module documentation for usage details), there
201206
is a BAM file which contains sorted alignment for both short reads and super-reads, called *`sr_merge.bam`*,
202207
created in the selected output directory. This file can be directly given as the main input file
203208
to StringTie as described in the [Running StringTie](#running-stringtie) section above.

run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [ ! -f test_data/human-chr19_P.gff ]; then
2222
else
2323
echo "..Downloading test data.."
2424
#use curl to fetch the tarball from a specific github release or branch
25-
curl -sLJO https://github.com/mpertea/stringtie2/raw/test_data/test_data.tar.gz
25+
curl -sLJO https://github.com/gpertea/stringtie/releases/download/v2.0/test_data.tar.gz
2626
unpack_test_data
2727
fi
2828
fi

test_data/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## Test data
2+
3+
The test data can be automatically retrieved by the `run_tests.sh` script included
4+
with all source or binary distributions of StringTie, or downloaded separately from this url:
5+
https://github.com/gpertea/stringtie/raw/test_data/test_data.tar.gz
6+
7+
The `run_tests.sh` script will then run StringTie on these data sets and compare the output with the
8+
precomputed, expected output for each case. If the output of each test matches the
9+
expected output, the test is considered successful (and "OK." will be shown on the next line),
10+
otherwise an error will be reported.
11+
12+
## Running StringTie on the test data separately
13+
14+
The command lines shown below assume that the _stringtie_ program is installed somewhere
15+
in the shell's PATH. If that is not the case, the `stringtie` comand below should be prepended
16+
with the directory path to the _stringtie_ executable
17+
18+
### Test 1: Input consists of only alignments of short reads
19+
20+
```
21+
stringtie -o short_reads.out.gtf short_reads.bam
22+
```
23+
24+
### Test 2: Input consists of alignments of short reads and superreads
25+
26+
```
27+
stringtie -o short_reads_and_superreads.out.gtf short_reads_and_superreads.bam
28+
```
29+
30+
### Test 3: Input consists of alignments of long reads
31+
32+
```
33+
stringtie -L -o long_reads.out.gtf long_reads.bam
34+
```
35+
36+
### Test 4: Input consists of alignments of long reads and reference annotation (guides)
37+
38+
```
39+
stringtie -L -G human-chr19_P.gff -o long_reads_guided.out.gtf long_reads.bam
40+
```

0 commit comments

Comments
 (0)