fa_to_genomic_ranges: Convert FASTA file to GenomicRanges object
Description
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.
Usage
fa_to_genomic_ranges(input_seq)
Value
A GenomicRanges object containing:
- GRanges information (seqnames, ranges, strand)
- sequence data from FASTA file
- Complementary sequences (if provided)
- Names from FASTA headers