Skip to content

Commit

Permalink
Merge pull request sanger-pathogens#60 from lbarquist/master
Browse files Browse the repository at this point in the history
bugfix to tradis_essentiality.R

Former-commit-id: cb995d7
  • Loading branch information
andrewjpage committed Nov 16, 2015
2 parents ac75201 + 7074d10 commit 5736bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/tradis_essentiality.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ options(width=80)
args <- commandArgs(trailingOnly = TRUE)
input = args[1]

if( length(input) == 1 ){
if( is.na(input) ){
cat(paste("Usage: tradis_essentiality.R data.tab\n\n"))
cat(strwrap("Produces calls of gene essentiality using an adaptation of the method described in Langridge et al. Genome Research 2009 and Barquist et al. NAR 2013. A loess curve is fit to the distribution of insertion indices, and used to identify the minima between the 'essential' and 'non-essential' distributions. These distributions are then used to fit gamma distributions, which are then used to calculate log-odds ratios, which are used to determine an insertion-index threshold for gene essentiality. Note that this analysis requires a saturated mutant library, and is not suitable for the analysis of data sets with low insertion density. The script produces a number of diagnostic plots which can be used to verify that this condition has been met.\n"), fill=80)
q(status=1)
Expand Down

0 comments on commit 5736bc3

Please sign in to comment.