-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_meta.Rd
More file actions
38 lines (35 loc) · 963 Bytes
/
create_meta.Rd
File metadata and controls
38 lines (35 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cgat_function.R
\name{create_meta}
\alias{create_meta}
\title{Create metadata table for sequences}
\usage{
create_meta(fastafile, N_filter)
}
\arguments{
\item{fastafile}{List. A list of DNA sequences read by seqinr::read.fasta()}
\item{N_filter}{Integer. N filter threshold (for reference in output)}
}
\value{
data.frame. A data frame with columns: name, length, GC_content,
N_content
}
\description{
Extracts and compiles metadata including sequence length, GC content, and
N content from FASTA sequences.
}
\details{
This function provides useful summary statistics for quality control and
understanding sequence characteristics before phylogenetic analysis.
}
\examples{
# Create test sequences
test_seqs <- list(
seq1 = "ATCGATCGATCG",
seq2 = "GCTAGCTAGCTA",
seq3 = "AAAATTTTCCCCGGGG"
)
# Get metadata
meta <- create_meta(test_seqs, N_filter = 50)
print(meta)
}