# Ways to make a variant calling for RNA Seq (paired-end)

**URL:** <https://help.galaxyproject.org/t/ways-to-make-a-variant-calling-for-rna-seq-paired-end/9497>\
**Category:** usegalaxy.org support\
**Tags:** freebayes, transcriptomics, variant-analysis, vcf, rna\_star\
**Created:** [February 22, 2023, 4:57pm UTC](https://help.galaxyproject.org/t/ways-to-make-a-variant-calling-for-rna-seq-paired-end/9497 "2023-02-22T16:57:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sofi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Sofi](https://help.galaxyproject.org/u/Sofi)\
**Post date:** [February 22, 2023, 4:57pm UTC](https://help.galaxyproject.org/t/ways-to-make-a-variant-calling-for-rna-seq-paired-end/9497/1 "2023-02-22T16:57:13Z")

</div>

Hello everyone! I’m a newer in bioinformatic and galaxy - sorry 😷  
I trying to use RNA STAR tool. I have full human transcriptom (RNAseq) in 8files (with R1 and R2 reads). So I have to get names of genes and their characteristics (pathogenic etc) in the end for clinicians.  
I want to create vcf file for 1-snpsift variant type and 2-snpsift annotate SNPs from dbsnp. And after this I wanted download this vcf file (for ClinVar annotation etc).

I dont need the Trimmomatic so I was trying to do next:  
**Fastq–\>RNA-STAR(hg38)–\>Samtoolsmerge(for mapped.bam)—\>FreeBayes**

But FreeBayes show me the error:

- { “code\_desc”: “”, “desc”: “Fatal error: Exit code 101 ()”, “error\_level”: 3, “exit\_code”: 101, “type”: “exit\_code” }  
Job API ID: bbd44e69cb8906b5339b2fad2d9562d3

Please explain me what I do wrong and which tools I need to use for my purpose?

---

<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:** [March 1, 2023, 12:38am UTC](https://help.galaxyproject.org/t/ways-to-make-a-variant-calling-for-rna-seq-paired-end/9497/2 "2023-03-01T00:38:34Z")

</div>

Hi @Sofi

> [@Sofi](#):
>
> I dont need the Trimmomatic so I was trying to do next:  
> **Fastq–\>RNA-STAR(hg38)–\>Samtoolsmerge(for mapped.bam)—\>FreeBayes**

You should at least run **FastQC** and probably **Fastq Info** on your read data to make sure there is not a content/format problem.

These prior topics may also be helpful: [Search results for 'FreeBayes order:likes' - Galaxy Community Help](https://help.galaxyproject.org/search?q=FreeBayes%20order%3Alikes)

> [@Sofi](#):
>
> But FreeBayes show me the error:
> 
> - { “code\_desc”: “”, “desc”: “Fatal error: Exit code 101 ()”, “error\_level”: 3, “exit\_code”: 101, “type”: “exit\_code” }

Does the Dataset Details view contain any other informative messages? If not, check the prior topics for common help with this protocol, along with the tutorials below.

If you need more help, please post back a share link to the history containing this error. Please leave all inputs and outputs undeleted, along with the outputs from the QA checks. [Sharing your History](https://training.galaxyproject.org/training-material/faqs/galaxy/histories_sharing.html)

* * *

**Tutorials**

> **[Galaxy Training: NGS data logistics](https://training.galaxyproject.org/training-material/topics/introduction/tutorials/galaxy-intro-ngs-data-managment/tutorial.html)**
>
> Galaxy is a scientific workflow, data integration, and data and analysis persistence and publishing platform that aim...

> **[Galaxy Training: Quality Control](https://training.galaxyproject.org/training-material/topics/sequence-analysis/tutorials/quality-control/tutorial.html)**
>
> Analyses of sequences

> **[Galaxy Training: Variant Analysis](https://training.galaxyproject.org/training-material/topics/variant-analysis/)**
>
> Genetic differences (variants) between healthy and diseased tissue,
> between individuals of a population, or between s...

---

<div class="post-metadata">

**Author:** ![Sofi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Sofi](https://help.galaxyproject.org/u/Sofi)\
**Post date:** [March 27, 2023, 10:25am UTC](https://help.galaxyproject.org/t/ways-to-make-a-variant-calling-for-rna-seq-paired-end/9497/3 "2023-03-27T10:25:03Z")

</div>

Thank you for answer. I’m sure for 1000% about high quality of my fastq-files. I made FastQC for files to demonstration it.  
Here’s my history [Galaxy](https://usegalaxy.org/u/sofi_23/h/ngs)  
My problem is 106. FreeBayes.  
I’ll be waiting for your commentaries 🥹

---

<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:** [March 27, 2023, 7:38pm UTC](https://help.galaxyproject.org/t/ways-to-make-a-variant-calling-for-rna-seq-paired-end/9497/4 "2023-03-27T19:38:24Z")

</div>

Hi @Sofi

It looks like you mapped against a different reference genome when running RNAStar (likely by accident).

Try rerunning those alignment jobs using the exact same reference database that is used for other steps → **hg38**. Then proceed with downstream steps using the newer BAM outputs.

---

<div class="post-metadata">

**Author:** ![Sofi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Sofi](https://help.galaxyproject.org/u/Sofi)\
**Post date:** [April 2, 2023, 11:56pm UTC](https://help.galaxyproject.org/t/ways-to-make-a-variant-calling-for-rna-seq-paired-end/9497/5 "2023-04-02T23:56:13Z")

</div>

Thank you, it really was a mistake. I used Samtools merge for my 4 .bam files after RNA STAR and file “samtools merge” is 2.3GB. But after FreeBayes file contains ~ 18k lines (7Mb)  
Tell me please is it normal for RNAseq?  
Can I use next tools for this file:  
SnpSift Filter → SnpSift Annotate (+dbSNP\_146\_hg38.vcf)

> **[Galaxy](https://usegalaxy.org/published/history?id=ae0764a09e262fd5)**
>
> Galaxy is a community-driven web-based analysis platform for life science research.

---

<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:** [April 12, 2023, 7:03pm UTC](https://help.galaxyproject.org/t/ways-to-make-a-variant-calling-for-rna-seq-paired-end/9497/6 "2023-04-12T19:03:58Z")

</div>

> [@Sofi](#):
>
> I used Samtools merge for my 4 .bam files after RNA STAR and file “samtools merge” is 2.3GB. But after FreeBayes file contains ~ 18k lines (7Mb)

Do you mean the VCF output? Yes, those are usually much smaller than BAMs.

Examples are included in the variant tutorials linked above.
