Is there any easy way to trim a fasta/fastq before and after a certain motif occurance?
As example, this would be my sequence ATGAAACCTTTGGGGCCCCAGTCAGCTC
My motif of interest would be: GGGGCCCC
I want to trim let's say 5bp 5' and 3bp 3' of the motif occurance which would give you: CCTTTGGGGCCCCAGT
I searched around a bit but could not find any fitting tool. Any ideas/suggestions?