# Cuffdiff BAM record error

**URL:** <https://help.galaxyproject.org/t/cuffdiff-bam-record-error/5419>\
**Category:** usegalaxy.org support\
**Created:** [February 19, 2021, 1:08pm UTC](https://help.galaxyproject.org/t/cuffdiff-bam-record-error/5419 "2021-02-19T13:08:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![barbaros](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/barbaros/32/3749_2.png) [@barbaros](https://help.galaxyproject.org/u/barbaros)\
**Post date:** [February 19, 2021, 1:08pm UTC](https://help.galaxyproject.org/t/cuffdiff-bam-record-error/5419/1 "2021-02-19T13:08:08Z")

</div>

I am continuing the “Genomic Data Science” course from Coursera. However, I have to use Cufflink-Cuffmerge-Cuffdiff sequentially to perform differential expression analysis that existed last week. Cufflink and Cuffmerge work fine, but whatever I tried Cuffdiff failed. I could not understand why this is so.

BAM record error: found spliced alignment without XS attribute

I get this error line.

---

<div class="post-metadata">

**Author:** ![gbbio](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/gbbio/32/366_2.png) [@gbbio](https://help.galaxyproject.org/u/gbbio)\
**Post date:** [February 22, 2021, 9:44am UTC](https://help.galaxyproject.org/t/cuffdiff-bam-record-error/5419/2 "2021-02-22T09:44:13Z")

</div>

I think it can be solved by setting the `Library prep used for input reads` to `ff-firststrand`. To see this option you need to set parameter `Set Advanced Cuffdiff parameters?` to `yes`.

I am not sure what it exactly does but then at least you have a starting point to solve it. Hopefully a more experienced user can give an better answer.
