Phred / Probability Conversion Functions
NextGenSeqUtils.error_probs_to_phreds
NextGenSeqUtils.length_vs_qual
NextGenSeqUtils.p_to_phred
NextGenSeqUtils.phred_to_log_p
NextGenSeqUtils.phred_to_p
NextGenSeqUtils.qual_hist
NextGenSeqUtils.quality_filter
#
NextGenSeqUtils.phred_to_log_p
— Function.
phred_to_log_p(x)
Conversion from phred value to log probability value.
#
NextGenSeqUtils.phred_to_p
— Function.
phred_to_p(q::Phred)
Conversion from phred value to real probability value.
phred_to_p(x::Vector{Phred})
Conversion from phred values to real probability values in vector.
#
NextGenSeqUtils.p_to_phred
— Function.
p_to_phred(p::Prob)
Conversion from real probability value to phred value.
p_to_phred(p::Prob)
Conversion from real probability values to phred values in vector.
#
NextGenSeqUtils.error_probs_to_phreds
— Function.
error_probs_to_phreds(eps::Vector{Float64})
Conversion from error probability values to phred values in vector.
#
NextGenSeqUtils.quality_filter
— Function.
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.
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.
#
NextGenSeqUtils.length_vs_qual
— Function.
length_vs_qual(fasta_path; plot_title = "Length Vs Errors")
Creates plot of lengths of sequences vs. mean error rates of sequences.
#
NextGenSeqUtils.qual_hist
— Function.
qual_hist(fasta_path; plot_title = "Quality Hist")
Creates histogram of mean quality scores per sequence.