View source: R/to_genomic_ranges.R
| fa_to_genomic_ranges | R Documentation |
This function reads sequences from a FASTA file and converts them to a GenomicRanges object. If named with format ">chr2:1-10:[+|-]:[seq_name]", the name will be parsed into GRanges components.
fa_to_genomic_ranges(input_seq)
input_seq |
Path to the input FASTA file |
A GenomicRanges object containing: - GRanges information (seqnames, ranges, strand) - sequence data from FASTA file - Complementary sequences (if provided) - Names from FASTA headers
# Example with single FASTA file
input_seq <- system.file("extdata", "example1.fasta", package = "TmCalculator")
gr <- fa_to_genomic_ranges(input_seq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.