annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/bbmap-39.01-1/docs/guides/AddAdaptersGuide.txt @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 AddAdapters Guide
jpayne@68 2 Written by Brian Bushnell
jpayne@68 3 Last updated December 22, 2015
jpayne@68 4
jpayne@68 5 AddAdapters is designed for grading the performance of adapter-trimming tools. It can add adapters to reads, and annotate the reads with their correct post-trimming length; and it can be run on trimmed reads, to calculate the rates of correct and incorrect trimming. However, it does not understand insert size, so for adding adapters to paired reads, it's better to use RandomReads. As such, this is deprecated for paired reads.
jpayne@68 6
jpayne@68 7
jpayne@68 8 *Usage Examples*
jpayne@68 9
jpayne@68 10
jpayne@68 11 To add adapters to reads:
jpayne@68 12 addadapters.sh in=a.fq out=b.fq adapters=adapters.fa
jpayne@68 13
jpayne@68 14
jpayne@68 15 To grade trimmed reads:
jpayne@68 16 addadapters.sh in=trimmed.fq grade
jpayne@68 17
jpayne@68 18
jpayne@68 19 To use RandomReads instead, to add adapters in the correct location according to insert size:
jpayne@68 20 randomreads.sh ref=ref.fa out=reads.fq len=150 paired reads=100k mininsert=50 maxinsert=350 fragadapter1=ACTG fragadapter2=ACTG
jpayne@68 21 rename.sh in=reads.fq out=renamed.fq renamebytrim interleaved
jpayne@68 22
jpayne@68 23 The result of this will still be named correctly for grading by addadapters. "ACTG" would normally be a much longer adapter sequence.