Skip to content

Phred / Probability Conversion Functions

# NextGenSeqUtils.phred_to_log_pFunction.

phred_to_log_p(x)

Conversion from phred value to log probability value.

source

# NextGenSeqUtils.phred_to_pFunction.

phred_to_p(q::Phred)

Conversion from phred value to real probability value.

source

phred_to_p(x::Vector{Phred})

Conversion from phred values to real probability values in vector.

source

# NextGenSeqUtils.p_to_phredFunction.

p_to_phred(p::Prob)

Conversion from real probability value to phred value.

source

p_to_phred(p::Prob)

Conversion from real probability values to phred values in vector.

source

# NextGenSeqUtils.error_probs_to_phredsFunction.

error_probs_to_phreds(eps::Vector{Float64})

Conversion from error probability values to phred values in vector.

source

# NextGenSeqUtils.quality_filterFunction.

quality_filter(infile, outfile=join(split(infile, ".")[1:end-1], ".") * ".filt.fasta"; 
               errorRate = 0.01, minLength = 100, labelPrefix = "seq", errorOut = true)

Writes file with sequences from input file that have all sites within error rate margin.

source

quality_filter(seqs::Array{String, 1}, scores::Array, names::Array{String, 1}; errorRate=0.01, minLength=0)

Returns sub arrays with sequences that have site-wise error all within given margin.

source

# NextGenSeqUtils.length_vs_qualFunction.

length_vs_qual(fasta_path; plot_title = "Length Vs Errors")

Creates plot of lengths of sequences vs. mean error rates of sequences.

source

# NextGenSeqUtils.qual_histFunction.

qual_hist(fasta_path; plot_title = "Quality Hist")

Creates histogram of mean quality scores per sequence.

source