fasta2df | R Documentation |
This function allows you to convert a FASTA containing CRISPR array spacers to a dataframe compatible with the rest of the package.
fasta2df( fastaFile, arrayNumbers, arrayLengths, arrayOrientations, arrayRepeats, spacerDataFrameName )
fastaFile |
The location of the FASTA file containing the CRISPR array. Spacers will be numbered in the order that they appear in the FASTA file. |
arrayNumbers |
A vector of the numbers to denote which CRISPR array the spacers came from. |
arrayLengths |
A vector of the number of spacers in each CRISPR array. |
arrayOrientations |
A vector indicating the direction of each CRISPR array. Can input either "Forward" or "Reverse". |
arrayRepeats |
A vector indicating the repeat sequence for each CRISPR array. |
spacerDataFrameName |
The name of the dataframe output. |
Given a set of 3 CRISPR arrays of lengths 20, 45, and 100 spacers, all in the forward orientation with the sequence repeat "ATCGATCGATCGATCG", you would enter: df2fasta(fastaFile = "yourFileLocation", arrayNumbers = c(1,2,3), arrayLengths = c(20,45,100), arrayOrientations = c("Forward", "Forward", "Forward"), arrayRepeats = c("ATCGATCGATCGATCG","ATCGATCGATCGATCG","ATCGATCGATCGATCG"), spacerDataFrameName = "yourDataframeName")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.