I have a question and it would be great if anybody who knows help me in it. I have a big FASTA format file that contains FASTA sequence of the chip-seq peaks. I did motif analysis for my data and now I have many known motifs like FOXA1 or SP1 motif. But actually I want to know, in which position (peak) I have sequence of that specific motif. So, I have the sequence of the motif and I want to search this motif in my FASTA file to find where there is this sequence . I hope i delivered the concept to you. This is completely new for me and I have'nt had any experiance in this issue.
df1<-data.frame(position=c( ">69366501",">69366750",">69368467",">69766890"),SEQ=c("GAAGGAGAAGGGGAGAGACTGGAAGAGAAGGAAGGAGCTTTGGG","AAGAGGGGAAAAGACCATAGCAGAGAGCTCAGCCTGACCACGG","AAGAGGGGAATTTGATAGCAGTGCAGCTAGCTAGCGGGCACCACGG","GAAGGAGAAGGGGAGAGACTGGTATAGATGACCATAGGAAGGAGCTTTGGG"))
and for example the sequence that I want to search it and find it in my file is "AGTGCAGCTAGCTAGCGGGC" so, I want to see that I have this motif sequence in my file or not and if yes, where is it, in whcih position.
- it is not exact file that I have but I think it is good to deliver my meaning. My main and original file is in FASTA format.
Thanks in advance.
