Error in processAmplicons "hairpin sequence length not with specified length"
1
0
Entering edit mode
@luciacaceres-10601
Last seen 8.5 years ago

Hi,

When I type the following code:

> x = processAmplicons("Index2.Plate10.fastq", barcodefile="Samples1.txt",
+     hairpinfile="Hairpins sense.txt", hairpinStart=29, hairpinEnd=50, verbose=TRUE)
I get:

Error in processAmplicons("Index2.Plate10.fastq", barcodefile = "Samples1.txt",  :
  Hairpin sequence length is set to 22, there are hairpin sequences not with specified length.

I checked the length of my hairpin sequences, in my hairpin file/reference library and they are all 22nt long.

I don't understand what is going wrong. If you have any ideas of what I can do/check please let me know.

Thank,

 

processamplicons • 1.3k views
ADD COMMENT
0
Entering edit mode
Matthew Ritchie ▴ 1000
@matthew-ritchie-650
Last seen 7 months ago
Australia

This error message suggests you have hairpins of different lengths in your library.

To check if this is the case, try running something like: 

hp = read.delim("Hairpins sense.txt", stringsAsFactors=FALSE)
dim(hp)
summary(sapply(hp$Seq, FUN="nchar"))
which(sapply(hp$Seq, FUN="nchar")!=22)
hp[sapply(hp$Seq, FUN="nchar")!=22,]
ADD COMMENT
0
Entering edit mode

Thank you for the code. It helped a lot.

ADD REPLY

Login before adding your answer.

Traffic: 623 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6