# rnaSPAdes manual

1. About rnaSPAdes
2. rnaSPAdes specifics
2.1. Running rnaSPAdes
2.2. rnaSPAdes-specific options
2.2. Assemblying strand-specific RNA-Seq
2.3. rnaSPAdes output
3. Assembly evaluation
4. Citation
5. Feedback and bug reports

## 1 About rnaSPAdes

rnaSPAdes is a tool for de novo transcriptome assembly from RNA-Seq data and is suitable for all kind of organisms. rnaSPAdes is a part of SPAdes package since version 3.9. Information about SPAdes download, requirements, installation and basic options can be found in SPAdes manual. Below you may find information about differences between SPAdes and rnaSPAdes.

## 2 rnaSPAdes specifics

### 2.1 Running rnaSPAdes

To run rnaSPAdes use

        rnaspades.py [options] -o <output_dir>

or

        spades.py --rna [options] -o <output_dir>

Note that we assume that SPAdes installation directory is added to the `PATH` variable (provide full path to rnaSPAdes executable otherwise: `<rnaspades installation dir>/rnaspades.py`).

Here are several notes regarding rnaSPAdes options:

- rnaSPAdes can take as an input only paired-end and single-end libraries.
- rnaSPAdes does not support `--careful` and `--cov-cutoff` options.
- rnaSPAdes is not compatible with other pipeline options such as `--meta`, `--sc` and `--plasmid`. If you wish to assemble metatranscriptomic data just run rnaSPAdes as it is.
- rnaSPAdes works using only a single k-mer size (automatically detected using read length by the default). We strongly recommend not to change this parameter. In case you have any doubts about your run, do not hesitate to contact us using e-mail given below.

### 2.2 rnaSPAdes-specific options

`--fast`
Speeds up isoform detection stage by removing short low-covered isolated edges from the graph. Note, that short low-expressed transcripts may be missing when this option is used.

### 2.3 Assemblying strand-specific RNA-Seq

rnaSPAdes now supports strand-specific RNA-Seq dataset. You can indicate that the dataset is strand-specific using one of the following options:

`--ss-fr`
The data set is strand-specific and first read in pair corresponds to actual gene strand.

`--ss-rf`
The data set is strand-specific and first read in pair corresponds to reverse gene strand.

If the data set is single-end use `--ss-fr` option in case when reads correspond to gene strand and `--ss-rf` otherwise.

### 2.4 rnaSPAdes output

rnaSPAdes outputs one main FASTA file named `transcripts.fasta`. The corresponding file with paths in the `assembly_graph.fastg` is `transcripts.paths`.

In addition rnaSPAdes outputs transcripts with different level of filtration into `<output_dir>/`:

- `hard_filtered_transcripts.fasta` – includes only long and reliable transcripts with rather high expression.
- `soft_filtered_transcripts.fasta` – includes short and low-expressed transcipts, likely to contain junk sequences.

We reccomend to use main `transcripts.fasta` file in case you don't have any specific needs for you projects. Do not hesitate to contact us using e-mail given below.

Contigs/scaffolds names in rnaSPAdes output FASTA files have the following format:
`>NODE_97_length_6237_cov_11.9819_g8_i2`
Similarly to SPAdes, `97` is the number of the transcript, `6237` is its sequence length in nucleotides and `11.9819` is the k-mer coverage. Note that the k-mer coverage is always lower than the read (per-base) coverage. `g8_i2` correspond to the gene number 8 and isoform number 2 within this gene. Transcripts with the same gene number are presumably received from same or somewhat similar (e.g. paralogous) genes. Note, that the prediction is based on the presence of shared sequences in the transcripts and is very approximate.

## 3 Assembly evaluation

rnaQUAST may be used for transcriptome assembly quality assessment for model organisms when reference genome and gene database are available. rnaQUAST also includes BUSCO and GeneMarkS-T tools for de novo evaluation.

## 4 Citation

If you use rnaSPAdes in your research, please include main SPAdes paper Bankevich, Nurk et al., 2012 in your reference list. Paper on rnaSPAdes is to be submitted.

## 5 Feedback and bug reports

Your comments, bug reports, and suggestions are very welcomed. They will help us to further improve rnaSPAdes.

If you have any troubles running rnaSPAdes, please send us `params.txt` and `spades.log` from the directory `<output_dir>`.

Address for communications: spades.support@cab.spbu.ru.