This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Can anyone give me the code for in-silico digestion of whole genome with two restriction enzyme in "R" through Biostrings package?

Can anyone give me the code for in-silico digestion of whole genome with two restriction enzyme in "R" through Biostrings package?

whole-genome in-silico-digestion

1 answer

DigestDNA() from the DECIPHER package does this, from the documentation:

# Restriction digest of Yeast Chr. 1 with EcoRI and EcoRV
data(yeastSEQCHR1)
sites <- RESTRICTION_ENZYMES[c("EcoRI", "EcoRV")]
seqs <- DigestDNA(sites, yeastSEQCHR1)
seqs[[1]]

pos <- DigestDNA(sites, yeastSEQCHR1, type="positions")
str(pos)

Log in to answer this question.