Differing sequence lengths

289 views
Skip to first unread message

Nancy Sheridan

unread,
Feb 7, 2020, 2:40:58 PM2/7/20
to Stacks
Hello,

I'm using Stacks 2.3e and demultiplexed my ddRAD SE raw reads without issue. Before proceeding with ustacks, I used Bowtie2 as a way to filter my anthozoan reads from its known symbiont by mapping to that symbiont's genome. So the resulting unaligned reads (presumably anthozoan) are what I want to use for downstream analysis. When using those .fq.gz files for ustacks, I found that some individuals have differing lengths and I'm getting the following error message with ustacks:

Error: different sequence lengths detected, this will interfere with Stacks algorithms, trim reads to uniform length (override this check with --force-diff-len).

Should I run these .fq.gz files through process_radtags again or is there another way to trim the reads? I did try to run ustacks with the --force-dff-len option, but it didn't work; my test of 4 individuals only had output for 1 of those 4.

Thanks for any/all help.
Nancy

Daniel Dols

unread,
Feb 7, 2020, 2:56:59 PM2/7/20
to stacks...@googlegroups.com
Hi! You can always truncate your reads' lenghts by using the -t flag in process_radtags. 

This way process_radtags will discard those reads below the specified length and truncate ones above.


Cheers!




 
El dv., 7 de febr. 2020, 20:41, Nancy Sheridan <nshe...@mail.usf.edu> va escriure:
--
Stacks website: http://catchenlab.life.illinois.edu/stacks/
---
You received this message because you are subscribed to the Google Groups "Stacks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stacks-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/stacks-users/8b0689a0-326f-44fb-87a6-df0097eb9bac%40googlegroups.com.

Nancy Sheridan

unread,
Feb 8, 2020, 9:45:03 AM2/8/20
to Stacks
Thank you! This worked.


On Friday, February 7, 2020 at 2:56:59 PM UTC-5, Dan wrote:
Hi! You can always truncate your reads' lenghts by using the -t flag in process_radtags. 

This way process_radtags will discard those reads below the specified length and truncate ones above.


Cheers!




El dv., 7 de febr. 2020, 20:41, Nancy Sheridan <nshe...@mail.usf.edu> va escriure:
Hello,

I'm using Stacks 2.3e and demultiplexed my ddRAD SE raw reads without issue. Before proceeding with ustacks, I used Bowtie2 as a way to filter my anthozoan reads from its known symbiont by mapping to that symbiont's genome. So the resulting unaligned reads (presumably anthozoan) are what I want to use for downstream analysis. When using those .fq.gz files for ustacks, I found that some individuals have differing lengths and I'm getting the following error message with ustacks:

Error: different sequence lengths detected, this will interfere with Stacks algorithms, trim reads to uniform length (override this check with --force-diff-len).

Should I run these .fq.gz files through process_radtags again or is there another way to trim the reads? I did try to run ustacks with the --force-dff-len option, but it didn't work; my test of 4 individuals only had output for 1 of those 4.

Thanks for any/all help.
Nancy

--
Stacks website: http://catchenlab.life.illinois.edu/stacks/
---
You received this message because you are subscribed to the Google Groups "Stacks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stacks...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages