Yes that made sense, I think it was a misunderstanding from my part, thank you for your clarification.
Hello everyone,
So I just sequenced my pair-end samples using Nextseq and I want to cut the adaptors off so I was planning to use cutadapt for the job. However I seem to have gotten myself confused with how to phrase the command. The cutadapt manual provides the following command as a default for my data (http://cutadapt.readthedocs.io/en/stable/guide.html#illumina-truseq):
cutadapt \ -a AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC \ -A AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTAGATCTCGGTGGTCGCCGTATCATT \ -o trimmed.1.fastq.gz -p trimmed.2.fastq.gz \ reads.1.fastq.gz reads.2.fastq.gz
However since I would also like to remove the indices from each my samples, I was wondering how would I add that to the command (I used NEBNext Adaptors)? Do I just add the index sequence read at the end of the adaptor sequence .
Hopefully the solution is as simple as I assume it is, but thank you in advance :) !
Kind regards,
A
2 answers
OK, so let's look at a typical FASTQ read:
@E00777:238:HABCDCCXY:1:1101:7770:2294 1:N:0:AGCGAAC
ACAGTTGTCCAGTGGCAACAAGGACTCAAGAGATAGAAGACTGATATTATGGTATTTTGAACACCAGCTGAAACCCTTAGTGGCCGAATTTGTGCAGGTCT
+
-AAFFJJJJJF7AFJJAJJJJJAFJJJJ--FF-FF-<FJJJ<F<J<JFJJJ7FFJJJJF<AFJJJJJFF<-JJ<-AAAJFJFJ--77AFFJJFFJJ-7FJA
Line 2 of the read is where cutadapt is doing its work. The index sequence is typically the string of ACGT characters at the end of line 1 (AGCGAAC in this case).
As far as I know, cutadapt doesn't perform any operations on that index sequence. If you want to remove that, you'll need to use a different tool or a sed/ awk command.
Let me know if I'm not understanding your question.
According to me, anything after adapter gets trimmed, so no need to add index sequences seperately for filteration. If you find cutadapt confusing, then you can give try to trimmomatic where you can provide file having all possible adapter sequences to trim.
Log in to answer this question.
cutadaptis for trimming adapters, and bases on both tails ofsequencefor fastq. Theindexsequences is saved in thename-line, line-1, so you do not need to process theindexanymore.but for some specific library, you may have
barcodesequence in the beginning of reads (like 10-bp barcode). For this purpose, you can use the--cutoption incutadaptBe careful, these
barcodeis removed before adapter trimming.