strandbias = function(fwd.ref,fwd.alt,rev.ref,rev.alt){
if(fwd.alt+rev.alt==0 | fwd.ref+rev.ref==0){
return(NA)
} else {
sb = abs((fwd.alt/(fwd.ref+fwd.alt))-(rev.alt/(rev.ref+rev.alt)))
sb = round(sb,5)
return(sb)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.