# RNA Seq, error alignment after trimming

**URL:** <https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791>\
**Category:** usegalaxy.eu support\
**Tags:** troubleshooting, transcriptomics, reference-annotation\
**Created:** [October 6, 2022, 9:13am UTC](https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791 "2022-10-06T09:13:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![zee\_azizah](https://avatars.discourse-cdn.com/v4/letter/z/77aa72/32.png) [@zee\_azizah](https://help.galaxyproject.org/u/zee_azizah)\
**Post date:** [October 6, 2022, 9:13am UTC](https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791/1 "2022-10-06T09:13:51Z")

</div>

Hello,

I have my datasets from bulk RNA Sequencing. I tried to process my datasets, it’s mouse, using the workflow from Galaxy tutorial. But after the trimming and going in to the alignment with RNA STAR, it gives me lots of error. Like:

Aug 17 10:25:31 … started STAR run  
Aug 17 10:25:31 … loading genome  
Aug 17 10:33:47 … started 1st pass mapping  
EXITING because of FATAL ERROR in reads input: quality string length is not equal to sequence length  
@A00643:482:HYYN7DSXY:1:1101:2

and error on gtf file  
Aug 17 11:17:05 … started STAR run  
Aug 17 11:17:05 … loading genome  
Aug 17 11:21:48 … processing annotations GTF  
Fatal INPUT FILE error, no valid exon lines in the GTF file: /data/dnb06/galaxy\_db/files/9/3/e/dataset\_93e3f860-b7ec-4bec-8cb2-6d

I’m a noobs in this sequencing analysis stuff. How can I fix the error? I will highly appreciate your help 🙂

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [October 6, 2022, 8:28pm UTC](https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791/2 "2022-10-06T20:28:11Z")

</div>

Hi @zee_azizah

> [@zee\_azizah](#):
>
> EXITING because of FATAL ERROR in reads input: quality string length is not equal to sequence length  
> **@A00643:482:HYYN7DSXY:1:1101:2**

At least one of your fastq read datasets is truncated, and that starts with the sequence ID in the message. Try uploading that data again, as Galaxy cannot repair uploaded truncated fastq data.

Never map reads unless they pass basic QA checks. The tool may not fail – just produce incomplete results and that are difficult to detect. If the tutorial includes QA/QC steps, this should have been caught during QA and before the alignment step. If the tutorial doesn’t include QA/QC steps, then see this tutorial: [Quality Control](https://training.galaxyproject.org/training-material/topics/sequence-analysis/tutorials/quality-control/tutorial.html).

> [@zee\_azizah](#):
>
> Fatal INPUT FILE error, no valid exon lines in the GTF file:

This means that the reference annotation isn’t in a format that the tool can use. See prior Q&A at this forum (via the tag I added to your post), and this FAQ [working-with-gff-gft-gtf2-gff3-reference-annotation](https://training.galaxyproject.org/training-material/faqs/galaxy/#working-with-gff-gft-gtf2-gff3-reference-annotation). GTF will work best with this tool. Make sure any header lines are removed.

---

<div class="post-metadata">

**Author:** ![zee\_azizah](https://avatars.discourse-cdn.com/v4/letter/z/77aa72/32.png) [@zee\_azizah](https://help.galaxyproject.org/u/zee_azizah)\
**Post date:** [October 10, 2022, 6:38am UTC](https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791/3 "2022-10-10T06:38:06Z")

</div>

@jennaj Thanks a lot for the explanation. That means the trimming result is the culprit, right? Should I skip the trimming and just go straight to alignment?

---

<div class="post-metadata">

**Author:** ![zee\_azizah](https://avatars.discourse-cdn.com/v4/letter/z/77aa72/32.png) [@zee\_azizah](https://help.galaxyproject.org/u/zee_azizah)\
**Post date:** [October 10, 2022, 12:34pm UTC](https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791/4 "2022-10-10T12:34:04Z")

</div>

@jennaj I tried to run my un-trimmed data on RNA STAR, and fixing the gtf file by removing the header but still getting the same error

Oct 10 14:19:56 … started STAR run  
Oct 10 14:19:56 … loading genome  
Oct 10 14:25:35 … processing annotations GTF  
Fatal INPUT FILE error, no valid exon lines in the GTF file: /data/dnb07/galaxy\_db/files/a/a/4/dataset\_aa45ad6e-56f2-4303-8e43-a1

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [October 11, 2022, 7:27pm UTC](https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791/5 "2022-10-11T19:27:45Z")

</div>

> [@zee\_azizah](#):
>
> Fatal INPUT FILE error, no valid exon lines in the GTF file

If the headers are removed, then you can trust the error message more. If the GTF doesn’t contain lines with “exon” in the third column (feature), you’ll need to find a version for your genome species/build that has that annotated data content OR try generating that data with the tool **gffread** as explained in the FAQ.

You are mapping against Mouse, correct? If you cannot generate a GTF with the annotation you have now – most public Galaxy servers host UCSC’s version of genome assemblies when available for a species and UCSC hosts the matching annotation GTFs. Those represent annotation from one or more “Gene and Gene Prediction” tracks. Find the files in their Downloads area (avoid the Table Browser – the data is usually too large to extract). Make sure the GTF’s genome build “database” is exactly the same as the reference genome “database” that you are mapping against.

**mm10** here [Index of /goldenPath/mm10/bigZips/genes](https://hgdownload.soe.ucsc.edu/goldenPath/mm10/bigZips/genes/)  
**mm39** here [Index of /goldenPath/mm39/bigZips/genes](https://hgdownload.soe.ucsc.edu/goldenPath/mm39/bigZips/genes/)

The path is similar for other UCSC genome databases indexed for mapping tools. Copy the URL for the GTF file, paste that into the Upload tool, and leave all settings at default. The GTF will automatically uncompress and be ready to use without other formatting changes.

```
https://hgdownload.soe.ucsc.edu/goldenPath/<database>/bigZips/genes/

```

One of these options should work.

---

<div class="post-metadata">

**Author:** ![zee\_azizah](https://avatars.discourse-cdn.com/v4/letter/z/77aa72/32.png) [@zee\_azizah](https://help.galaxyproject.org/u/zee_azizah)\
**Post date:** [October 13, 2022, 12:39pm UTC](https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791/6 "2022-10-13T12:39:31Z")

</div>

@jennaj the GTF file looks like this after the header was removed

 ![image](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/3/31771311be377ff5fd547713a90f4f631722d63c.png)

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [October 13, 2022, 6:11pm UTC](https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791/7 "2022-10-13T18:11:58Z")

</div>

Hi @zee_azizah

Ok – that screenshot definitely helps.

Your annotation GTF has Ensembl chromosome identifiers like **1**. The mouse reference genome index you are mapping against in Galaxy (mm10) was sourced from UCSC, and has UCSC chromosome identifiers like **chr1**.

Quote from [understanding-input-error-messages](https://training.galaxyproject.org/training-material/faqs/galaxy/#understanding-input-error-messages)

> - Input mismatch tips.
> - Do the chromosome/sequence identifiers exactly match between all inputs?
> - “Chr1” and “chr1” and “1” do not mean the same thing to a tool.

* * *

**You have two options.** The first is _much_ easier and strongly recommended unless you have a specific reason to use the annotation you already have.

1. Get a GTF reference annotation file from a data provider that uses UCSC identifiers instead.

2. Technically, you can also _try_ to convert the chromosome identifiers using this tool → **Replace column** by values which are defined in a convert file.

---

<div class="post-metadata">

**Author:** ![zee\_azizah](https://avatars.discourse-cdn.com/v4/letter/z/77aa72/32.png) [@zee\_azizah](https://help.galaxyproject.org/u/zee_azizah)\
**Post date:** [October 14, 2022, 11:20am UTC](https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791/8 "2022-10-14T11:20:37Z")

</div>

@jennaj oh okay, now I get it. I tried the first option and it works. Wonderful! Thanks a lot!

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [December 21, 2023, 12:40am UTC](https://help.galaxyproject.org/t/rna-seq-error-alignment-after-trimming/8791/9 "2023-12-21T00:40:42Z")

</div>

Closed on December 21, 2023, 12:40am UTC


