Description Usage Arguments Author(s) Examples
Replaces all selected positions in a fasta file with the character N
1 2 3 4 5 6 7 8 9 10 | makeMaskedFasta(fastaIn, ...)
## S4 method for signature 'character'
makeMaskedFasta(
fastaIn,
fastaOut,
posToReplace,
splitOnSeqlevels = TRUE,
verbose = TRUE
)
|
fastaIn |
character string of the path for the fasta file to be used |
... |
arguments to pass on |
fastaOut |
character string of the path for the masked fasta file (no extension) |
posToReplace |
GRanges object with the genomic ranges to replace |
splitOnSeqlevels |
write on file for each seqlevel to save memory |
verbose |
makes function more talkative |
Jesper R. Gadin
1 2 3 4 | data(ASEset.sim)
gr <- rowRanges(ASEset.sim)
fastaIn <- system.file('extdata/hg19.chr17.subset.fa', package='AllelicImbalance')
makeMaskedFasta(fastaIn=fastaIn, fastaOut="fastaOut",posToReplace=gr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.