Skewer
Suppose the content of test.fasta is:
>made-up example
ATCGTAGTATTAGGATCGTCGCTGATGACTGAatgatgatagttacctagagctaGAGACCGCCT
GGGAATACCGGGTGCTGTAGGCTTTGGAATTCcgacatcacgaccccgatagaATAGCTAGCTA
TCGATCGATCTGACATAGACA
and you use the following command:
$ cat test.fasta | skewer -x ATAGCTAGCTATCGATC -e 3 - -1 2>/dev/null | skewer -x ATTAGGATCGTCGCTGATGACTGA -e 5 - -1 2>/dev/null
you will get the following result:
>made-up example
atgatgatagttacctagagctaGAGACCGCCTGGGAATACCGGGTGCTGTAGGCTTTGGAATTCcgacatcacgaccccgataga
where ATAGCTAGCTATCGATC is the 3' end adapter sequence; ATTAGGATCGTCGCTGATGACTGA is the 5' end adapter sequence.
See http://seqanswers.com/forums/showthr...ghlight=skewer for more details.
Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
X
-
Agrep
agrep, a fuzzy grep version:
best implemeted in TRE:
http://en.wikipedia.org/wiki/TRE_(computing)
Leave a comment:
-
adaptor/barcode trimming that are NOT in the 5' or 3' end
Hi,
Is there any tool available that allows to trim adapter (and primers) that are inside of the reads (not in the 5' or 3' ends)?
For whatever reason a portion of my reads have a variable number of random bases before the adapter and primer. I need a tool that is able to trim the adapter+primer and any bases before it (this is between the 5'end and the adapter). I need to do the same for the 3'ends, where I have the same issue.
This is an example of such a read. In red are the adapter and primer sequences. After trimming, only the lower case portion should remain:
>made-up example
ATCGTAGTATTAGGATCGTCGCTGATGACTGAatgatgatagttacctagagcta[...]cgacatcacgaccccgatagaATAGCTAGCTATCGATCGATCTGACATAGACA
A custom script would do it as well. I tried using the bash tool grep, but wasn't able to make it work.
These sequences are amplicons generated using barcoded COI primers in PacBIO (with the Conserved Consensus Sequencing protocol). When I say adapter I mean the barcode that was added to the primers to be able to split the libraries.
Thanks in advance for your answers.
Iria
Latest Articles
Collapse
-
by seqadmin
The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...-
Channel: Articles
02-24-2025, 06:31 AM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, 03-03-2025, 01:15 PM
|
0 responses
169 views
0 likes
|
Last Post
by seqadmin
03-03-2025, 01:15 PM
|
||
Started by seqadmin, 02-28-2025, 12:58 PM
|
0 responses
256 views
0 likes
|
Last Post
by seqadmin
02-28-2025, 12:58 PM
|
||
Started by seqadmin, 02-24-2025, 02:48 PM
|
0 responses
636 views
0 likes
|
Last Post
by seqadmin
02-24-2025, 02:48 PM
|
||
Started by seqadmin, 02-21-2025, 02:46 PM
|
0 responses
265 views
0 likes
|
Last Post
by seqadmin
02-21-2025, 02:46 PM
|
Leave a comment: