gseq.create_track | R Documentation |
Create tracks based on the presence of specific sequences.
gseq.create_track(s, track, strand = 1, intervals = gintervals.all())
s |
sequence to look for. can be a regex. |
track |
name of the track to create |
strand |
strand of the sequences |
intervals |
intervals set |
## Not run:
gseq.create_track("C", "seq.C")
gseq.create_track("T", "seq.T")
gseq.create_track("CG", "seq.CG") # genome CpGs
gseq.create_track("[GC]", "seq.G_or_C") # C or G (for GC content calculations)
# create all dinucleotide tracks
dinucs <- expand.grid(c("T", "C", "G", "A"), c("T", "C", "G", "A"))
dinucs <- apply(dinucs, 1, paste, collapse = "")
for (dinuc in dinucs) {
message(dinuc)
gseq.create_track(dinuc, paste0("seq.", dinuc))
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.