Description Usage Arguments Value Author(s) Examples
the wrapper function for SangerContig
1 2 3 4 5 6 7 8 9 10 | SangerContig(inputSource = "ABIF", fastaFileName = "",
namesConversionCSV = NULL, parentDirectory = "", contigName = "",
suffixForwardRegExp = "_F.ab1", suffixReverseRegExp = "_R.ab1",
TrimmingMethod = "M1", M1TrimmingCutoff = 1e-04,
M2CutoffQualityScore = NULL, M2SlidingWindowSize = NULL,
baseNumPerRow = 100, heightPerRow = 200, signalRatioCutoff = 0.33,
showTrimmed = TRUE, refAminoAcidSeq = "", minReadsNum = 2,
minReadLength = 20, minFractionCall = 0.5, maxFractionLost = 0.5,
geneticCode = GENETIC_CODE, acceptStopCodons = TRUE,
readingFrame = 1, processorsNum = NULL)
|
inputSource |
The input source of the raw file. It must be |
fastaFileName |
If |
namesConversionCSV |
The file path to the CSV file that provides read names that follow the naming regulation. If |
parentDirectory |
The parent directory of all of the reads contained in ABIF format you wish to analyse. In SangerContig, all reads must be in the first layer in this directory. |
contigName |
The contig name of all the reads in |
suffixForwardRegExp |
The suffix of the filenames for forward reads in regular expression, i.e. reads that do not need to be reverse-complemented. For forward reads, it should be |
suffixReverseRegExp |
The suffix of the filenames for reverse reads in regular expression, i.e. reads that need to be reverse-complemented. For revcerse reads, it should be |
TrimmingMethod |
TrimmingMethod The read trimming method for this SangerRead. The value must be |
M1TrimmingCutoff |
The trimming cutoff for the Method 1. If |
M2CutoffQualityScore |
The trimming cutoff quality score for the Method 2. If |
M2SlidingWindowSize |
The trimming sliding window size for the Method 2. If |
baseNumPerRow |
It defines maximum base pairs in each row. The default value is |
heightPerRow |
It defines the height of each row in chromatogram. The default value is |
signalRatioCutoff |
The ratio of the height of a secondary peak to a primary peak. Secondary peaks higher than this ratio are annotated. Those below the ratio are excluded. The default value is |
showTrimmed |
The logical value storing whether to show trimmed base pairs in chromatogram. The default value is |
refAminoAcidSeq |
An amino acid reference sequence supplied as a string or an AAString object. If your sequences are protein-coding DNA seuqences, and you want to have frameshifts automatically detected and corrected, supply a reference amino acid sequence via this argument. If this argument is supplied, the sequences are then kept in frame for the alignment step. Fwd sequences are assumed to come from the sense (i.e. coding, or "+") strand. The default value is |
minReadsNum |
The minimum number of reads required to make a consensus sequence, must be 2 or more. The default value is |
minReadLength |
Reads shorter than this will not be included in the readset. The default |
minFractionCall |
Minimum fraction of the sequences required to call a consensus sequence for SangerContig at any given position (see the ConsensusSequence() function from DECIPHER for more information). Defaults to 0.75 implying that 3/4 of all reads must be present in order to call a consensus. |
maxFractionLost |
Numeric giving the maximum fraction of sequence information that can be lost in the consensus sequence for SangerContig (see the ConsensusSequence() function from DECIPHER for more information). Defaults to 0.5, implying that each consensus base can ignore at most 50 percent of the information at a given position. |
geneticCode |
Named character vector in the same format as |
acceptStopCodons |
The logical value |
readingFrame |
|
processorsNum |
The number of processors to use, or NULL (the default) for all available processors. |
A SangerContig instance.
Kuan-Hao Chao
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | rawDataDir <- system.file("extdata", package = "sangeranalyseR")
parentDir <- file.path(rawDataDir, "Allolobophora_chlorotica", "ACHLO")
contigName <- "Achl_ACHLO006-09"
suffixForwardRegExp <- "_F.ab1"
suffixReverseRegExp <- "_R.ab1"
sangerContig <- SangerContig(
inputSource = "ABIF",
parentDirectory = parentDir,
contigName = contigName,
suffixForwardRegExp = suffixForwardRegExp,
suffixReverseRegExp = suffixReverseRegExp,
refAminoAcidSeq = "SRQWLFSTNHKDIGTLYFIFGAWAGMVGTSLSILIRAELGHPGALIGDDQIYNVIVTAHAFIMIFFMVMPIMIGGFGNWLVPLMLGAPDMAFPRMNNMSFWLLPPALSLLLVSSMVENGAGTGWTVYPPLSAGIAHGGASVDLAIFSLHLAGISSILGAVNFITTVINMRSTGISLDRMPLFVWSVVITALLLLLSLPVLAGAITMLLTDRNLNTSFFDPAGGGDPILYQHLFWFFGHPEVYILILPGFGMISHIISQESGKKETFGSLGMIYAMLAIGLLGFIVWAHHMFTVGMDVDTRAYFTSATMIIAVPTGIKIFSWLATLHGTQLSYSPAILWALGFVFLFTVGGLTGVVLANSSVDIILHDTYYVVAHFHYVLSMGAVFAIMAGFIHWYPLFTGLTLNNKWLKSHFIIMFIGVNLTFFPQHFLGLAGMPRRYSDYPDAYTTWNIVSTIGSTISLLGILFFFFIIWESLVSQRQVIYPIQLNSSIEWYQNTPPAEHSYSELPLLTN",
TrimmingMethod = "M2",
M1TrimmingCutoff = NULL,
M2CutoffQualityScore = 20,
M2SlidingWindowSize = 10,
baseNumPerRow = 100,
heightPerRow = 200,
signalRatioCutoff = 0.33,
showTrimmed = TRUE,
processorsNum = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.