trim.seqs oligos

Hi,
I have got a fasta file that which seem to contain some overrepresented sequence bits in it. (Seems that some sequences have got adapters still clinging to them).So I thought trim.seqs should take care of removing those oligos from sequences, or will they just remove all sequences containing these oligos?
I have tried both to put those two oligos into oligo files as primers and as barcodes.

example. run 1.
pcr.seqs(fasta=IValgus.fastq.keep.below, oligos=ollikad, processors=8)
where ollikad is a file
forward GATCGGAAGAGCACACGTCTGAACTCCAGTCACCAGATCATCTCGTATGC
forward AGATCGGAAGAGCACACGTCTGAACTCCAGTCACCAGATCATCTCGTATG
and run 2.
where ollikad is a file
barcode GATCGGAAGAGCACACGTCTGAACTCCAGTCACCAGATCATCTCGTATGC TRUSEQ1
barcode AGATCGGAAGAGCACACGTCTGAACTCCAGTCACCAGATCATCTCGTATG TRUSEQ2

Both of the runs will result with empty trim.file and all sequences being sorted to scrap.file.
As a matter of fact the run which had these oligos tagged as barcodes, will add |b at the end of the sequence names in scrap.file not group names TRUSEQ1 or 2.
What is going on? Can I somehow still use the trim.seqs or pcr.seqs to accomplish my task? *What did I do wrong, or is there some bug?
The version information for these runs is.
64Bit Version
mothur v.1.28.0
Last updated: 11/2/2012


*The task being to remove these oligos from my sequences.

Hi Jenz,

I think you need to double check what you’re trying to do. These seem to contain the Illumina TrueSeq adapters and barcodes. If you’re doing Illumina sequencing, then you shouldn’t have the adapter/barcode/primer sequences. So, I’m not clear what you want to do here… Recall that trim.seqs only looks for hte barcodes / primers at the very beginning of the sequnece.

Pat

OK in this case I’ll have to do some Perl myself I guess. I was hoping to use these features of mothur to get rid of those suspect sequences/remove those oligos from sequences.
Shouldn’t the trim file be just full and scrap wholly empty when there are no such oligos in the beginning of sequences. The current situation of scrap wholly full and trim wholly empty seems to suggest that the trim.seqs command finds every sequence to contain this oligo ?

No, if trim.seqs can’t find the barcode and the primer then it goes to scrap since we assume everything will have a barcode/primer. The “|b” means that it got scrapped because a barcode couldn’t be found.