Description Usage Arguments Details Examples
This generic function writes a FASTA file of the observed biallelic positions to the current workspace.
1 2 | ## S4 method for signature 'GENOME'
region.as.fasta(object,region.id=FALSE,filename=FALSE,type=1,ref.chr=FALSE)
|
object |
an object of class |
region.id |
region of the genome |
filename |
name of the FASTA file |
type |
1: extract SNPs; 2: extract all nucleotides |
ref.chr |
reference sequence |
In case of type=2
we recommend to use the function
splitting.data(,positions=list( ... ), type=2) before and apply
the region.as.fasta() to this splitted object afterwards. The type=1
method will write a FASTA file including only the biallelic.sites.
region.id
is the the region number specified in the PopGenome class GENOME
.
1 2 3 4 5 | #GENOME.class <- readSNP("Arabidopsis",CHR=1)
# split the data into the genmic positions 100 to 2000
#GENOME.class.split <- splitting.data(GENOME.class, positions=list(100:2000),type=2)
#GENOME.class.split@region.names
#region.as.fasta(GENOME.class.split,1,"my_fasta_file.fas",type=2, ref.chr="chrom1.fas")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.