Learn R Programming

MethTargetedNGS (version 1.4.0)

methAlign: Align sequences with the reference sequence using pairwiseAlignment function from BioStrings

Description

This function allow users to align pool of sequences to the reference sequence.

Usage

methAlign(sequence_fasta, ref_seq, sub_mat = FALSE, align_type = "local")

Arguments

sequence_fasta
String value naming an input fasta file. Single sequence or Multiple sequences in a single fasta file
ref_seq
String value naming an input fasta file. Single reference sequence is requried. If multiple sequences were passed only first sequence will be considered as reference.
sub_mat
Substitution matrix for the alignment.
align_type
type of alignment. One of "global", "local", "overlap", "global-local", and "local-global" where "global" = align whole strings with end gap penalties, "local" = align string fragments, "overlap" = align whole strings without end gap penalties, "global-local" = align whole strings in pattern with consecutive subsequence of subject, "local-global" = align consecutive subsequence of pattern with whole strings in subject. Default is "local"

Value

Methylation Matrix. Number of rows represents number of reads in sequence fasta file and number of columns represents number of CpG sites in reference fasta sequence. Only Cytosine of CpG site was observed in the table whether it is methylated or unmethylated.

See Also

compare_samples

Examples

Run this code
healthy = system.file("extdata", "Healthy.fasta", package = "MethTargetedNGS")
reference = system.file("extdata", "Reference.fasta", package = "MethTargetedNGS")
methAlign(healthy,reference)

Run the code above in your browser using DataLab