
Extract DNA Sequences for Orthogroups
orthogroupDNA.RdExtracts genomic DNA sequences for all genes in the experiment and writes them to FASTA files. Sequences are retrieved from species-specific reference genomes and reverse-complemented if on the minus strand.
Arguments
- data
List. Experiment object from
newExperimentcontaining:orthogroupsGRanges with genomic coordinates and metadata columns
geneID,orthogroupID,speciesID.speciesInfodata.frame with
speciesIDandgenome(path to reference FASTA).dirs$dnaOutput directory for FASTA files.
- nbThreads
Integer. Total number of threads available.
- byOrthogroup
Logical. Output file organization:
TRUE(default): One FASTA per orthogroup containing all species.FALSE: One FASTA per gene.
Value
Invisibly returns a named DNAStringSet containing all extracted
sequences, with gene IDs as names.