## a convience function to map hairpin
find_hairpin = function(thisRead,featureType="hairpin",
feature=list(
"fwd"="GTCGTATCCAGTGCAGGGTCCGAGGTATTCGCACTGGATACGAC",
"rev"="GTCGTATCCAGTGCGAATACCTCGGACCCTGCACTGGATACGAC"
),tol=0.2){
rv = matchPatternStranded(feature$fwd, feature$rev, thisRead$read, thisRead$qname, tol=tol)
rv$featureType=rep(featureType,length(rv))
rv
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.