# HG changeset patch # User dereeper # Date 1621024026 0 # Node ID c47a5f61bc9f01399d5a612dc20cf3f002d2b3bd Uploaded diff -r 000000000000 -r c47a5f61bc9f Roary/.gitignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/.gitignore Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,35 @@ +.DS_Store +blib/ +.build/ +_build/ +cover_db/ +inc/ +Build +!Build/ +Build.bat +.last_cover_stats +Makefile +Makefile.old +MANIFEST.bak +META.yml +MYMETA.yml +nytprof.out +pm_to_blib +_clustered +_clustered.bak.clstr +example_1.faa.tmp.filtered.fa +example_2.faa.tmp.filtered.fa +pan_genome.fa +query_1.fa.tmp.filtered.fa +query_2.fa.tmp.filtered.fa +query_3.fa.tmp.filtered.fa +accessory.header.embl +blast_identity_frequency.Rtab +core_accessory.header.embl +reannotated_groups_file +set_difference_common_set_reannotated +set_difference_unique_set_one_reannotated +set_difference_unique_set_two_reannotated +extras/ +bin/shred_assemblies +Bio-Roary-* diff -r 000000000000 -r c47a5f61bc9f Roary/.travis.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/.travis.yml Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,32 @@ +language: perl +sudo: false +addons: + apt: + packages: + - libssl-dev + - mafft +cache: + directories: + - build/parallel-20160722 + - build/parallel-20170822 + - build/bedtools2 + - build/cd-hit-v4.6.8-2017-0621 + - build/prank-msa-master + - build/ncbi-blast-2.6.0+ + - build/mcl-14-137 + - build/fasttree +perl: + - "5.14" + - "5.26" +env: + - PARALLEL_VERSION=20160722 + - PARALLEL_VERSION=20170822 +install: + - "source ./install_dependencies.sh" +before_script: + - cpanm --quiet --notest Dist::Zilla::App::Command::cover + - cpanm --quiet --notest --skip-satisfied Devel::Cover::Report::Codecov +script: + - ROARY_FULL_TESTS=1 dzil test +after_success: + - dzil cover -test -report codecov \ No newline at end of file diff -r 000000000000 -r c47a5f61bc9f Roary/AUTHORS --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/AUTHORS Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,2 @@ +Andrew J. Page (ap13@sanger.ac.uk) +Carla A. Cummins (path-help@sanger.ac.uk) diff -r 000000000000 -r c47a5f61bc9f Roary/CHANGELOG.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/CHANGELOG.md Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,977 @@ +# Change Log + +## [Unreleased](https://github.com/sanger-pathogens/Roary/tree/HEAD) + +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.12.0...HEAD) + +**Implemented enhancements:** + +- Feature Request: Clear error message for duplicated file names [\#363](https://github.com/sanger-pathogens/Roary/issues/363) + +**Fixed bugs:** + +- uninitialized value warning [\#297](https://github.com/sanger-pathogens/Roary/issues/297) +- Bio::Root::Exception thrown during core genome alignment, missing some sequence in core\_gene\_alignment.aln [\#224](https://github.com/sanger-pathogens/Roary/issues/224) + +**Closed issues:** + +- Interpretation accessory\_binary\_genes newick [\#429](https://github.com/sanger-pathogens/Roary/issues/429) +- No gene annotation in gene\_presence\_absence.csv output [\#428](https://github.com/sanger-pathogens/Roary/issues/428) +- Compilation aborted at pan\_genome\_post\_analysis [\#427](https://github.com/sanger-pathogens/Roary/issues/427) +- Could not obtain pan\_genome\_sequences [\#426](https://github.com/sanger-pathogens/Roary/issues/426) +- Pan genome for fungal genomes [\#425](https://github.com/sanger-pathogens/Roary/issues/425) +- multifasta for all proteins [\#424](https://github.com/sanger-pathogens/Roary/issues/424) +- roary\_plots.py KeyError: "X" not in index [\#423](https://github.com/sanger-pathogens/Roary/issues/423) +- Confirm that use of BLAST's `-max\_target\_seqs` is intentional [\#422](https://github.com/sanger-pathogens/Roary/issues/422) +- query\_pan\_genome 'Cant access file' error \(Non-Working-Directory inputs\) [\#421](https://github.com/sanger-pathogens/Roary/issues/421) +- How many .gff files does Roary need? [\#419](https://github.com/sanger-pathogens/Roary/issues/419) +- Installation through Bioconda not working [\#418](https://github.com/sanger-pathogens/Roary/issues/418) +- Is it possible to run roary without prokka output files? [\#417](https://github.com/sanger-pathogens/Roary/issues/417) +- Exiting early because number of clusters is too high [\#415](https://github.com/sanger-pathogens/Roary/issues/415) +- MSG: Got a sequence without letters. Could not guess alphabet? [\#414](https://github.com/sanger-pathogens/Roary/issues/414) +- Which is the advantage to pre-use prokka to perform analysis using genbank \(.gbk and gbff\) files? [\#412](https://github.com/sanger-pathogens/Roary/issues/412) +- issues with running and empty files [\#411](https://github.com/sanger-pathogens/Roary/issues/411) +- MSG: Got a sequence without letters. Could not guess alphabet [\#410](https://github.com/sanger-pathogens/Roary/issues/410) +- moose.pm issue [\#407](https://github.com/sanger-pathogens/Roary/issues/407) +- Tutorial data: extract\_proteome\_from\_gff [\#406](https://github.com/sanger-pathogens/Roary/issues/406) +- Tutorial data: extract\_proteome\_from\_gff [\#403](https://github.com/sanger-pathogens/Roary/issues/403) +- gene\_presence\_absence.csv incomplete [\#402](https://github.com/sanger-pathogens/Roary/issues/402) +- Roary including non-protein coding features? [\#398](https://github.com/sanger-pathogens/Roary/issues/398) +- Question: what programs can be used to visualize embl and dot files? [\#394](https://github.com/sanger-pathogens/Roary/issues/394) +- Roary Does not terminated successfully [\#388](https://github.com/sanger-pathogens/Roary/issues/388) +- python: can't open file 'roary\_plots.py': \[Errno 2\] No such file or directory [\#385](https://github.com/sanger-pathogens/Roary/issues/385) +- Roary does not finish analysis even though cluster job queue returns successful completion [\#383](https://github.com/sanger-pathogens/Roary/issues/383) +- Genes \(well\) annotated in prokka end up all in different groups?? [\#355](https://github.com/sanger-pathogens/Roary/issues/355) +- could not determine version of cd-hit [\#322](https://github.com/sanger-pathogens/Roary/issues/322) +- Use of uninitialized value in require at \(eval 792\) line 1. [\#308](https://github.com/sanger-pathogens/Roary/issues/308) +- Error: unexpected input in "\_" [\#299](https://github.com/sanger-pathogens/Roary/issues/299) +- inconsistent referencing of $TMPDIR ? [\#287](https://github.com/sanger-pathogens/Roary/issues/287) + +**Merged pull requests:** + +- Include tests in README [\#430](https://github.com/sanger-pathogens/Roary/pull/430) ([ssjunnebo](https://github.com/ssjunnebo)) +- 621556 badges [\#420](https://github.com/sanger-pathogens/Roary/pull/420) ([ssjunnebo](https://github.com/ssjunnebo)) +- Update roary\_plots from .ix to .loc [\#416](https://github.com/sanger-pathogens/Roary/pull/416) ([EvdH0](https://github.com/EvdH0)) +- Use only CDS features from GFF [\#400](https://github.com/sanger-pathogens/Roary/pull/400) ([embatty](https://github.com/embatty)) +- also mention Devel::OverloadInfo and Digest::MD5::File as required Perl dependencies [\#397](https://github.com/sanger-pathogens/Roary/pull/397) ([boegel](https://github.com/boegel)) +- Avoid deprecation errors in roary\_plots [\#389](https://github.com/sanger-pathogens/Roary/pull/389) ([mgalardini](https://github.com/mgalardini)) + +## [v3.12.0](https://github.com/sanger-pathogens/Roary/tree/v3.12.0) (2018-01-23) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.11.4...v3.12.0) + +**Merged pull requests:** + +- Reduce min gene size [\#384](https://github.com/sanger-pathogens/Roary/pull/384) ([ssjunnebo](https://github.com/ssjunnebo)) + +## [v3.11.4](https://github.com/sanger-pathogens/Roary/tree/v3.11.4) (2018-01-16) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.11.3...v3.11.4) + +**Closed issues:** + +- Roary seemed to have stopped prematurely; any way to continue the run? [\#380](https://github.com/sanger-pathogens/Roary/issues/380) +- Getting prank version without the online check [\#377](https://github.com/sanger-pathogens/Roary/issues/377) +- Kraken version parsing error: [\#376](https://github.com/sanger-pathogens/Roary/issues/376) +- 3.11.1 failing 2/55 \(3/791\) tests [\#375](https://github.com/sanger-pathogens/Roary/issues/375) +- Fix for prank version check [\#361](https://github.com/sanger-pathogens/Roary/issues/361) +- mafft version check still failing - bug in regexp found [\#360](https://github.com/sanger-pathogens/Roary/issues/360) +- roary -a =\> Use of uninitialized value in concatenation \(.\) [\#270](https://github.com/sanger-pathogens/Roary/issues/270) + +**Merged pull requests:** + +- Fix dependancy checking option [\#382](https://github.com/sanger-pathogens/Roary/pull/382) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.11.3](https://github.com/sanger-pathogens/Roary/tree/v3.11.3) (2018-01-12) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.11.2...v3.11.3) + +**Merged pull requests:** + +- Version fix [\#379](https://github.com/sanger-pathogens/Roary/pull/379) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.11.2](https://github.com/sanger-pathogens/Roary/tree/v3.11.2) (2018-01-12) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.11.1...v3.11.2) + +**Fixed bugs:** + +- ExtractProteomeFromGff.t failing tests 3.11.0 [\#373](https://github.com/sanger-pathogens/Roary/issues/373) + +**Merged pull requests:** + +- fix mafft and kraken version extraction [\#378](https://github.com/sanger-pathogens/Roary/pull/378) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.11.1](https://github.com/sanger-pathogens/Roary/tree/v3.11.1) (2018-01-10) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.11.0...v3.11.1) + +**Closed issues:** + +- Sorting in version 3.11.0: uppercase letters first, lowercase second \(non-alphabetical\) [\#371](https://github.com/sanger-pathogens/Roary/issues/371) +- Genbank input [\#365](https://github.com/sanger-pathogens/Roary/issues/365) +- not all annotated features are allocated to the clusters [\#359](https://github.com/sanger-pathogens/Roary/issues/359) + +**Merged pull requests:** + +- Bedtools getfasta format fix [\#374](https://github.com/sanger-pathogens/Roary/pull/374) ([andrewjpage](https://github.com/andrewjpage)) +- Update roary\_plots.py [\#372](https://github.com/sanger-pathogens/Roary/pull/372) ([franz89](https://github.com/franz89)) +- Issue \#363 add check for duplicate basenames [\#370](https://github.com/sanger-pathogens/Roary/pull/370) ([nickp60](https://github.com/nickp60)) +- README.md: Update Guix install instructions. [\#362](https://github.com/sanger-pathogens/Roary/pull/362) ([wwood](https://github.com/wwood)) + +## [v3.11.0](https://github.com/sanger-pathogens/Roary/tree/v3.11.0) (2017-10-10) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.10.2...v3.11.0) + +**Fixed bugs:** + +- Can't get version of kraken, kraken-report or mafft ? [\#312](https://github.com/sanger-pathogens/Roary/issues/312) + +**Closed issues:** + +- number\_of\_conserved\_genes.Rtab [\#354](https://github.com/sanger-pathogens/Roary/issues/354) +- \[question\] Should it take this long? [\#352](https://github.com/sanger-pathogens/Roary/issues/352) + +**Merged pull requests:** + +- change missing gene in core to be dashes rather than Ns [\#358](https://github.com/sanger-pathogens/Roary/pull/358) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.10.2](https://github.com/sanger-pathogens/Roary/tree/v3.10.2) (2017-09-08) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.10.1...v3.10.2) + +**Closed issues:** + +- \[version 3.8.0\] Roary crashes at end on perl error message [\#323](https://github.com/sanger-pathogens/Roary/issues/323) +- Cant open file: \_accessory\_clusters.clstr [\#320](https://github.com/sanger-pathogens/Roary/issues/320) + +**Merged pull requests:** + +- get kraken version [\#351](https://github.com/sanger-pathogens/Roary/pull/351) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.10.1](https://github.com/sanger-pathogens/Roary/tree/v3.10.1) (2017-09-07) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.10.0...v3.10.1) + +**Implemented enhancements:** + +- Auto-detect if input files are GFF or FASTA [\#348](https://github.com/sanger-pathogens/Roary/issues/348) +- Can "Fixing input GFF files" be parallelized? [\#342](https://github.com/sanger-pathogens/Roary/issues/342) + +**Fixed bugs:** + +- The GNU General Public License, Version not specified [\#344](https://github.com/sanger-pathogens/Roary/issues/344) + +**Closed issues:** + +- MSG: The sequence does not appear to be FASTA format \(lacks a descriptor line '\>'\) [\#346](https://github.com/sanger-pathogens/Roary/issues/346) + +**Merged pull requests:** + +- Improve input file handling [\#350](https://github.com/sanger-pathogens/Roary/pull/350) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.10.0](https://github.com/sanger-pathogens/Roary/tree/v3.10.0) (2017-09-07) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.9.1...v3.10.0) + +**Closed issues:** + +- Use of uninitialized value \(Perl\) [\#345](https://github.com/sanger-pathogens/Roary/issues/345) +- identical .gff file names from different genome, and then issue with mcl groups [\#341](https://github.com/sanger-pathogens/Roary/issues/341) +- Cant open file: \_clustered.clstr [\#339](https://github.com/sanger-pathogens/Roary/issues/339) + +## [v3.9.1](https://github.com/sanger-pathogens/Roary/tree/v3.9.1) (2017-08-22) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.9.0...v3.9.1) + +**Merged pull requests:** + +- Optionally allow paralogs in core gene alignment [\#343](https://github.com/sanger-pathogens/Roary/pull/343) ([andrewjpage](https://github.com/andrewjpage)) +- Script to find frequency of unique genes in samples [\#340](https://github.com/sanger-pathogens/Roary/pull/340) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.9.0](https://github.com/sanger-pathogens/Roary/tree/v3.9.0) (2017-08-09) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.8.2...v3.9.0) + +**Closed issues:** + +- roary\_plots: pangenome matrix tree does not look like input.newick tree [\#333](https://github.com/sanger-pathogens/Roary/issues/333) +- use Roary with RAST files [\#332](https://github.com/sanger-pathogens/Roary/issues/332) +- Roary [\#329](https://github.com/sanger-pathogens/Roary/issues/329) +- sampling number is 10 in number of genes in pan and core genome [\#319](https://github.com/sanger-pathogens/Roary/issues/319) + +**Merged pull requests:** + +- Grammar edits [\#327](https://github.com/sanger-pathogens/Roary/pull/327) ([cgreene](https://github.com/cgreene)) +- allow for inflation factor for MCL to be changed [\#326](https://github.com/sanger-pathogens/Roary/pull/326) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.8.2](https://github.com/sanger-pathogens/Roary/tree/v3.8.2) (2017-05-21) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.8.1...v3.8.2) + +## [v3.8.1](https://github.com/sanger-pathogens/Roary/tree/v3.8.1) (2017-05-21) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.8.0...v3.8.1) + +**Closed issues:** + +- BLAST Database error [\#321](https://github.com/sanger-pathogens/Roary/issues/321) +- Results for same input differ always a bit \(summary\_statistics.txt\) [\#318](https://github.com/sanger-pathogens/Roary/issues/318) +- Error: Couldnt open GFF file [\#314](https://github.com/sanger-pathogens/Roary/issues/314) +- Help with query\_pan\_genome [\#313](https://github.com/sanger-pathogens/Roary/issues/313) + +**Merged pull requests:** + +- update email address [\#325](https://github.com/sanger-pathogens/Roary/pull/325) ([ssjunnebo](https://github.com/ssjunnebo)) +- New option to roary\_plots.py [\#317](https://github.com/sanger-pathogens/Roary/pull/317) ([mgalardini](https://github.com/mgalardini)) + +## [v3.8.0](https://github.com/sanger-pathogens/Roary/tree/v3.8.0) (2017-01-25) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.7.1...v3.8.0) + +**Closed issues:** + +- Old version in the master tarball? [\#300](https://github.com/sanger-pathogens/Roary/issues/300) +- prank is not installed \(Linuxbrew\) [\#294](https://github.com/sanger-pathogens/Roary/issues/294) +- roary\_plots.py problem [\#292](https://github.com/sanger-pathogens/Roary/issues/292) + +**Merged pull requests:** + +- Support latest version of blast [\#306](https://github.com/sanger-pathogens/Roary/pull/306) ([andrewjpage](https://github.com/andrewjpage)) +- infgen [\#305](https://github.com/sanger-pathogens/Roary/pull/305) ([andrewjpage](https://github.com/andrewjpage)) +- update from 108 to 118 [\#304](https://github.com/sanger-pathogens/Roary/pull/304) ([andrewjpage](https://github.com/andrewjpage)) +- update usage text for iterative CD-hit [\#301](https://github.com/sanger-pathogens/Roary/pull/301) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.7.1](https://github.com/sanger-pathogens/Roary/tree/v3.7.1) (2016-11-01) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.7.0...v3.7.1) + +**Closed issues:** + +- core\_gene\_alignment.aln missing [\#284](https://github.com/sanger-pathogens/Roary/issues/284) +- Is these results fine to use? [\#282](https://github.com/sanger-pathogens/Roary/issues/282) + +**Merged pull requests:** + +- fix spelling [\#280](https://github.com/sanger-pathogens/Roary/pull/280) ([satta](https://github.com/satta)) +- dont add POD to end of R scripts [\#279](https://github.com/sanger-pathogens/Roary/pull/279) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.7.0](https://github.com/sanger-pathogens/Roary/tree/v3.7.0) (2016-09-23) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.6.9...v3.7.0) + +## [v3.6.9](https://github.com/sanger-pathogens/Roary/tree/v3.6.9) (2016-09-22) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.6.8...v3.6.9) + +**Implemented enhancements:** + +- I have published a Roary homebrew formula [\#208](https://github.com/sanger-pathogens/Roary/issues/208) +- Getting Roary into Homebrew [\#152](https://github.com/sanger-pathogens/Roary/issues/152) + +**Closed issues:** + +- roary\_plots.py missing [\#277](https://github.com/sanger-pathogens/Roary/issues/277) +- Errors when downloaded sequences from NCBI [\#274](https://github.com/sanger-pathogens/Roary/issues/274) +- Same dataset different results! [\#271](https://github.com/sanger-pathogens/Roary/issues/271) +- \_clustered.clstr file does not exist, cannot be read [\#250](https://github.com/sanger-pathogens/Roary/issues/250) + +**Merged pull requests:** + +- Fixed easy-init warnings - 529655 [\#278](https://github.com/sanger-pathogens/Roary/pull/278) ([psweston](https://github.com/psweston)) +- README.md: Add instructions for GNU Guix. [\#273](https://github.com/sanger-pathogens/Roary/pull/273) ([wwood](https://github.com/wwood)) + +## [v3.6.8](https://github.com/sanger-pathogens/Roary/tree/v3.6.8) (2016-08-02) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.6.7...v3.6.8) + +**Merged pull requests:** + +- Allow gene names from gb [\#266](https://github.com/sanger-pathogens/Roary/pull/266) ([andrewjpage](https://github.com/andrewjpage)) +- Missing genes [\#265](https://github.com/sanger-pathogens/Roary/pull/265) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.6.7](https://github.com/sanger-pathogens/Roary/tree/v3.6.7) (2016-07-26) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.6.6...v3.6.7) + +**Fixed bugs:** + +- Roary 3.6.5 giving different \(erroneous\) results compared to 3.5.7 and 3.6.1/3.6.3/3.6.4 [\#263](https://github.com/sanger-pathogens/Roary/issues/263) +- roary R plots don't work on server --- lack of X11 [\#194](https://github.com/sanger-pathogens/Roary/issues/194) + +**Closed issues:** + +- empty accessory\_binary\_genes.fa file [\#262](https://github.com/sanger-pathogens/Roary/issues/262) +- a guix package [\#259](https://github.com/sanger-pathogens/Roary/issues/259) +- create\_pan\_genome\_plots.R - X11 font problem [\#230](https://github.com/sanger-pathogens/Roary/issues/230) +- Roary not generating pan\_genome\_reference.fa [\#223](https://github.com/sanger-pathogens/Roary/issues/223) +- Roary not using packaged executables [\#215](https://github.com/sanger-pathogens/Roary/issues/215) + +## [v3.6.6](https://github.com/sanger-pathogens/Roary/tree/v3.6.6) (2016-07-25) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.6.5...v3.6.6) + +**Fixed bugs:** + +- GFF parsing doesn't match GFF3 specification [\#249](https://github.com/sanger-pathogens/Roary/issues/249) + +**Merged pull requests:** + +- Fix empty accessory binary [\#264](https://github.com/sanger-pathogens/Roary/pull/264) ([andrewjpage](https://github.com/andrewjpage)) +- change to dist zilla starter bundle [\#261](https://github.com/sanger-pathogens/Roary/pull/261) ([nds](https://github.com/nds)) + +## [v3.6.5](https://github.com/sanger-pathogens/Roary/tree/v3.6.5) (2016-07-20) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.6.4...v3.6.5) + +**Merged pull requests:** + +- allow new format bedtools and dont look for FASTA in GFF [\#260](https://github.com/sanger-pathogens/Roary/pull/260) ([andrewjpage](https://github.com/andrewjpage)) +- catch divide by zero error [\#258](https://github.com/sanger-pathogens/Roary/pull/258) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.6.4](https://github.com/sanger-pathogens/Roary/tree/v3.6.4) (2016-07-06) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.6.3...v3.6.4) + +**Merged pull requests:** + +- drop testing for perl 5.10, add 5.24. dzil no longer works below 5.14 [\#257](https://github.com/sanger-pathogens/Roary/pull/257) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.6.3](https://github.com/sanger-pathogens/Roary/tree/v3.6.3) (2016-07-01) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.6.2...v3.6.3) + +**Merged pull requests:** + +- Speed up alignments [\#256](https://github.com/sanger-pathogens/Roary/pull/256) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.6.2](https://github.com/sanger-pathogens/Roary/tree/v3.6.2) (2016-05-10) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.6.1...v3.6.2) + +**Implemented enhancements:** + +- Prefix utility commands with roary- ? [\#226](https://github.com/sanger-pathogens/Roary/issues/226) + +**Merged pull requests:** + +- fix bug Can't exec /bin/sh: Argument list too long [\#247](https://github.com/sanger-pathogens/Roary/pull/247) ([duytintruong](https://github.com/duytintruong)) +- get rid of warning message [\#246](https://github.com/sanger-pathogens/Roary/pull/246) ([satta](https://github.com/satta)) + +## [v3.6.1](https://github.com/sanger-pathogens/Roary/tree/v3.6.1) (2016-04-18) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.6.0...v3.6.1) + +**Fixed bugs:** + +- roary\_plots.py generating flawed plots [\#221](https://github.com/sanger-pathogens/Roary/issues/221) + +**Closed issues:** + +- Core gene file missing error [\#241](https://github.com/sanger-pathogens/Roary/issues/241) + +**Merged pull requests:** + +- prefix commands with roary [\#244](https://github.com/sanger-pathogens/Roary/pull/244) ([andrewjpage](https://github.com/andrewjpage)) +- More improvements to roary\_plots [\#240](https://github.com/sanger-pathogens/Roary/pull/240) ([mgalardini](https://github.com/mgalardini)) + +## [v3.6.0](https://github.com/sanger-pathogens/Roary/tree/v3.6.0) (2016-02-23) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.5.9...v3.6.0) + +**Fixed bugs:** + +- MSG: Got a sequence without letters. Could not guess alphabet [\#229](https://github.com/sanger-pathogens/Roary/issues/229) + +**Closed issues:** + +- Roary 3.5.8 works with -i 80 switch, but not with -i 90 or higher with large datasets? [\#234](https://github.com/sanger-pathogens/Roary/issues/234) +- How to use multiple switches in commandline? [\#232](https://github.com/sanger-pathogens/Roary/issues/232) + +**Merged pull requests:** + +- Improvements to roary\_plots [\#236](https://github.com/sanger-pathogens/Roary/pull/236) ([mgalardini](https://github.com/mgalardini)) +- Rollback 3 5 8 [\#235](https://github.com/sanger-pathogens/Roary/pull/235) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.5.9](https://github.com/sanger-pathogens/Roary/tree/v3.5.9) (2016-02-17) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.5.8...v3.5.9) + +**Implemented enhancements:** + +- What clusters end up in gene accessory\_binary\_genes.fa ? [\#225](https://github.com/sanger-pathogens/Roary/issues/225) + +**Closed issues:** + +- roary.github.io just prints HELLO [\#233](https://github.com/sanger-pathogens/Roary/issues/233) + +**Merged pull requests:** + +- Fix minor typo [\#231](https://github.com/sanger-pathogens/Roary/pull/231) ([abremges](https://github.com/abremges)) + +## [v3.5.8](https://github.com/sanger-pathogens/Roary/tree/v3.5.8) (2016-01-20) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.5.7...v3.5.8) + +**Implemented enhancements:** + +- Getting Roary into Debian Med [\#219](https://github.com/sanger-pathogens/Roary/issues/219) +- Add embl output file mapping location of each core gene in the core genome alignment [\#192](https://github.com/sanger-pathogens/Roary/issues/192) + +**Closed issues:** + +- Error message: Cannot find the mcxdeblast executable, please ensure its in your PATH [\#217](https://github.com/sanger-pathogens/Roary/issues/217) + +**Merged pull requests:** + +- Provide full accessory for building binary tree [\#227](https://github.com/sanger-pathogens/Roary/pull/227) ([andrewjpage](https://github.com/andrewjpage)) +- roary\_plots: new fields in roary output must be parsed away [\#222](https://github.com/sanger-pathogens/Roary/pull/222) ([mgalardini](https://github.com/mgalardini)) +- Debian nitpicks [\#220](https://github.com/sanger-pathogens/Roary/pull/220) ([satta](https://github.com/satta)) +- Core alignment header file [\#218](https://github.com/sanger-pathogens/Roary/pull/218) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.5.7](https://github.com/sanger-pathogens/Roary/tree/v3.5.7) (2015-12-17) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.5.6...v3.5.7) + +**Closed issues:** + +- Roary not checking tools needed to run [\#214](https://github.com/sanger-pathogens/Roary/issues/214) + +**Merged pull requests:** + +- Core gene count [\#213](https://github.com/sanger-pathogens/Roary/pull/213) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.5.6](https://github.com/sanger-pathogens/Roary/tree/v3.5.6) (2015-12-01) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.5.5...v3.5.6) + +**Implemented enhancements:** + +- Non-issue, FYI regarding my 'roary2svg.pl' script [\#195](https://github.com/sanger-pathogens/Roary/issues/195) + +**Merged pull requests:** + +- add roary2svg script [\#212](https://github.com/sanger-pathogens/Roary/pull/212) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.5.5](https://github.com/sanger-pathogens/Roary/tree/v3.5.5) (2015-11-26) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.5.4...v3.5.5) + +**Merged pull requests:** + +- CD-hit threads limit [\#211](https://github.com/sanger-pathogens/Roary/pull/211) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.5.4](https://github.com/sanger-pathogens/Roary/tree/v3.5.4) (2015-11-26) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.5.3...v3.5.4) + +**Fixed bugs:** + +- Use of uninitialized value in require at \(eval ..\) line 1. [\#204](https://github.com/sanger-pathogens/Roary/issues/204) +- \[bug\] Newick files in 3.5.1 have branch lengths of 0.0 [\#202](https://github.com/sanger-pathogens/Roary/issues/202) + +**Merged pull requests:** + +- Accessory binary fasta contains all C's fix [\#210](https://github.com/sanger-pathogens/Roary/pull/210) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.5.3](https://github.com/sanger-pathogens/Roary/tree/v3.5.3) (2015-11-26) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.5.2...v3.5.3) + +**Implemented enhancements:** + +- Enhancement: roary -a to continue on if other parameters as well [\#207](https://github.com/sanger-pathogens/Roary/issues/207) +- Make summary\_statistics a TAB/TSV file? [\#193](https://github.com/sanger-pathogens/Roary/issues/193) + +**Fixed bugs:** + +- roary --version should return 0 not 255 exit code [\#206](https://github.com/sanger-pathogens/Roary/issues/206) +- Is the roary -a check complete? [\#205](https://github.com/sanger-pathogens/Roary/issues/205) + +## [v3.5.2](https://github.com/sanger-pathogens/Roary/tree/v3.5.2) (2015-11-25) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.5.1...v3.5.2) + +**Fixed bugs:** + +- Use of uninitialized value in File::Slurper and Encode.pm [\#196](https://github.com/sanger-pathogens/Roary/issues/196) + +**Merged pull requests:** + +- Improved dependancy checking [\#209](https://github.com/sanger-pathogens/Roary/pull/209) ([andrewjpage](https://github.com/andrewjpage)) +- Lsf update gene alignments [\#201](https://github.com/sanger-pathogens/Roary/pull/201) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.5.1](https://github.com/sanger-pathogens/Roary/tree/v3.5.1) (2015-11-12) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.5.0...v3.5.1) + +**Fixed bugs:** + +- Accessory genes newick file contains full path of infividual files [\#200](https://github.com/sanger-pathogens/Roary/issues/200) +- add optional dependancy from File::Slurper to stop warnings being printed [\#199](https://github.com/sanger-pathogens/Roary/pull/199) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.5.0](https://github.com/sanger-pathogens/Roary/tree/v3.5.0) (2015-11-12) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.4.3...v3.5.0) + +**Merged pull requests:** + +- remove path from accessory tree [\#198](https://github.com/sanger-pathogens/Roary/pull/198) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.4.3](https://github.com/sanger-pathogens/Roary/tree/v3.4.3) (2015-11-11) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.4.2...v3.4.3) + +**Merged pull requests:** + +- consensus group name for pan reference [\#190](https://github.com/sanger-pathogens/Roary/pull/190) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.4.2](https://github.com/sanger-pathogens/Roary/tree/v3.4.2) (2015-10-12) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.4.1...v3.4.2) + +**Merged pull requests:** + +- Gene presence and absence rtab [\#189](https://github.com/sanger-pathogens/Roary/pull/189) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.4.1](https://github.com/sanger-pathogens/Roary/tree/v3.4.1) (2015-10-08) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.4.0...v3.4.1) + +**Implemented enhancements:** + +- Need protein lengths in the final spreadsheet [\#116](https://github.com/sanger-pathogens/Roary/issues/116) + +**Fixed bugs:** + +- Bio-RetrieveAssemblies-1.0.1 fails to install [\#151](https://github.com/sanger-pathogens/Roary/issues/151) + +**Merged pull requests:** + +- \* Proposed fix for CPANTS error. [\#187](https://github.com/sanger-pathogens/Roary/pull/187) ([manwar](https://github.com/manwar)) + +## [v3.4.0](https://github.com/sanger-pathogens/Roary/tree/v3.4.0) (2015-10-07) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.3.4...v3.4.0) + +**Merged pull requests:** + +- Extra columns in spreadsheet with gene lengths [\#186](https://github.com/sanger-pathogens/Roary/pull/186) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.3.4](https://github.com/sanger-pathogens/Roary/tree/v3.3.4) (2015-10-07) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.3.3...v3.3.4) + +**Closed issues:** + +- EXCEPTION: Bio::Root::Exception could not read ...faa.intermediate.extracted.fa [\#175](https://github.com/sanger-pathogens/Roary/issues/175) + +**Merged pull requests:** + +- increase dependancy RAM [\#185](https://github.com/sanger-pathogens/Roary/pull/185) ([andrewjpage](https://github.com/andrewjpage)) +- Use lsf for gene alignment [\#184](https://github.com/sanger-pathogens/Roary/pull/184) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.3.3](https://github.com/sanger-pathogens/Roary/tree/v3.3.3) (2015-09-29) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.3.2...v3.3.3) + +**Merged pull requests:** + +- dont align if sequences same length and nearly the same [\#183](https://github.com/sanger-pathogens/Roary/pull/183) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.3.2](https://github.com/sanger-pathogens/Roary/tree/v3.3.2) (2015-09-28) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.3.1...v3.3.2) + +**Implemented enhancements:** + +- Use of temporary folders and files [\#177](https://github.com/sanger-pathogens/Roary/issues/177) + +**Merged pull requests:** + +- Duplicate sequences in pan genome reference fasta [\#182](https://github.com/sanger-pathogens/Roary/pull/182) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.3.1](https://github.com/sanger-pathogens/Roary/tree/v3.3.1) (2015-09-25) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.3.0...v3.3.1) + +**Merged pull requests:** + +- Fix usage text [\#181](https://github.com/sanger-pathogens/Roary/pull/181) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.3.0](https://github.com/sanger-pathogens/Roary/tree/v3.3.0) (2015-09-24) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.2.9...v3.3.0) + +**Fixed bugs:** + +- Check at least 2 gff files have been passed in [\#171](https://github.com/sanger-pathogens/Roary/issues/171) +- Pentuple memory for worst case sCenario [\#170](https://github.com/sanger-pathogens/Roary/issues/170) +- 00\_requires\_external.t missing "mafft" ? [\#168](https://github.com/sanger-pathogens/Roary/issues/168) + +**Merged pull requests:** + +- Check dependancies [\#180](https://github.com/sanger-pathogens/Roary/pull/180) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.2.9](https://github.com/sanger-pathogens/Roary/tree/v3.2.9) (2015-09-23) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.2.8...v3.2.9) + +**Implemented enhancements:** + +- Add --outdir option to avoid blatting current directory [\#176](https://github.com/sanger-pathogens/Roary/issues/176) + +**Fixed bugs:** + +- CPAN install failure "unknown option mafft" [\#169](https://github.com/sanger-pathogens/Roary/issues/169) + +**Closed issues:** + +- Error "Cant open file: \_uninflated\_mcl\_groups" [\#179](https://github.com/sanger-pathogens/Roary/issues/179) + +**Merged pull requests:** + +- Add the option to specify an output directory [\#178](https://github.com/sanger-pathogens/Roary/pull/178) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.2.8](https://github.com/sanger-pathogens/Roary/tree/v3.2.8) (2015-09-23) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.2.7...v3.2.8) + +## [v3.2.7](https://github.com/sanger-pathogens/Roary/tree/v3.2.7) (2015-09-02) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.2.6...v3.2.7) + +**Merged pull requests:** + +- count paralogs correctly when looking for differences in datasets [\#174](https://github.com/sanger-pathogens/Roary/pull/174) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.2.6](https://github.com/sanger-pathogens/Roary/tree/v3.2.6) (2015-09-02) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.2.5...v3.2.6) + +**Merged pull requests:** + +- revert core tree generation [\#173](https://github.com/sanger-pathogens/Roary/pull/173) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.2.5](https://github.com/sanger-pathogens/Roary/tree/v3.2.5) (2015-08-17) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.2.4...v3.2.5) + +**Merged pull requests:** + +- Verbose stats [\#172](https://github.com/sanger-pathogens/Roary/pull/172) ([andrewjpage](https://github.com/andrewjpage)) +- dont set bioperl version [\#167](https://github.com/sanger-pathogens/Roary/pull/167) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.2.4](https://github.com/sanger-pathogens/Roary/tree/v3.2.4) (2015-07-23) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.2.3...v3.2.4) + +**Merged pull requests:** + +- update readme citation [\#165](https://github.com/sanger-pathogens/Roary/pull/165) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.2.3](https://github.com/sanger-pathogens/Roary/tree/v3.2.3) (2015-07-22) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.2.1...v3.2.3) + +**Merged pull requests:** + +- update citation message [\#164](https://github.com/sanger-pathogens/Roary/pull/164) ([andrewjpage](https://github.com/andrewjpage)) +- Pass mafft through to alignment [\#163](https://github.com/sanger-pathogens/Roary/pull/163) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.2.1](https://github.com/sanger-pathogens/Roary/tree/v3.2.1) (2015-07-21) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.2.0...v3.2.1) + +## [v3.2.0](https://github.com/sanger-pathogens/Roary/tree/v3.2.0) (2015-07-20) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.1.2...v3.2.0) + +**Merged pull requests:** + +- Use mafft [\#162](https://github.com/sanger-pathogens/Roary/pull/162) ([andrewjpage](https://github.com/andrewjpage)) +- output summary file [\#161](https://github.com/sanger-pathogens/Roary/pull/161) ([andrewjpage](https://github.com/andrewjpage)) +- Pass through dont delete flag [\#160](https://github.com/sanger-pathogens/Roary/pull/160) ([andrewjpage](https://github.com/andrewjpage)) +- Assembly statistics [\#159](https://github.com/sanger-pathogens/Roary/pull/159) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.1.2](https://github.com/sanger-pathogens/Roary/tree/v3.1.2) (2015-07-13) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/3.1.2...v3.1.2) + +## [3.1.2](https://github.com/sanger-pathogens/Roary/tree/3.1.2) (2015-07-13) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.1.1...3.1.2) + +**Fixed bugs:** + +- prank seg fault [\#157](https://github.com/sanger-pathogens/Roary/issues/157) + +**Merged pull requests:** + +- Core gene missing files [\#158](https://github.com/sanger-pathogens/Roary/pull/158) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.1.1](https://github.com/sanger-pathogens/Roary/tree/v3.1.1) (2015-06-26) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.1.0...v3.1.1) + +**Closed issues:** + +- sadaf [\#154](https://github.com/sanger-pathogens/Roary/issues/154) + +## [v3.1.0](https://github.com/sanger-pathogens/Roary/tree/v3.1.0) (2015-06-22) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.0.3...v3.1.0) + +**Merged pull requests:** + +- Accessory binary tree [\#155](https://github.com/sanger-pathogens/Roary/pull/155) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.0.3](https://github.com/sanger-pathogens/Roary/tree/v3.0.3) (2015-06-15) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.0.2...v3.0.3) + +**Fixed bugs:** + +- Annotation missing in set\_difference\_unique\_set\_one/two\_statistics.csv files [\#137](https://github.com/sanger-pathogens/Roary/issues/137) + +**Merged pull requests:** + +- when creating core gene alignment, lookup sample names to genes in sp… [\#153](https://github.com/sanger-pathogens/Roary/pull/153) ([andrewjpage](https://github.com/andrewjpage)) +- Only align core files [\#150](https://github.com/sanger-pathogens/Roary/pull/150) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.0.2](https://github.com/sanger-pathogens/Roary/tree/v3.0.2) (2015-06-12) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.0.1...v3.0.2) + +**Implemented enhancements:** + +- Print out the version number [\#119](https://github.com/sanger-pathogens/Roary/issues/119) + +**Merged pull requests:** + +- Mafft and exonerate dependancies [\#149](https://github.com/sanger-pathogens/Roary/pull/149) ([andrewjpage](https://github.com/andrewjpage)) +- Add a version parameter and add in marcos plots code [\#148](https://github.com/sanger-pathogens/Roary/pull/148) ([andrewjpage](https://github.com/andrewjpage)) + +## [v3.0.1](https://github.com/sanger-pathogens/Roary/tree/v3.0.1) (2015-06-12) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v3.0.0...v3.0.1) + +**Fixed bugs:** + +- Use of -e switch gives multifasta file with N's only [\#132](https://github.com/sanger-pathogens/Roary/issues/132) + +## [v3.0.0](https://github.com/sanger-pathogens/Roary/tree/v3.0.0) (2015-06-11) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.3.4...v3.0.0) + +**Merged pull requests:** + +- Use prank for core genome alignments [\#147](https://github.com/sanger-pathogens/Roary/pull/147) ([andrewjpage](https://github.com/andrewjpage)) +- Accessory graph [\#146](https://github.com/sanger-pathogens/Roary/pull/146) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.3.4](https://github.com/sanger-pathogens/Roary/tree/v2.3.4) (2015-06-10) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.3.3...v2.3.4) + +## [v2.3.3](https://github.com/sanger-pathogens/Roary/tree/v2.3.3) (2015-06-08) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.3.2...v2.3.3) + +**Merged pull requests:** + +- Simplify perl dependency installation [\#145](https://github.com/sanger-pathogens/Roary/pull/145) ([bewt85](https://github.com/bewt85)) +- Pan genome reference [\#144](https://github.com/sanger-pathogens/Roary/pull/144) ([andrewjpage](https://github.com/andrewjpage)) +- Fix input files with duplicate IDs [\#143](https://github.com/sanger-pathogens/Roary/pull/143) ([andrewjpage](https://github.com/andrewjpage)) +- Test against different versions of GNU Parallel [\#142](https://github.com/sanger-pathogens/Roary/pull/142) ([bewt85](https://github.com/bewt85)) + +## [v2.3.2](https://github.com/sanger-pathogens/Roary/tree/v2.3.2) (2015-06-08) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.3.1...v2.3.2) + +**Fixed bugs:** + +- GFF files derived from Prokka genbank raise errors [\#130](https://github.com/sanger-pathogens/Roary/issues/130) +- MSG: Got a sequence without letters. Could not guess alphabet [\#127](https://github.com/sanger-pathogens/Roary/issues/127) + +**Merged pull requests:** + +- TravisCI only wants the major and minor version of perl [\#141](https://github.com/sanger-pathogens/Roary/pull/141) ([bewt85](https://github.com/bewt85)) +- Add TravisCI support [\#140](https://github.com/sanger-pathogens/Roary/pull/140) ([bewt85](https://github.com/bewt85)) +- Use locus tag when ID is missing from GFF [\#139](https://github.com/sanger-pathogens/Roary/pull/139) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.3.1](https://github.com/sanger-pathogens/Roary/tree/v2.3.1) (2015-06-02) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.3.0...v2.3.1) + +**Merged pull requests:** + +- Extract IDs from GFF file using Bio::Perl [\#138](https://github.com/sanger-pathogens/Roary/pull/138) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.3.0](https://github.com/sanger-pathogens/Roary/tree/v2.3.0) (2015-06-01) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.2.6...v2.3.0) + +**Closed issues:** + +- "cpan" command reports Bio::Roary as version '\(undef\)' [\#134](https://github.com/sanger-pathogens/Roary/issues/134) + +## [v2.2.6](https://github.com/sanger-pathogens/Roary/tree/v2.2.6) (2015-06-01) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.2.4...v2.2.6) + +**Closed issues:** + +- No tagged release for 2.2.3 [\#133](https://github.com/sanger-pathogens/Roary/issues/133) +- Syntax \(?\) errors on perl 5.10.1 [\#128](https://github.com/sanger-pathogens/Roary/issues/128) + +**Merged pull requests:** + +- include version numbers for cpan [\#136](https://github.com/sanger-pathogens/Roary/pull/136) ([andrewjpage](https://github.com/andrewjpage)) +- New version number for contributed fix for issue \#128 [\#135](https://github.com/sanger-pathogens/Roary/pull/135) ([andrewjpage](https://github.com/andrewjpage)) +- gnu parallel switch for ubuntu [\#131](https://github.com/sanger-pathogens/Roary/pull/131) ([andrewjpage](https://github.com/andrewjpage)) +- Backward compatible deferencing of hashes [\#129](https://github.com/sanger-pathogens/Roary/pull/129) ([mgalardini](https://github.com/mgalardini)) + +## [v2.2.4](https://github.com/sanger-pathogens/Roary/tree/v2.2.4) (2015-05-29) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.2.3...v2.2.4) + +**Closed issues:** + +- ERROR: cannot remove directory for split\_groups [\#115](https://github.com/sanger-pathogens/Roary/issues/115) +- cleanup outputfiles [\#114](https://github.com/sanger-pathogens/Roary/issues/114) + +**Merged pull requests:** + +- Cleanup files [\#126](https://github.com/sanger-pathogens/Roary/pull/126) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.2.3](https://github.com/sanger-pathogens/Roary/tree/v2.2.3) (2015-05-21) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.2.2...v2.2.3) + +**Closed issues:** + +- Change QC so that it doesnt shred reads [\#117](https://github.com/sanger-pathogens/Roary/issues/117) +- QC doesnt work outside sanger [\#112](https://github.com/sanger-pathogens/Roary/issues/112) + +**Merged pull requests:** + +- Update Kraken QC [\#125](https://github.com/sanger-pathogens/Roary/pull/125) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.2.2](https://github.com/sanger-pathogens/Roary/tree/v2.2.2) (2015-05-21) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.2.0...v2.2.2) + +**Closed issues:** + +- Hard-coded Sanger paths in some scripts [\#124](https://github.com/sanger-pathogens/Roary/issues/124) +- You're missing some Perl dependancies [\#123](https://github.com/sanger-pathogens/Roary/issues/123) +- Add support for GFF files from NCBI [\#120](https://github.com/sanger-pathogens/Roary/issues/120) + +**Merged pull requests:** + +- Fix usage text [\#122](https://github.com/sanger-pathogens/Roary/pull/122) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.2.0](https://github.com/sanger-pathogens/Roary/tree/v2.2.0) (2015-05-14) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.1.2...v2.2.0) + +**Closed issues:** + +- Verbose output with -v [\#113](https://github.com/sanger-pathogens/Roary/issues/113) + +**Merged pull requests:** + +- Accept genbank files [\#121](https://github.com/sanger-pathogens/Roary/pull/121) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.1.2](https://github.com/sanger-pathogens/Roary/tree/v2.1.2) (2015-05-12) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.1.1...v2.1.2) + +**Merged pull requests:** + +- Verbose output [\#118](https://github.com/sanger-pathogens/Roary/pull/118) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.1.1](https://github.com/sanger-pathogens/Roary/tree/v2.1.1) (2015-04-29) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.0.9...v2.1.1) + +**Merged pull requests:** + +- pass core definition into number of conserved genes plot [\#111](https://github.com/sanger-pathogens/Roary/pull/111) ([andrewjpage](https://github.com/andrewjpage)) +- Vary core definition [\#110](https://github.com/sanger-pathogens/Roary/pull/110) ([andrewjpage](https://github.com/andrewjpage)) +- Use block quotes in readme [\#109](https://github.com/sanger-pathogens/Roary/pull/109) ([bewt85](https://github.com/bewt85)) + +## [v2.0.9](https://github.com/sanger-pathogens/Roary/tree/v2.0.9) (2015-04-20) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.0.8...v2.0.9) + +**Merged pull requests:** + +- Allow for multiple processors to be used [\#108](https://github.com/sanger-pathogens/Roary/pull/108) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.0.8](https://github.com/sanger-pathogens/Roary/tree/v2.0.8) (2015-04-09) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.0.7...v2.0.8) + +**Merged pull requests:** + +- Speedup [\#107](https://github.com/sanger-pathogens/Roary/pull/107) ([andrewjpage](https://github.com/andrewjpage)) +- new version 2.0.7 [\#106](https://github.com/sanger-pathogens/Roary/pull/106) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.0.7](https://github.com/sanger-pathogens/Roary/tree/v2.0.7) (2015-03-28) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.0.5...v2.0.7) + +**Merged pull requests:** + +- old splits [\#105](https://github.com/sanger-pathogens/Roary/pull/105) ([andrewjpage](https://github.com/andrewjpage)) +- Speedup split [\#104](https://github.com/sanger-pathogens/Roary/pull/104) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.0.5](https://github.com/sanger-pathogens/Roary/tree/v2.0.5) (2015-03-26) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/2.0.4...v2.0.5) + +**Merged pull requests:** + +- Stop deep recursion [\#103](https://github.com/sanger-pathogens/Roary/pull/103) ([andrewjpage](https://github.com/andrewjpage)) +- check programs installed [\#102](https://github.com/sanger-pathogens/Roary/pull/102) ([andrewjpage](https://github.com/andrewjpage)) + +## [2.0.4](https://github.com/sanger-pathogens/Roary/tree/2.0.4) (2015-03-23) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/2.0.3...2.0.4) + +**Merged pull requests:** + +- File slurp tiny [\#101](https://github.com/sanger-pathogens/Roary/pull/101) ([andrewjpage](https://github.com/andrewjpage)) +- version 2.0.3 [\#100](https://github.com/sanger-pathogens/Roary/pull/100) ([andrewjpage](https://github.com/andrewjpage)) + +## [2.0.3](https://github.com/sanger-pathogens/Roary/tree/2.0.3) (2015-03-17) +[Full Changelog](https://github.com/sanger-pathogens/Roary/compare/v2.0.0...2.0.3) + +**Merged pull requests:** + +- Remove LSF support [\#99](https://github.com/sanger-pathogens/Roary/pull/99) ([andrewjpage](https://github.com/andrewjpage)) +- Dont set LSF as the default runner [\#98](https://github.com/sanger-pathogens/Roary/pull/98) ([andrewjpage](https://github.com/andrewjpage)) +- Rename directories to Roary [\#97](https://github.com/sanger-pathogens/Roary/pull/97) ([andrewjpage](https://github.com/andrewjpage)) + +## [v2.0.0](https://github.com/sanger-pathogens/Roary/tree/v2.0.0) (2015-03-16) +**Merged pull requests:** + +- Ship binaries [\#96](https://github.com/sanger-pathogens/Roary/pull/96) ([andrewjpage](https://github.com/andrewjpage)) +- Pad merged multifastas when data is missing [\#95](https://github.com/sanger-pathogens/Roary/pull/95) ([carlacummins](https://github.com/carlacummins)) +- Subsample reads [\#94](https://github.com/sanger-pathogens/Roary/pull/94) ([andrewjpage](https://github.com/andrewjpage)) +- Merge Carlas CGN [\#93](https://github.com/sanger-pathogens/Roary/pull/93) ([andrewjpage](https://github.com/andrewjpage)) +- rename spreadsheet [\#92](https://github.com/sanger-pathogens/Roary/pull/92) ([andrewjpage](https://github.com/andrewjpage)) +- Refactor out fasta grep [\#91](https://github.com/sanger-pathogens/Roary/pull/91) ([andrewjpage](https://github.com/andrewjpage)) +- remove fasta\_grep [\#90](https://github.com/sanger-pathogens/Roary/pull/90) ([andrewjpage](https://github.com/andrewjpage)) +- Add gnu parallel support [\#89](https://github.com/sanger-pathogens/Roary/pull/89) ([andrewjpage](https://github.com/andrewjpage)) +- Updated create\_pan\_genome help text to include -qc option [\#88](https://github.com/sanger-pathogens/Roary/pull/88) ([carlacummins](https://github.com/carlacummins)) +- QC report option added [\#87](https://github.com/sanger-pathogens/Roary/pull/87) ([carlacummins](https://github.com/carlacummins)) +- increase blastp min memory to 3gb from 100 [\#86](https://github.com/sanger-pathogens/Roary/pull/86) ([andrewjpage](https://github.com/andrewjpage)) +- Remove fastatranslate dependancy [\#85](https://github.com/sanger-pathogens/Roary/pull/85) ([andrewjpage](https://github.com/andrewjpage)) +- Queue set to basement if number of samples \> 600 \(previously 800\) [\#84](https://github.com/sanger-pathogens/Roary/pull/84) ([carlacummins](https://github.com/carlacummins)) +- Bug fix [\#83](https://github.com/sanger-pathogens/Roary/pull/83) ([carlacummins](https://github.com/carlacummins)) +- Added verbose stats option [\#82](https://github.com/sanger-pathogens/Roary/pull/82) ([carlacummins](https://github.com/carlacummins)) +- Group limit changed to 50,000 [\#81](https://github.com/sanger-pathogens/Roary/pull/81) ([carlacummins](https://github.com/carlacummins)) +- Multifastas not created when group limit \(default 8000\) exceeded [\#80](https://github.com/sanger-pathogens/Roary/pull/80) ([carlacummins](https://github.com/carlacummins)) +- allow for translation table to be passed in [\#79](https://github.com/sanger-pathogens/Roary/pull/79) ([andrewjpage](https://github.com/andrewjpage)) +- increase memory [\#78](https://github.com/sanger-pathogens/Roary/pull/78) ([andrewjpage](https://github.com/andrewjpage)) +- Allow user specify sorting when reordering spreadsheet against a tree [\#77](https://github.com/sanger-pathogens/Roary/pull/77) ([andrewjpage](https://github.com/andrewjpage)) +- Bug fixing [\#76](https://github.com/sanger-pathogens/Roary/pull/76) ([carlacummins](https://github.com/carlacummins)) +- Added AUTHORS file [\#75](https://github.com/sanger-pathogens/Roary/pull/75) ([aslett1](https://github.com/aslett1)) +- if theres more than 1k samples use basement for default analysis [\#74](https://github.com/sanger-pathogens/Roary/pull/74) ([andrewjpage](https://github.com/andrewjpage)) +- use long queue for more than 200 samples [\#73](https://github.com/sanger-pathogens/Roary/pull/73) ([andrewjpage](https://github.com/andrewjpage)) +- core alignment gets run with lsf [\#72](https://github.com/sanger-pathogens/Roary/pull/72) ([andrewjpage](https://github.com/andrewjpage)) +- Job runner ids lsf [\#71](https://github.com/sanger-pathogens/Roary/pull/71) ([andrewjpage](https://github.com/andrewjpage)) +- Core alignment missing file [\#70](https://github.com/sanger-pathogens/Roary/pull/70) ([andrewjpage](https://github.com/andrewjpage)) +- Core alignment missing file [\#69](https://github.com/sanger-pathogens/Roary/pull/69) ([andrewjpage](https://github.com/andrewjpage)) +- update error reporting [\#68](https://github.com/sanger-pathogens/Roary/pull/68) ([andrewjpage](https://github.com/andrewjpage)) +- Create core alignment from spreadsheet and multifasta files [\#67](https://github.com/sanger-pathogens/Roary/pull/67) ([andrewjpage](https://github.com/andrewjpage)) +- make script executable [\#66](https://github.com/sanger-pathogens/Roary/pull/66) ([andrewjpage](https://github.com/andrewjpage)) +- script to merge multifasta files together [\#65](https://github.com/sanger-pathogens/Roary/pull/65) ([andrewjpage](https://github.com/andrewjpage)) +- rename output gene multfastas and pass all sequences through [\#64](https://github.com/sanger-pathogens/Roary/pull/64) ([andrewjpage](https://github.com/andrewjpage)) +- Align genes at protein level and back translate to nucleotides [\#63](https://github.com/sanger-pathogens/Roary/pull/63) ([andrewjpage](https://github.com/andrewjpage)) +- Depth first search for reordering spreadsheet [\#62](https://github.com/sanger-pathogens/Roary/pull/62) ([andrewjpage](https://github.com/andrewjpage)) +- make the iterative cdhit script useful for standalone use [\#61](https://github.com/sanger-pathogens/Roary/pull/61) ([andrewjpage](https://github.com/andrewjpage)) +- query\_pan\_genome\_update\_text [\#60](https://github.com/sanger-pathogens/Roary/pull/60) ([andrewjpage](https://github.com/andrewjpage)) +- fix failing tests [\#59](https://github.com/sanger-pathogens/Roary/pull/59) ([andrewjpage](https://github.com/andrewjpage)) +- Create plot for % blast identity [\#58](https://github.com/sanger-pathogens/Roary/pull/58) ([andrewjpage](https://github.com/andrewjpage)) +- add a flag to keep intermediate files [\#57](https://github.com/sanger-pathogens/Roary/pull/57) ([andrewjpage](https://github.com/andrewjpage)) +- set the known gene names to black and rest to colours [\#56](https://github.com/sanger-pathogens/Roary/pull/56) ([andrewjpage](https://github.com/andrewjpage)) +- print fragment blocks [\#55](https://github.com/sanger-pathogens/Roary/pull/55) ([andrewjpage](https://github.com/andrewjpage)) +- Fix ordering of accessory [\#54](https://github.com/sanger-pathogens/Roary/pull/54) ([andrewjpage](https://github.com/andrewjpage)) +- fix r plots [\#53](https://github.com/sanger-pathogens/Roary/pull/53) ([andrewjpage](https://github.com/andrewjpage)) +- Overlapping proteins [\#52](https://github.com/sanger-pathogens/Roary/pull/52) ([andrewjpage](https://github.com/andrewjpage)) +- Gene order [\#51](https://github.com/sanger-pathogens/Roary/pull/51) ([andrewjpage](https://github.com/andrewjpage)) +- pass job runner to iterative cdhit [\#50](https://github.com/sanger-pathogens/Roary/pull/50) ([andrewjpage](https://github.com/andrewjpage)) +- iterative cdhit in a job [\#49](https://github.com/sanger-pathogens/Roary/pull/49) ([andrewjpage](https://github.com/andrewjpage)) +- Fix tests [\#48](https://github.com/sanger-pathogens/Roary/pull/48) ([andrewjpage](https://github.com/andrewjpage)) +- Prefilter optimisation [\#47](https://github.com/sanger-pathogens/Roary/pull/47) ([andrewjpage](https://github.com/andrewjpage)) +- dont split groups [\#46](https://github.com/sanger-pathogens/Roary/pull/46) ([andrewjpage](https://github.com/andrewjpage)) +- rename create plots R script [\#45](https://github.com/sanger-pathogens/Roary/pull/45) ([andrewjpage](https://github.com/andrewjpage)) +- cdhit should output full description of sequence name [\#44](https://github.com/sanger-pathogens/Roary/pull/44) ([andrewjpage](https://github.com/andrewjpage)) +- Gene count plot [\#43](https://github.com/sanger-pathogens/Roary/pull/43) ([andrewjpage](https://github.com/andrewjpage)) +- align gene multifasta files using muscle [\#42](https://github.com/sanger-pathogens/Roary/pull/42) ([andrewjpage](https://github.com/andrewjpage)) +- Reorder spreadsheet [\#41](https://github.com/sanger-pathogens/Roary/pull/41) ([andrewjpage](https://github.com/andrewjpage)) +- Reorder spreadsheet [\#40](https://github.com/sanger-pathogens/Roary/pull/40) ([andrewjpage](https://github.com/andrewjpage)) +- Speedup post analysis [\#39](https://github.com/sanger-pathogens/Roary/pull/39) ([andrewjpage](https://github.com/andrewjpage)) +- Presence and absence of genes [\#38](https://github.com/sanger-pathogens/Roary/pull/38) ([andrewjpage](https://github.com/andrewjpage)) +- split big groups based on annotation [\#37](https://github.com/sanger-pathogens/Roary/pull/37) ([andrewjpage](https://github.com/andrewjpage)) +- make multifasta files easier to sort [\#36](https://github.com/sanger-pathogens/Roary/pull/36) ([andrewjpage](https://github.com/andrewjpage)) +- dont wait in lfs scheduler [\#35](https://github.com/sanger-pathogens/Roary/pull/35) ([andrewjpage](https://github.com/andrewjpage)) +- run post analysis as a job [\#34](https://github.com/sanger-pathogens/Roary/pull/34) ([andrewjpage](https://github.com/andrewjpage)) +- annotate the names of the groups files [\#33](https://github.com/sanger-pathogens/Roary/pull/33) ([andrewjpage](https://github.com/andrewjpage)) +- Output all sequences making up pan genome in multifasta files [\#32](https://github.com/sanger-pathogens/Roary/pull/32) ([andrewjpage](https://github.com/andrewjpage)) +- Run external applications through lsf [\#31](https://github.com/sanger-pathogens/Roary/pull/31) ([andrewjpage](https://github.com/andrewjpage)) +- remove done dependancy job [\#30](https://github.com/sanger-pathogens/Roary/pull/30) ([andrewjpage](https://github.com/andrewjpage)) +- blocking job [\#29](https://github.com/sanger-pathogens/Roary/pull/29) ([andrewjpage](https://github.com/andrewjpage)) +- Filter unknowns in LSF jobs [\#28](https://github.com/sanger-pathogens/Roary/pull/28) ([andrewjpage](https://github.com/andrewjpage)) +- Pass job runner through to extract gffs [\#27](https://github.com/sanger-pathogens/Roary/pull/27) ([andrewjpage](https://github.com/andrewjpage)) +- Change case of GFF commandline class [\#26](https://github.com/sanger-pathogens/Roary/pull/26) ([andrewjpage](https://github.com/andrewjpage)) +- use LSF to do the inital parsing of input files [\#25](https://github.com/sanger-pathogens/Roary/pull/25) ([andrewjpage](https://github.com/andrewjpage)) +- renamed LICENSE [\#24](https://github.com/sanger-pathogens/Roary/pull/24) ([CraigPorter](https://github.com/CraigPorter)) +- GPL [\#23](https://github.com/sanger-pathogens/Roary/pull/23) ([andrewjpage](https://github.com/andrewjpage)) +- lsf memory in mb [\#22](https://github.com/sanger-pathogens/Roary/pull/22) ([andrewjpage](https://github.com/andrewjpage)) +- low complexity filtering [\#21](https://github.com/sanger-pathogens/Roary/pull/21) ([andrewjpage](https://github.com/andrewjpage)) +- inflate clusters where the representative gene is not the first [\#20](https://github.com/sanger-pathogens/Roary/pull/20) ([andrewjpage](https://github.com/andrewjpage)) +- report more sequences from blastp [\#19](https://github.com/sanger-pathogens/Roary/pull/19) ([andrewjpage](https://github.com/andrewjpage)) +- update tests for different input processing [\#18](https://github.com/sanger-pathogens/Roary/pull/18) ([andrewjpage](https://github.com/andrewjpage)) +- speedup extracting proteins from gff [\#17](https://github.com/sanger-pathogens/Roary/pull/17) ([andrewjpage](https://github.com/andrewjpage)) +- sort spreadsheet by number of isolates [\#16](https://github.com/sanger-pathogens/Roary/pull/16) ([andrewjpage](https://github.com/andrewjpage)) +- create spreadsheets of differences between sets [\#15](https://github.com/sanger-pathogens/Roary/pull/15) ([andrewjpage](https://github.com/andrewjpage)) +- Output statistics on groups [\#14](https://github.com/sanger-pathogens/Roary/pull/14) ([andrewjpage](https://github.com/andrewjpage)) +- Find the difference between isolates [\#13](https://github.com/sanger-pathogens/Roary/pull/13) ([andrewjpage](https://github.com/andrewjpage)) +- check if group is null [\#12](https://github.com/sanger-pathogens/Roary/pull/12) ([andrewjpage](https://github.com/andrewjpage)) +- catch undef [\#11](https://github.com/sanger-pathogens/Roary/pull/11) ([andrewjpage](https://github.com/andrewjpage)) +- tests for create pan genome script [\#10](https://github.com/sanger-pathogens/Roary/pull/10) ([andrewjpage](https://github.com/andrewjpage)) +- label fasta sequences with annotation ID [\#9](https://github.com/sanger-pathogens/Roary/pull/9) ([andrewjpage](https://github.com/andrewjpage)) +- extract proteomes from gffs and transfer anntotation as part of script [\#8](https://github.com/sanger-pathogens/Roary/pull/8) ([andrewjpage](https://github.com/andrewjpage)) +- transfer annotation [\#7](https://github.com/sanger-pathogens/Roary/pull/7) ([andrewjpage](https://github.com/andrewjpage)) +- speedup searching fastas [\#6](https://github.com/sanger-pathogens/Roary/pull/6) ([andrewjpage](https://github.com/andrewjpage)) +- typo in memory estimation [\#5](https://github.com/sanger-pathogens/Roary/pull/5) ([andrewjpage](https://github.com/andrewjpage)) +- run mcl and inflate results [\#4](https://github.com/sanger-pathogens/Roary/pull/4) ([andrewjpage](https://github.com/andrewjpage)) +- vary memory usage according to input file size [\#3](https://github.com/sanger-pathogens/Roary/pull/3) ([andrewjpage](https://github.com/andrewjpage)) +- working on real data [\#2](https://github.com/sanger-pathogens/Roary/pull/2) ([andrewjpage](https://github.com/andrewjpage)) +- Initial functionality [\#1](https://github.com/sanger-pathogens/Roary/pull/1) ([andrewjpage](https://github.com/andrewjpage)) + diff -r 000000000000 -r c47a5f61bc9f Roary/Dockerfile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/Dockerfile Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,14 @@ +# +# From this base-image / starting-point +# +FROM debian:testing + +# +# Authorship +# +MAINTAINER ap13@sanger.ac.uk + +# +# Pull in packages from testing +# +RUN apt-get update -qq && apt-get install -y roary diff -r 000000000000 -r c47a5f61bc9f Roary/GPL-LICENSE --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/GPL-LICENSE Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,680 @@ +This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute. + +This is free software, licensed under: + + The GNU General Public License, Version 3, June 2007 + + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff -r 000000000000 -r c47a5f61bc9f Roary/README.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/README.md Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,219 @@ +# Roary - The pan genome pipeline +Takes annotated assemblies in GFF3 format and calculates the pan genome. + +PLEASE NOTE: we currently do not have the resources to provide support for Roary, so please do not expect a reply if you flag any issue. + +[![Unmaintained](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/) +[![Build Status](https://travis-ci.org/sanger-pathogens/Roary.svg?branch=master)](https://travis-ci.org/sanger-pathogens/Roary) +[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-brightgreen.svg)](https://github.com/sanger-pathogens/roary/blob/master/GPL-LICENSE) +[![status](https://img.shields.io/badge/Bioinformatics-10.1093-brightgreen.svg)](https://academic.oup.com/bioinformatics/article/31/22/3691/240757) +[![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg)](http://bioconda.github.io/recipes/roary/README.html) +[![Container ready](https://img.shields.io/badge/container-ready-brightgreen.svg)](https://quay.io/repository/biocontainers/roary) +[![Docker Build Status](https://img.shields.io/docker/build/sangerpathogens/roary.svg)](https://hub.docker.com/r/sangerpathogens/roary) +[![Docker Pulls](https://img.shields.io/docker/pulls/sangerpathogens/roary.svg)](https://hub.docker.com/r/sangerpathogens/roary) +[![codecov](https://codecov.io/gh/sanger-pathogens/roary/branch/master/graph/badge.svg)](https://codecov.io/gh/sanger-pathogens/roary) + +## Contents + * [Introduction](#introduction) + * [Installation](#installation) + * [Required dependencies](#required-dependencies) + * [Optional dependencies](#optional-dependencies) + * [Ubuntu/Debian](#ubuntudebian) + * [Debian Testing](#debian-testing) + * [Ubuntu 14\.04/16\.04](#ubuntu-14041604) + * [Ubuntu 12\.04](#ubuntu-1204) + * [Bioconda \- OSX/Linux](#bioconda---osxlinux) + * [Galaxy](#galaxy) + * [GNU Guix](#gnu-guix) + * [Virtual Machine \- OSX/Linux/Windows](#virtual-machine---osxlinuxwindows) + * [Docker \- OSX/Linux/Windows/Cloud](#docker---osxlinuxwindowscloud) + * [Installing from source (advanced Linux users only)](#installing-from-source-advanced-linux-users-only) + * [Ancient systems and versions of perl](#ancient-systems-and-versions-of-perl) + * [Running the tests](#running-the-tests) + * [Versions of software we test against](#versions-of-software-we-test-against) + * [Usage](#usage) + * [License](#license) + * [Feedback/Issues](#feedbackissues) + * [Citation](#citation) + * [Further Information](#further-information) + +## Introduction +Roary is a high speed stand alone pan genome pipeline, which takes annotated assemblies in GFF3 format (produced by Prokka) and calculates the pan genome. Using a standard desktop PC, it can analyse datasets with thousands of samples, something which is computationally infeasible with existing methods, without compromising the quality of the results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a single processor. To perform this analysis using existing methods would take weeks and hundreds of GB of RAM. + +## Installation +Roary has the following dependencies: + +### Required dependencies +* [bedtools](https://bedtools.readthedocs.io/en/latest/) +* [cd-hit](http://weizhongli-lab.org/cd-hit/) +* [ncbi-blast+](https://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&PAGE_TYPE=BlastDocs&DOC_TYPE=Download) +* [mcl](https://micans.org/mcl/) +* [parallel](https://www.gnu.org/software/parallel/) +* [prank](http://wasabiapp.org/software/prank/) +* [mafft](https://mafft.cbrc.jp/alignment/software/) +* [fasttree](http://www.microbesonline.org/fasttree/) + +### Optional dependencies +* [kraken](http://ccb.jhu.edu/software/kraken/MANUAL.html) + +There are a number of ways to install Roary and details are provided below. If you encounter an issue when installing Roary please contact your local system administrator. + +### Ubuntu/Debian +#### Debian Testing +``` +sudo apt-get install roary +``` + +#### Ubuntu 14.04/16.04 +All the dependancies can be installed using apt and cpanm. Root permissions are required. Ubuntu 16.04 contains a package for Roary but it is frozen at v3.6.0. + +``` +sudo apt-get install bedtools cd-hit ncbi-blast+ mcl parallel cpanminus prank mafft fasttree +sudo cpanm -f Bio::Roary +``` + +#### Ubuntu 12.04 +Some of the software versions in apt are quite old so follow the instructions for Bioconda below. + +### Bioconda - OSX/Linux +Install conda. Then install bioconda and roary: + +``` +conda config --add channels r +conda config --add channels defaults +conda config --add channels conda-forge +conda config --add channels bioconda +conda install roary +``` + +### Galaxy +Roary is available from the Galaxy toolshed (as is Prokka). + +### GNU Guix +Roary is included in [Guix](https://www.gnu.org/software/guix) and can be installed in the usual way: +``` +guix package --install roary +``` + +### Virtual Machine - OSX/Linux/Windows +Roary wont run natively on Windows but we have created virtual machine which has all of the software setup, including Prokka, along with the test datasets from the paper. It is based on [Bio-Linux 8](http://environmentalomics.org/bio-linux/). You need to first install [VirtualBox](https://www.virtualbox.org/), then load the virtual machine, using the 'File -> Import Appliance' menu option. The root password is 'manager'. + +ftp://ftp.sanger.ac.uk/pub/pathogens/pathogens-vm/pathogens-vm.latest.ova + +More importantly though, if you're trying to do bioinformatics on Windows, you're not going to get very far and you should seriously consider upgrading to Linux. + +### Docker - OSX/Linux/Windows/Cloud +We have a docker container which gets automatically built from the latest version of Roary in Debian Med. To install it: + +``` +docker pull sangerpathogens/roary +``` + +To use it you would use a command such as this (substituting in your directories), where your GFF files are assumed to be stored in /home/ubuntu/data: +``` +docker run --rm -it -v /home/ubuntu/data:/data sangerpathogens/roary roary -f /data /data/*.gff +``` + +### Installing from source (advanced Linux users only) +As a last resort you can install everything from source. This is for users with advanced Linux skills and we do not provide any support with this method since you have the skills to figure things out. +Download the latest software from (https://github.com/sanger-pathogens/Roary/tarball/master). + +Choose somewhere to put it, for example in your home directory (no root access required): + +``` +cd $HOME +tar zxvf sanger-pathogens-Roary-xxxxxx.tar.gz +ls Roary-* +``` + +Add the following lines to your $HOME/.bashrc file, or to /etc/profile.d/roary.sh to make it available to all users: + +``` +export PATH=$PATH:$HOME/Roary-x.x.x/bin +export PERL5LIB=$PERL5LIB:$HOME/Roary-x.x.x/lib +``` +Install the Perl dependencies: + +``` +sudo cpanm Array::Utils Bio::Perl Exception::Class File::Basename File::Copy File::Find::Rule File::Grep File::Path File::Slurper File::Spec File::Temp File::Which FindBin Getopt::Long Graph Graph::Writer::Dot List::Util Log::Log4perl Moose Moose::Role Text::CSV PerlIO::utf8_strict Devel::OverloadInfo Digest::MD5::File +``` +Install the external dependances either from source or from your packaging system: +``` +bedtools cd-hit blast mcl GNUparallel prank mafft fasttree +``` + +### Ancient systems and versions of perl +The code will not work with perl 5.8 or below (pre-modern perl). We no longer test against 5.10 (released 2007) or 5.12 (released 2010). If you're running a very old verison of Linux, you're also in trouble. + +### Running the tests +The test can be run with dzil from the top level directory: + +``` +dzil test +``` + +### Versions of software we test against +* Perl 5.14, 5.26 +* cdhit 4.6.8 +* ncbi blast+ 2.6.0 +* mcl 14-137 +* bedtools 2.27.1 +* prank 140603 +* GNU parallel 20170822, 20160722 +* FastTree 2.1.9 + +## Usage +``` +Usage: roary [options] *.gff + +Options: -p INT number of threads [1] + -o STR clusters output filename [clustered_proteins] + -f STR output directory [.] + -e create a multiFASTA alignment of core genes using PRANK + -n fast core gene alignment with MAFFT, use with -e + -i minimum percentage identity for blastp [95] + -cd FLOAT percentage of isolates a gene must be in to be core [99] + -qc generate QC report with Kraken + -k STR path to Kraken database for QC, use with -qc + -a check dependancies and print versions + -b STR blastp executable [blastp] + -c STR mcl executable [mcl] + -d STR mcxdeblast executable [mcxdeblast] + -g INT maximum number of clusters [50000] + -m STR makeblastdb executable [makeblastdb] + -r create R plots, requires R and ggplot2 + -s dont split paralogs + -t INT translation table [11] + -ap allow paralogs in core alignment + -z dont delete intermediate files + -v verbose output to STDOUT + -w print version and exit + -y add gene inference information to spreadsheet, doesnt work with -e + -iv STR Change the MCL inflation value [1.5] + -h this help message + +Example: Quickly generate a core gene alignment using 8 threads + roary -e --mafft -p 8 *.gff + +For further info see: http://sanger-pathogens.github.io/Roary/ +``` +For further instructions on how to use the software, the input format and output formats, please see [the Roary website](http://sanger-pathogens.github.io/Roary). + +## License +Roary is free software, licensed under [GPLv3](https://github.com/sanger-pathogens/Roary/blob/master/GPL-LICENSE). + +## Feedback/Issues +We currently do not have the resources to provide support for Roary. However, the community might be able to help you out if you report any issues about usage of the software to the [issues page](https://github.com/sanger-pathogens/Roary/issues). + +## Citation +If you use this software please cite: + + "Roary: Rapid large-scale prokaryote pan genome analysis", + Andrew J. Page, Carla A. Cummins, Martin Hunt, Vanessa K. Wong, Sandra Reuter, Matthew T. G. Holden, Maria Fookes, Daniel Falush, Jacqueline A. Keane, Julian Parkhill, + Bioinformatics, (2015). doi: http://dx.doi.org/10.1093/bioinformatics/btv421 +[Roary: Rapid large-scale prokaryote pan genome analysis](http://dx.doi.org/10.1093/bioinformatics/btv421) + +## Further Information +For more information on this software see: +* [The Roary website](http://sanger-pathogens.github.io/Roary) +* [The Jupyter notebook tutorial](https://github.com/sanger-pathogens/pathogen-informatics-training) diff -r 000000000000 -r c47a5f61bc9f Roary/bin/create_pan_genome --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/create_pan_genome Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::CreatePanGenome; + +# ABSTRACT: Create a pan genome from a set of GFF files with WTSI defaults +# PODNAME: create_pan_genome + +=head1 SYNOPSIS + +Create a pan genome from a set of GFF files with WTSI defaults + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::CreatePanGenome; + +Bio::Roary::CommandLine::CreatePanGenome->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/create_pan_genome_plots.R --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/create_pan_genome_plots.R Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,59 @@ +#!/usr/bin/env Rscript +# ABSTRACT: Create R plots +# PODNAME: create_plots.R +# Take the output files from the pan genome pipeline and create nice plots. +library(ggplot2) + + +mydata = read.table("number_of_new_genes.Rtab") +boxplot(mydata, data=mydata, main="Number of new genes", + xlab="No. of genomes", ylab="No. of genes",varwidth=TRUE, ylim=c(0,max(mydata)), outline=FALSE) + +mydata = read.table("number_of_conserved_genes.Rtab") +boxplot(mydata, data=mydata, main="Number of conserved genes", + xlab="No. of genomes", ylab="No. of genes",varwidth=TRUE, ylim=c(0,max(mydata)), outline=FALSE) + +mydata = read.table("number_of_genes_in_pan_genome.Rtab") +boxplot(mydata, data=mydata, main="No. of genes in the pan-genome", + xlab="No. of genomes", ylab="No. of genes",varwidth=TRUE, ylim=c(0,max(mydata)), outline=FALSE) + +mydata = read.table("number_of_unique_genes.Rtab") +boxplot(mydata, data=mydata, main="Number of unique genes", + xlab="No. of genomes", ylab="No. of genes",varwidth=TRUE, ylim=c(0,max(mydata)), outline=FALSE) + +mydata = read.table("blast_identity_frequency.Rtab") +plot(mydata,main="Number of blastp hits with different percentage identity", xlab="Blast percentage identity", ylab="No. blast results") + + +library(ggplot2) +conserved = colMeans(read.table("number_of_conserved_genes.Rtab")) +total = colMeans(read.table("number_of_genes_in_pan_genome.Rtab")) + +genes = data.frame( genes_to_genomes = c(conserved,total), + genomes = c(c(1:length(conserved)),c(1:length(conserved))), + Key = c(rep("Conserved genes",length(conserved)), rep("Total genes",length(total))) ) + +ggplot(data = genes, aes(x = genomes, y = genes_to_genomes, group = Key, linetype=Key)) +geom_line()+ +theme_classic() + +ylim(c(1,max(total)))+ +xlim(c(1,length(total)))+ +xlab("No. of genomes") + +ylab("No. of genes")+ theme_bw(base_size = 16) + theme(legend.justification=c(0,1),legend.position=c(0,1))+ +ggsave(filename="conserved_vs_total_genes.png", scale=1) + +###################### + +unique_genes = colMeans(read.table("number_of_unique_genes.Rtab")) +new_genes = colMeans(read.table("number_of_new_genes.Rtab")) + +genes = data.frame( genes_to_genomes = c(unique_genes,new_genes), + genomes = c(c(1:length(unique_genes)),c(1:length(unique_genes))), + Key = c(rep("Unique genes",length(unique_genes)), rep("New genes",length(new_genes))) ) + +ggplot(data = genes, aes(x = genomes, y = genes_to_genomes, group = Key, linetype=Key)) +geom_line()+ +theme_classic() + +ylim(c(1,max(unique_genes)))+ +xlim(c(1,length(unique_genes)))+ +xlab("No. of genomes") + +ylab("No. of genes")+ theme_bw(base_size = 16) + theme(legend.justification=c(1,1),legend.position=c(1,1))+ +ggsave(filename="unique_vs_new_genes.png", scale=1) diff -r 000000000000 -r c47a5f61bc9f Roary/bin/extract_proteome_from_gff --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/extract_proteome_from_gff Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::ExtractProteomeFromGFF; + +# ABSTRACT: Take in GFF files and output the proteome +# PODNAME: extract_proteome_from_gff + +=head1 SYNOPSIS + +Take in GFF files and output the proteome + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::ExtractProteomeFromGff; + +Bio::Roary::CommandLine::ExtractProteomeFromGff->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/iterative_cdhit --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/iterative_cdhit Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::IterativeCdhit; + +# ABSTRACT: Iteratively run cdhit +# PODNAME: iterative_cdhit + +=head1 SYNOPSIS + +Iteratively run cdhit + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::IterativeCdhit; + +Bio::Roary::CommandLine::IterativeCdhit->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/pan_genome_assembly_statistics --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/pan_genome_assembly_statistics Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::AssemblyStatistics; + +# ABSTRACT: Given a spreadsheet of gene presence and absence calculate some statistics +# PODNAME: pan_genome_assembly_statistics + +=head1 SYNOPSIS + +Given a spreadsheet of gene presence and absence calculate some statistics + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::AssemblyStatistics; + +Bio::Roary::CommandLine::AssemblyStatistics->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/pan_genome_core_alignment --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/pan_genome_core_alignment Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::RoaryCoreAlignment; + +# ABSTRACT: Take in the group statistics spreadsheet and the location of the gene multifasta files and create a core alignment. +# PODNAME: pan_genome_core_alignment + +=head1 SYNOPSIS + + Take in the group statistics spreadsheet and the location of the gene multifasta files and create a core alignment. + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::RoaryCoreAlignment; + +Bio::Roary::CommandLine::RoaryCoreAlignment->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/pan_genome_post_analysis --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/pan_genome_post_analysis Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::RoaryPostAnalysis; + +# ABSTRACT: Perform the post analysis on the pan genome +# PODNAME: pan_genome_post_analysis + +=head1 SYNOPSIS + +Perform the post analysis on the pan genome + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::RoaryPostAnalysis; + +Bio::Roary::CommandLine::RoaryPostAnalysis->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/pan_genome_reorder_spreadsheet --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/pan_genome_reorder_spreadsheet Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::RoaryReorderSpreadsheet; + +# ABSTRACT: Take in a tree and a spreadsheet and output a reordered spreadsheet +# PODNAME: pan_genome_reorder_spreadsheet + +=head1 SYNOPSIS + +Take in a tree and a spreadsheet and output a reordered spreadsheet + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::RoaryReorderSpreadsheet; + +Bio::Roary::CommandLine::RoaryReorderSpreadsheet->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/parallel_all_against_all_blastp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/parallel_all_against_all_blastp Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::ParallelAllAgainstAllBlastp; + +# ABSTRACT: Take in a FASTA file of proteins and blast against itself +# PODNAME: parallel_all_against_all_blastp + +=head1 SYNOPSIS + +Take in a FASTA file of proteins and blast against itself + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::ParallelAllAgainstAllBlastp; + +Bio::Roary::CommandLine::ParallelAllAgainstAllBlastp->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/protein_alignment_from_nucleotides --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/protein_alignment_from_nucleotides Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::GeneAlignmentFromNucleotides; + +# ABSTRACT: Take in multi-FASTA files of nucleotides and align each file with PRANK or MAFFT +# PODNAME: protein_alignment_from_nucleotides + +=head1 SYNOPSIS + +Take in multi-FASTA files of nucleotides and align each file with PRANK or MAFFT + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::GeneAlignmentFromNucleotides; + +Bio::Roary::CommandLine::GeneAlignmentFromNucleotides->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/query_pan_genome --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/query_pan_genome Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::QueryRoary; + +# ABSTRACT: Take in a groups file and the protein fasta files and output selected data +# PODNAME: query_pan_genome + +=head1 SYNOPSIS + +Take in a groups file and the protein fasta files and output selected data + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::QueryRoary; + +Bio::Roary::CommandLine::QueryRoary->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/roary --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/roary Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::Roary; + +# ABSTRACT: Create a pan genome from a set of GFF files +# PODNAME: roary + +=head1 SYNOPSIS + +Create a pan genome from a set of GFF files + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::Roary; + +Bio::Roary::CommandLine::Roary->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/roary-create_pan_genome_plots.R --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/roary-create_pan_genome_plots.R Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,59 @@ +#!/usr/bin/env Rscript +# ABSTRACT: Create R plots +# PODNAME: create_plots.R +# Take the output files from the pan genome pipeline and create nice plots. +library(ggplot2) + + +mydata = read.table("number_of_new_genes.Rtab") +boxplot(mydata, data=mydata, main="Number of new genes", + xlab="No. of genomes", ylab="No. of genes",varwidth=TRUE, ylim=c(0,max(mydata)), outline=FALSE) + +mydata = read.table("number_of_conserved_genes.Rtab") +boxplot(mydata, data=mydata, main="Number of conserved genes", + xlab="No. of genomes", ylab="No. of genes",varwidth=TRUE, ylim=c(0,max(mydata)), outline=FALSE) + +mydata = read.table("number_of_genes_in_pan_genome.Rtab") +boxplot(mydata, data=mydata, main="No. of genes in the pan-genome", + xlab="No. of genomes", ylab="No. of genes",varwidth=TRUE, ylim=c(0,max(mydata)), outline=FALSE) + +mydata = read.table("number_of_unique_genes.Rtab") +boxplot(mydata, data=mydata, main="Number of unique genes", + xlab="No. of genomes", ylab="No. of genes",varwidth=TRUE, ylim=c(0,max(mydata)), outline=FALSE) + +mydata = read.table("blast_identity_frequency.Rtab") +plot(mydata,main="Number of blastp hits with different percentage identity", xlab="Blast percentage identity", ylab="No. blast results") + + +library(ggplot2) +conserved = colMeans(read.table("number_of_conserved_genes.Rtab")) +total = colMeans(read.table("number_of_genes_in_pan_genome.Rtab")) + +genes = data.frame( genes_to_genomes = c(conserved,total), + genomes = c(c(1:length(conserved)),c(1:length(conserved))), + Key = c(rep("Conserved genes",length(conserved)), rep("Total genes",length(total))) ) + +ggplot(data = genes, aes(x = genomes, y = genes_to_genomes, group = Key, linetype=Key)) +geom_line()+ +theme_classic() + +ylim(c(1,max(total)))+ +xlim(c(1,length(total)))+ +xlab("No. of genomes") + +ylab("No. of genes")+ theme_bw(base_size = 16) + theme(legend.justification=c(0,1),legend.position=c(0,1))+ +ggsave(filename="conserved_vs_total_genes.png", scale=1) + +###################### + +unique_genes = colMeans(read.table("number_of_unique_genes.Rtab")) +new_genes = colMeans(read.table("number_of_new_genes.Rtab")) + +genes = data.frame( genes_to_genomes = c(unique_genes,new_genes), + genomes = c(c(1:length(unique_genes)),c(1:length(unique_genes))), + Key = c(rep("Unique genes",length(unique_genes)), rep("New genes",length(new_genes))) ) + +ggplot(data = genes, aes(x = genomes, y = genes_to_genomes, group = Key, linetype=Key)) +geom_line()+ +theme_classic() + +ylim(c(1,max(unique_genes)))+ +xlim(c(1,length(unique_genes)))+ +xlab("No. of genomes") + +ylab("No. of genes")+ theme_bw(base_size = 16) + theme(legend.justification=c(1,1),legend.position=c(1,1))+ +ggsave(filename="unique_vs_new_genes.png", scale=1) diff -r 000000000000 -r c47a5f61bc9f Roary/bin/roary-pan_genome_reorder_spreadsheet --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/roary-pan_genome_reorder_spreadsheet Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::RoaryReorderSpreadsheet; + +# ABSTRACT: Take in a tree and a spreadsheet and output a reordered spreadsheet +# PODNAME: pan_genome_reorder_spreadsheet + +=head1 SYNOPSIS + +Take in a tree and a spreadsheet and output a reordered spreadsheet + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::RoaryReorderSpreadsheet; + +Bio::Roary::CommandLine::RoaryReorderSpreadsheet->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/roary-query_pan_genome --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/roary-query_pan_genome Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::QueryRoary; + +# ABSTRACT: Take in a groups file and the protein fasta files and output selected data +# PODNAME: query_pan_genome + +=head1 SYNOPSIS + +Take in a groups file and the protein fasta files and output selected data + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::QueryRoary; + +Bio::Roary::CommandLine::QueryRoary->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/roary-unique_genes_per_sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/roary-unique_genes_per_sample Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::UniqueGenesPerSample; + +# ABSTRACT: Take in the clustered file and produce a sorted file with the frequency of each samples unique genes +# PODNAME: roary-unique_genes_per_sample + +=head1 SYNOPSIS + +Take in the clustered file and produce a sorted file with the frequency of each samples unique genes + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::UniqueGenesPerSample; + +Bio::Roary::CommandLine::UniqueGenesPerSample->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/bin/transfer_annotation_to_groups --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/bin/transfer_annotation_to_groups Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +package Bio::Roary::Main::TransferAnnotationToGroups; + +# ABSTRACT: Take in a groups file and a set of GFF files and transfer the consensus annotation +# PODNAME: transfer_annotation_to_groups + +=head1 SYNOPSIS + +Take in a groups file and a set of GFF files and transfer the consensus annotation + +=cut + +use Cwd qw(abs_path); +BEGIN { unshift( @INC, abs_path('./lib') ) } +BEGIN { unshift( @INC, abs_path('./t/lib') ) } +use Bio::Roary::CommandLine::TransferAnnotationToGroups; + +Bio::Roary::CommandLine::TransferAnnotationToGroups->new(args => \@ARGV, script_name => $0)->run; diff -r 000000000000 -r c47a5f61bc9f Roary/contrib/roary2svg/roary2svg.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/contrib/roary2svg/roary2svg.pl Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,147 @@ +#!/usr/bin/env perl +# From Torsten Seemann commit f46312e9df539c56b058f0ef25479d7297ceec89 +# https://raw.githubusercontent.com/tseemann/nullarbor/master/bin/roary2svg.pl +use warnings; +use strict; +use Data::Dumper; +use List::Util qw(min max sum); +use List::MoreUtils qw(uniq all any); +use Text::CSV; +use SVG; + +use constant FONT_ASPECT => 0.8; + +my(@Options, $verbose, $taxacol, $width, $height, $acconly, + $consensus, $border, $colour, $sepcolour); +setOptions(); + +# read gene_presence_absence.csv from stdin +# "Gene","Non-unique Gene name","Annotation","No. isolates","No. sequences","Avg sequences per isolate","Genome Fragment","Order within Fragment","Accessory Fragment","Accessory Order with Fragment","QC","SRR2352235","SRR2352236","SRR2352237","SRR2352238","SRR2352239","SRR2352240","SRR2352241","SRR2352242","SRR2352243","SRR2352244","SRR2352245","SRR2352246","SRR2352247","SRR2352248","SRR2352249","SRR2352250","SRR2352251","SRR2352252" +my $csv = Text::CSV->new() or die $!; +my $count=0; +my @matrix; +my @id; +my $N; +my $C=0; +my @tally; # genes per taxon +my @is_core; # boolean for this cluster being core + +while (my $row = $csv->getline(\*ARGV) ) { + if ($count == 0) { + @id = splice @$row, $taxacol; + $N = scalar(@id); + print STDERR "Found $N taxa: @id\n"; + } + else { + my @present = map { $row->[$taxacol+$_] ? 1 : 0 } (0 .. $N-1); + my $num_present = sum(@present); + $is_core[$count] = ($num_present == $N); + next if $acconly and $is_core[$count]; +# next if $panonly and all { $_==1 } @present; + push @{ $matrix[$_] }, $present[$_] for (0 .. $N-1); + $tally[$_] += $present[$_] for (0 .. $N-1); + $C++; + } + $count++; +} +print STDERR "Found $C clusters.\n"; + +my $real_height = $height*($N+1); +my $svg = SVG->new(width=>$width, height=>$real_height); +my $dy = $height; +my $fontsize = 0.75 * $dy; + +my $lchars = max( map { length($_) } @id ); +my $llen = $fontsize * (1 + $lchars) * FONT_ASPECT; + +my $rchars = max( map { length("$_") } @tally); +my $rlen = $fontsize * (1 + $rchars) * FONT_ASPECT; + +my $width2 = $width - $llen - $rlen; +my $dx = $width2 / $C; +my $font_style = { 'font-family'=>'sans-serif', 'fill'=>'black', 'font-size'=>$fontsize }; + +print STDERR "Box = $dx x $dy px\n"; +print STDERR "Left label = $lchars chr x $fontsize px\n"; +print STDERR "Right label = $rchars chr x $fontsize px\n"; + +for my $j (0 .. $N-1) { + for my $i (0 .. $C-1) { +# print STDERR "$j $i $matrix[$j][$i]\n"; + if ($matrix[$j][$i]) { + # box for each present gene + $svg->rectangle( + 'x' => $llen+$i*$dx, 'y' => $j*$dy, 'width' => $dx, 'height' => $dy-1, + 'style' => { fill=>$colour, opacity=>($is_core[$i] ? 1 : 0.75) }, + ); + } + } + # taxon label for each row + $svg->text( x=>$fontsize, y=>($j+0.75)*$dy, -cdata=>$id[$j], style=>$font_style ); + # number of genes for each row + $svg->text( x=>$llen+$width2+$fontsize, y=>($j+0.75)*$dy, -cdata=>$tally[$j], style=>$font_style ); + # separator line + my $ypos = ($j+1)*$dy; + $svg->line( x1=>0, y1=>$ypos, x2=>$width, y2=>$ypos, style=>{stroke=>$sepcolour}); +} + +# bottom label +my $bottom_text = "$N taxa, $C clusters"; +$bottom_text .= $acconly ? " (accessory only)" : " (core + accessory)"; +$svg->text( x=>$llen, y=>($N+0.75)*$dy, -cdata=>$bottom_text, style=>$font_style ); + +# border +if ($border) { + $svg->rectangle( + 'x' => 0, 'y' => 0, 'width' => $width, 'height' => $real_height, + 'style' => { stroke=>$sepcolour, fill=>'none' }, + ); +} + +print STDERR "Writing SVG file\n"; +print STDOUT $svg->xmlify; + +print STDERR "Done.\n"; + +#---------------------------------------------------------------------- +# Option setting routines + +sub setOptions { + use Getopt::Long; + + @Options = ( + {OPT=>"help", VAR=>\&usage, DESC=>"This help"}, + {OPT=>"verbose!", VAR=>\$verbose, DEFAULT=>0, DESC=>"Verbose output"}, + {OPT=>"width=i", VAR=>\$width, DEFAULT=>1024, DESC=>"Canvas width"}, + {OPT=>"height=i", VAR=>\$height, DEFAULT=>20, DESC=>"Row height"}, + {OPT=>"taxacolumn=i", VAR=>\$taxacol, DEFAULT=>14, DESC=>"Column in gpa.csv where taxa begin"}, + {OPT=>"colour=s", VAR=>\$colour, DEFAULT=>'DimGray', DESC=>"Colour of core cells"}, + {OPT=>"sepcolour=s", VAR=>\$sepcolour, DEFAULT=>'LightGray', DESC=>"Colour of horizontal separators/borders"}, + {OPT=>"acconly!", VAR=>\$acconly, DEFAULT=>0, DESC=>"Only draw accessory (non-core) genes"}, +# {OPT=>"consensus!", VAR=>\$consensus, DEFAULT=>0, DESC=>"Add consensus row"}, + {OPT=>"border!", VAR=>\$border, DEFAULT=>0, DESC=>"Add outline border"}, + ); + + (!@ARGV) && (usage()); + + &GetOptions(map {$_->{OPT}, $_->{VAR}} @Options) || usage(); + + # Now setup default values. + foreach (@Options) { + if (defined($_->{DEFAULT}) && !defined(${$_->{VAR}})) { + ${$_->{VAR}} = $_->{DEFAULT}; + } + } +} + +sub usage { + print "Usage: $0 [options] gene_presence_absence.csv > pan_genome.svg\n"; + foreach (@Options) { + printf " --%-13s %s%s.\n",$_->{OPT},$_->{DESC}, + defined($_->{DEFAULT}) ? " (default '$_->{DEFAULT}')" : ""; + } + exit(1); +} + +#---------------------------------------------------------------------- + diff -r 000000000000 -r c47a5f61bc9f Roary/contrib/roary_plots/README.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/contrib/roary_plots/README.md Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,20 @@ +#Roary plots +Marco Galardini (marco@ebi.ac.uk) has prepared an ipython notebook which can take in a tree (newick) and the gene presence and absence spreadsheet, and generate some nice plots. + +The dependancies are: +- python (2 or 3) +- Biopython +- numpy +- pandas +- matplotlib +- seaborn + +Usage: +``` +python roary_plots.py my_tree.tre gene_presence_absence.csv +``` + +The images it produces are: +* A pan genome frequency plot +* A presence and absence matrix against a tree +* A piechart of the pan genome, breaking down the core, soft core, shell and cloud. diff -r 000000000000 -r c47a5f61bc9f Roary/contrib/roary_plots/roary.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/contrib/roary_plots/roary.html Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,600 @@ + + + + + +roary + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+

Roary pangenome plots¶

+
+
+
+
+
+
+ +
+
+ + +
+
+ + +
+
+
+
+
+
+

parSNP tree¶

Any other valid newick file is fine, if the tip labels is the same as in the gene_presence_absence matrix from roary.

+ +
+
+
+
+ + +
+
+ + +
+
+
+
+
+
+

Roary¶

+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +
+ +
+ +
+ +
+
+ +
+
+ + +
+
+ + +
+
+ + +
+ + +
+ +
+ +
+ +
+
+ +
+
+ + +
+
+ + +
+ + +
+ +
+ +
+ +
+
+ +
+
+
+ + + \ No newline at end of file diff -r 000000000000 -r c47a5f61bc9f Roary/contrib/roary_plots/roary_files/MathJax.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/contrib/roary_plots/roary_files/MathJax.js Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,19 @@ +/* + * /MathJax.js + * + * Copyright (c) 2009-2015 The MathJax Consortium + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +if(document.getElementById&&document.childNodes&&document.createElement){if(!(window.MathJax&&MathJax.Hub)){if(window.MathJax){window.MathJax={AuthorConfig:window.MathJax}}else{window.MathJax={}}MathJax.isPacked=true;MathJax.version="2.5";MathJax.fileversion="2.5.3";MathJax.cdnVersion="2.5.3";MathJax.cdnFileVersions={};(function(d){var b=window[d];if(!b){b=window[d]={}}var e=[];var c=function(f){var g=f.constructor;if(!g){g=function(){}}for(var h in f){if(h!=="constructor"&&f.hasOwnProperty(h)){g[h]=f[h]}}return g};var a=function(){return function(){return arguments.callee.Init.call(this,arguments)}};b.Object=c({constructor:a(),Subclass:function(f,h){var g=a();g.SUPER=this;g.Init=this.Init;g.Subclass=this.Subclass;g.Augment=this.Augment;g.protoFunction=this.protoFunction;g.can=this.can;g.has=this.has;g.isa=this.isa;g.prototype=new this(e);g.prototype.constructor=g;g.Augment(f,h);return g},Init:function(f){var g=this;if(f.length===1&&f[0]===e){return g}if(!(g instanceof f.callee)){g=new f.callee(e)}return g.Init.apply(g,f)||g},Augment:function(f,g){var h;if(f!=null){for(h in f){if(f.hasOwnProperty(h)){this.protoFunction(h,f[h])}}if(f.toString!==this.prototype.toString&&f.toString!=={}.toString){this.protoFunction("toString",f.toString)}}if(g!=null){for(h in g){if(g.hasOwnProperty(h)){this[h]=g[h]}}}return this},protoFunction:function(g,f){this.prototype[g]=f;if(typeof f==="function"){f.SUPER=this.SUPER.prototype}},prototype:{Init:function(){},SUPER:function(f){return f.callee.SUPER},can:function(f){return typeof(this[f])==="function"},has:function(f){return typeof(this[f])!=="undefined"},isa:function(f){return(f instanceof Object)&&(this instanceof f)}},can:function(f){return this.prototype.can.call(this,f)},has:function(f){return this.prototype.has.call(this,f)},isa:function(g){var f=this;while(f){if(f===g){return true}else{f=f.SUPER}}return false},SimpleSUPER:c({constructor:function(f){return this.SimpleSUPER.define(f)},define:function(f){var h={};if(f!=null){for(var g in f){if(f.hasOwnProperty(g)){h[g]=this.wrap(g,f[g])}}if(f.toString!==this.prototype.toString&&f.toString!=={}.toString){h.toString=this.wrap("toString",f.toString)}}return h},wrap:function(i,h){if(typeof(h)!=="function"||!h.toString().match(/\.\s*SUPER\s*\(/)){return h}var g=function(){this.SUPER=g.SUPER[i];try{var f=h.apply(this,arguments)}catch(j){delete this.SUPER;throw j}delete this.SUPER;return f};g.toString=function(){return h.toString.apply(h,arguments)};return g}})})})("MathJax");(function(BASENAME){var BASE=window[BASENAME];if(!BASE){BASE=window[BASENAME]={}}var CALLBACK=function(data){var cb=function(){return arguments.callee.execute.apply(arguments.callee,arguments)};for(var id in CALLBACK.prototype){if(CALLBACK.prototype.hasOwnProperty(id)){if(typeof(data[id])!=="undefined"){cb[id]=data[id]}else{cb[id]=CALLBACK.prototype[id]}}}cb.toString=CALLBACK.prototype.toString;return cb};CALLBACK.prototype={isCallback:true,hook:function(){},data:[],object:window,execute:function(){if(!this.called||this.autoReset){this.called=!this.autoReset;return this.hook.apply(this.object,this.data.concat([].slice.call(arguments,0)))}},reset:function(){delete this.called},toString:function(){return this.hook.toString.apply(this.hook,arguments)}};var ISCALLBACK=function(f){return(typeof(f)==="function"&&f.isCallback)};var EVAL=function(code){return eval.call(window,code)};var TESTEVAL=function(){EVAL("var __TeSt_VaR__ = 1");if(window.__TeSt_VaR__){try{delete window.__TeSt_VaR__}catch(error){window.__TeSt_VaR__=null}}else{if(window.execScript){EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";window.execScript(code);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result}}else{EVAL=function(code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";var head=(document.getElementsByTagName("head"))[0];if(!head){head=document.body}var script=document.createElement("script");script.appendChild(document.createTextNode(code));head.appendChild(script);head.removeChild(script);var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result}}}TESTEVAL=null};var USING=function(args,i){if(arguments.length>1){if(arguments.length===2&&!(typeof arguments[0]==="function")&&arguments[0] instanceof Object&&typeof arguments[1]==="number"){args=[].slice.call(args,i)}else{args=[].slice.call(arguments,0)}}if(args instanceof Array&&args.length===1){args=args[0]}if(typeof args==="function"){if(args.execute===CALLBACK.prototype.execute){return args}return CALLBACK({hook:args})}else{if(args instanceof Array){if(typeof(args[0])==="string"&&args[1] instanceof Object&&typeof args[1][args[0]]==="function"){return CALLBACK({hook:args[1][args[0]],object:args[1],data:args.slice(2)})}else{if(typeof args[0]==="function"){return CALLBACK({hook:args[0],data:args.slice(1)})}else{if(typeof args[1]==="function"){return CALLBACK({hook:args[1],object:args[0],data:args.slice(2)})}}}}else{if(typeof(args)==="string"){if(TESTEVAL){TESTEVAL()}return CALLBACK({hook:EVAL,data:[args]})}else{if(args instanceof Object){return CALLBACK(args)}else{if(typeof(args)==="undefined"){return CALLBACK({})}}}}}throw Error("Can't make callback from given data")};var DELAY=function(time,callback){callback=USING(callback);callback.timeout=setTimeout(callback,time);return callback};var WAITFOR=function(callback,signal){callback=USING(callback);if(!callback.called){WAITSIGNAL(callback,signal);signal.pending++}};var WAITEXECUTE=function(){var signals=this.signal;delete this.signal;this.execute=this.oldExecute;delete this.oldExecute;var result=this.execute.apply(this,arguments);if(ISCALLBACK(result)&&!result.called){WAITSIGNAL(result,signals)}else{for(var i=0,m=signals.length;i0&&priority=0;i--){this.hooks.splice(i,1)}this.remove=[]}});var EXECUTEHOOKS=function(hooks,data,reset){if(!hooks){return null}if(!(hooks instanceof Array)){hooks=[hooks]}if(!(data instanceof Array)){data=(data==null?[]:[data])}var handler=HOOKS(reset);for(var i=0,m=hooks.length;ig){g=document.styleSheets.length}if(!i){i=document.head||((document.getElementsByTagName("head"))[0]);if(!i){i=document.body}}return i};var f=[];var c=function(){for(var k=0,j=f.length;k=this.timeout){i(this.STATUS.ERROR);return 1}return 0},file:function(j,i){if(i<0){a.Ajax.loadTimeout(j)}else{a.Ajax.loadComplete(j)}},execute:function(){this.hook.call(this.object,this,this.data[0],this.data[1])},checkSafari2:function(i,j,k){if(i.time(k)){return}if(document.styleSheets.length>j&&document.styleSheets[j].cssRules&&document.styleSheets[j].cssRules.length){k(i.STATUS.OK)}else{setTimeout(i,i.delay)}},checkLength:function(i,l,n){if(i.time(n)){return}var m=0;var j=(l.sheet||l.styleSheet);try{if((j.cssRules||j.rules||[]).length>0){m=1}}catch(k){if(k.message.match(/protected variable|restricted URI/)){m=1}else{if(k.message.match(/Security error/)){m=1}}}if(m){setTimeout(a.Callback([n,i.STATUS.OK]),0)}else{setTimeout(i,i.delay)}}},loadComplete:function(i){i=this.fileURL(i);var j=this.loading[i];if(j&&!j.preloaded){a.Message.Clear(j.message);clearTimeout(j.timeout);if(j.script){if(f.length===0){setTimeout(c,0)}f.push(j.script)}this.loaded[i]=j.status;delete this.loading[i];this.addHook(i,j.callback)}else{if(j){delete this.loading[i]}this.loaded[i]=this.STATUS.OK;j={status:this.STATUS.OK}}if(!this.loadHooks[i]){return null}return this.loadHooks[i].Execute(j.status)},loadTimeout:function(i){if(this.loading[i].timeout){clearTimeout(this.loading[i].timeout)}this.loading[i].status=this.STATUS.ERROR;this.loadError(i);this.loadComplete(i)},loadError:function(i){a.Message.Set(["LoadFailed","File failed to load: %1",i],null,2000);a.Hub.signal.Post(["file load error",i])},Styles:function(k,l){var i=this.StyleString(k);if(i===""){l=a.Callback(l);l()}else{var j=document.createElement("style");j.type="text/css";this.head=h(this.head);this.head.appendChild(j);if(j.styleSheet&&typeof(j.styleSheet.cssText)!=="undefined"){j.styleSheet.cssText=i}else{j.appendChild(document.createTextNode(i))}l=this.timer.create.call(this,l,j)}return l},StyleString:function(n){if(typeof(n)==="string"){return n}var k="",o,m;for(o in n){if(n.hasOwnProperty(o)){if(typeof n[o]==="string"){k+=o+" {"+n[o]+"}\n"}else{if(n[o] instanceof Array){for(var l=0;l="0"&&p<="9"){f[j]=o[f[j]-1];if(typeof f[j]==="number"){f[j]=this.number(f[j])}}else{if(p==="{"){p=f[j].substr(1);if(p>="0"&&p<="9"){f[j]=o[f[j].substr(1,f[j].length-2)-1];if(typeof f[j]==="number"){f[j]=this.number(f[j])}}else{var k=f[j].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);if(k){if(k[1]==="plural"){var d=o[k[2]-1];if(typeof d==="undefined"){f[j]="???"}else{d=this.plural(d)-1;var h=k[3].replace(/(^|[^%])(%%)*%\|/g,"$1$2%\uEFEF").split(/\|/);if(d>=0&&d=3){c.push([f[0],f[1],this.processSnippet(g,f[2])])}else{c.push(e[d])}}}}else{c.push(e[d])}}return c},markdownPattern:/(%.)|(\*{1,3})((?:%.|.)+?)\2|(`+)((?:%.|.)+?)\4|\[((?:%.|.)+?)\]\(([^\s\)]+)\)/,processMarkdown:function(b,h,d){var j=[],e;var c=b.split(this.markdownPattern);var g=c[0];for(var f=1,a=c.length;f1?d[1]:""));f=null}if(e&&(!b.preJax||d)){c.nodeValue=c.nodeValue.replace(b.postJax,(e.length>1?e[1]:""))}if(f&&!f.nodeValue.match(/\S/)){f=f.previousSibling}}if(b.preRemoveClass&&f&&f.className===b.preRemoveClass){a.MathJax.preview=f}a.MathJax.checked=1},processInput:function(a){var b,i=MathJax.ElementJax.STATE;var h,e,d=a.scripts.length;try{while(a.ithis.processUpdateTime&&a.i1){d.jax[a.outputJax].push(b)}b.MathJax.state=c.OUTPUT},prepareOutput:function(c,f){while(c.jthis.processUpdateTime&&h.i=0;p--){if((b[p].src||"").match(e)){r.script=b[p].innerHTML;if(RegExp.$2){var s=RegExp.$2.substr(1).split(/\&/);for(var o=0,k=s.length;o=parseInt(x[y])}}return true},Select:function(j){var i=j[c.Browser];if(i){return i(c.Browser)}return null}};var d=h.replace(/^Mozilla\/(\d+\.)+\d+ /,"").replace(/[a-z][-a-z0-9._: ]+\/\d+[^ ]*-[^ ]*\.([a-z][a-z])?\d+ /i,"").replace(/Gentoo |Ubuntu\/(\d+\.)*\d+ (\([^)]*\) )?/,"");c.Browser=c.Insert(c.Insert(new String("Unknown"),{version:"0.0"}),a);for(var u in a){if(a.hasOwnProperty(u)){if(a[u]&&u.substr(0,2)==="is"){u=u.slice(2);if(u==="Mac"||u==="PC"){continue}c.Browser=c.Insert(new String(u),a);var q=new RegExp(".*(Version/| Trident/.*; rv:)((?:\\d+\\.)+\\d+)|.*("+u+")"+(u=="MSIE"?" ":"/")+"((?:\\d+\\.)*\\d+)|(?:^|\\(| )([a-z][-a-z0-9._: ]+|(?:Apple)?WebKit)/((?:\\d+\\.)+\\d+)");var t=q.exec(d)||["","","","unknown","0.0"];c.Browser.name=(t[1]!=""?u:(t[3]||t[5]));c.Browser.version=t[2]||t[4]||t[6];break}}}c.Browser.Select({Safari:function(j){var i=parseInt((String(j.version).split("."))[0]);if(i>85){j.webkit=j.version}if(i>=538){j.version="8.0"}else{if(i>=537){j.version="7.0"}else{if(i>=536){j.version="6.0"}else{if(i>=534){j.version="5.1"}else{if(i>=533){j.version="5.0"}else{if(i>=526){j.version="4.0"}else{if(i>=525){j.version="3.1"}else{if(i>500){j.version="3.0"}else{if(i>400){j.version="2.0"}else{if(i>85){j.version="1.0"}}}}}}}}}}j.webkit=(navigator.appVersion.match(/WebKit\/(\d+)\./))[1];j.isMobile=(navigator.appVersion.match(/Mobile/i)!=null);j.noContextMenu=j.isMobile},Firefox:function(j){if((j.version==="0.0"||h.match(/Firefox/)==null)&&navigator.product==="Gecko"){var m=h.match(/[\/ ]rv:(\d+\.\d.*?)[\) ]/);if(m){j.version=m[1]}else{var i=(navigator.buildID||navigator.productSub||"0").substr(0,8);if(i>="20111220"){j.version="9.0"}else{if(i>="20111120"){j.version="8.0"}else{if(i>="20110927"){j.version="7.0"}else{if(i>="20110816"){j.version="6.0"}else{if(i>="20110621"){j.version="5.0"}else{if(i>="20110320"){j.version="4.0"}else{if(i>="20100121"){j.version="3.6"}else{if(i>="20090630"){j.version="3.5"}else{if(i>="20080617"){j.version="3.0"}else{if(i>="20061024"){j.version="2.0"}}}}}}}}}}}}j.isMobile=(navigator.appVersion.match(/Android/i)!=null||h.match(/ Fennec\//)!=null||h.match(/Mobile/)!=null)},Opera:function(i){i.version=opera.version()},MSIE:function(j){j.isIE9=!!(document.documentMode&&(window.performance||window.msPerformance));MathJax.HTML.setScriptBug=!j.isIE9||document.documentMode<9;MathJax.Hub.msieHTMLCollectionBug=(document.documentMode<9);if(document.documentMode<10&&!r.params.NoMathPlayer){try{new ActiveXObject("MathPlayer.Factory.1");j.hasMathPlayer=true}catch(m){}try{if(j.hasMathPlayer){var i=document.createElement("object");i.id="mathplayer";i.classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987";f.appendChild(i);document.namespaces.add("m","http://www.w3.org/1998/Math/MathML");j.mpNamespace=true;if(document.readyState&&(document.readyState==="loading"||document.readyState==="interactive")){document.write('');j.mpImported=true}}else{document.namespaces.add("mjx_IE_fix","http://www.w3.org/1999/xlink")}}catch(m){}}}});c.Browser.Select(MathJax.Message.browsers);if(g.AuthorConfig&&typeof g.AuthorConfig.AuthorInit==="function"){g.AuthorConfig.AuthorInit()}c.queue=g.Callback.Queue();c.queue.Push(["Post",r.signal,"Begin"],["Config",r],["Cookie",r],["Styles",r],["Message",r],function(){var i=g.Callback.Queue(r.Jax(),r.Extensions());return i.Push({})},["Menu",r],r.onLoad(),function(){MathJax.isReady=true},["Typeset",r],["Hash",r],["MenuZoom",r],["Post",r.signal,"End"])})("MathJax")}}; diff -r 000000000000 -r c47a5f61bc9f Roary/contrib/roary_plots/roary_files/jquery.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Roary/contrib/roary_plots/roary_files/jquery.min.js Fri May 14 20:27:06 2021 +0000 @@ -0,0 +1,6 @@ +/*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license +//@ sourceMappingURL=jquery.min.map +*/ +(function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],p="2.0.3",f=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,x=function(e,n){return new x.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,N=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},S=function(){o.removeEventListener("DOMContentLoaded",S,!1),e.removeEventListener("load",S,!1),x.ready()};x.fn=x.prototype={jquery:p,constructor:x,init:function(e,t,n){var r,i;if(!e)return this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),C.test(r[1])&&x.isPlainObject(t))for(r in t)x.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=o.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?n.ready(e):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return d.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},a=2),"object"==typeof s||x.isFunction(s)||(s={}),u===a&&(s=this,--a);u>a;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(l&&r&&(x.isPlainObject(r)||(i=x.isArray(r)))?(i?(i=!1,o=n&&x.isArray(n)?n:[]):o=n&&x.isPlainObject(n)?n:{},s[t]=x.extend(l,o,r)):r!==undefined&&(s[t]=r));return s},x.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=a),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){(e===!0?--x.readyWait:x.isReady)||(x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(o,[x]),x.fn.trigger&&x(o).trigger("ready").off("ready")))},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=undefined}return(!t||t.getElementsByTagName("parsererror").length)&&x.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){var t,n=eval;e=x.trim(e),e&&(1===e.indexOf("use strict")?(t=o.createElement("script"),t.text=e,o.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(k,"ms-").replace(N,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,s=j(e);if(n){if(s){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(s){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?"":v.call(e)},makeArray:function(e,t){var n=t||[];return null!=e&&(j(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:g.call(t,e,n)},merge:function(e,t){var n=t.length,r=e.length,i=0;if("number"==typeof n)for(;n>i;i++)e[r++]=t[i];else while(t[i]!==undefined)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){var r,i=[],o=0,s=e.length;for(n=!!n;s>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,s=j(e),a=[];if(s)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(a[a.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(a[a.length]=r);return f.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),x.isFunction(e)?(r=d.call(arguments,2),i=function(){return e.apply(t||this,r.concat(d.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):undefined},access:function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===x.type(n)){i=!0;for(a in n)x.access(e,t,a,n[a],!0,o,s)}else if(r!==undefined&&(i=!0,x.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(x(e),n)})),t))for(;u>a;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},now:Date.now,swap:function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i}}),x.ready.promise=function(t){return n||(n=x.Deferred(),"complete"===o.readyState?setTimeout(x.ready):(o.addEventListener("DOMContentLoaded",S,!1),e.addEventListener("load",S,!1))),n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function j(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}t=x(o),function(e,undefined){var t,n,r,i,o,s,a,u,l,c,p,f,h,d,g,m,y,v="sizzle"+-new Date,b=e.document,w=0,T=0,C=st(),k=st(),N=st(),E=!1,S=function(e,t){return e===t?(E=!0,0):0},j=typeof undefined,D=1<<31,A={}.hasOwnProperty,L=[],q=L.pop,H=L.push,O=L.push,F=L.slice,P=L.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",W="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",$=W.replace("w","w#"),B="\\["+M+"*("+W+")"+M+"*(?:([*^$|!~]?=)"+M+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+$+")|)|)"+M+"*\\]",I=":("+W+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+B.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=RegExp("^"+M+"*,"+M+"*"),X=RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=RegExp(M+"*[+~]"),Y=RegExp("="+M+"*([^\\]'\"]*)"+M+"*\\]","g"),V=RegExp(I),G=RegExp("^"+$+"$"),J={ID:RegExp("^#("+W+")"),CLASS:RegExp("^\\.("+W+")"),TAG:RegExp("^("+W.replace("w","w*")+")"),ATTR:RegExp("^"+B),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:RegExp("^(?:"+R+")$","i"),needsContext:RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/^(?:input|select|textarea|button)$/i,et=/^h\d$/i,tt=/'|\\/g,nt=RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),rt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{O.apply(L=F.call(b.childNodes),b.childNodes),L[b.childNodes.length].nodeType}catch(it){O={apply:L.length?function(e,t){H.apply(e,F.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function ot(e,t,r,i){var o,s,a,u,l,f,g,m,x,w;if((t?t.ownerDocument||t:b)!==p&&c(t),t=t||p,r=r||[],!e||"string"!=typeof e)return r;if(1!==(u=t.nodeType)&&9!==u)return[];if(h&&!i){if(o=K.exec(e))if(a=o[1]){if(9===u){if(s=t.getElementById(a),!s||!s.parentNode)return r;if(s.id===a)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(a))&&y(t,s)&&s.id===a)return r.push(s),r}else{if(o[2])return O.apply(r,t.getElementsByTagName(e)),r;if((a=o[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&(!d||!d.test(e))){if(m=g=v,x=t,w=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){f=gt(e),(g=t.getAttribute("id"))?m=g.replace(tt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",l=f.length;while(l--)f[l]=m+mt(f[l]);x=U.test(e)&&t.parentNode||t,w=f.join(",")}if(w)try{return O.apply(r,x.querySelectorAll(w)),r}catch(T){}finally{g||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,r,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>i.cacheLength&&delete t[e.shift()],t[n]=r}return t}function at(e){return e[v]=!0,e}function ut(e){var t=p.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function lt(e,t){var n=e.split("|"),r=e.length;while(r--)i.attrHandle[n[r]]=t}function ct(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return at(function(t){return t=+t,at(function(n,r){var i,o=e([],n.length,t),s=o.length;while(s--)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}s=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},n=ot.support={},c=ot.setDocument=function(e){var t=e?e.ownerDocument||e:b,r=t.defaultView;return t!==p&&9===t.nodeType&&t.documentElement?(p=t,f=t.documentElement,h=!s(t),r&&r.attachEvent&&r!==r.top&&r.attachEvent("onbeforeunload",function(){c()}),n.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ut(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=ut(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),n.getById=ut(function(e){return f.appendChild(e).id=v,!t.getElementsByName||!t.getElementsByName(v).length}),n.getById?(i.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==j?t.getElementsByTagName(e):undefined}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==j&&h?t.getElementsByClassName(e):undefined},g=[],d=[],(n.qsa=Q.test(t.querySelectorAll))&&(ut(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll(":checked").length||d.push(":checked")}),ut(function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&d.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||d.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),d.push(",.*:")})),(n.matchesSelector=Q.test(m=f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut(function(e){n.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",I)}),d=d.length&&RegExp(d.join("|")),g=g.length&&RegExp(g.join("|")),y=Q.test(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},S=f.compareDocumentPosition?function(e,r){if(e===r)return E=!0,0;var i=r.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(r);return i?1&i||!n.sortDetached&&r.compareDocumentPosition(e)===i?e===t||y(b,e)?-1:r===t||y(b,r)?1:l?P.call(l,e)-P.call(l,r):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,o=e.parentNode,s=n.parentNode,a=[e],u=[n];if(e===n)return E=!0,0;if(!o||!s)return e===t?-1:n===t?1:o?-1:s?1:l?P.call(l,e)-P.call(l,n):0;if(o===s)return ct(e,n);r=e;while(r=r.parentNode)a.unshift(r);r=n;while(r=r.parentNode)u.unshift(r);while(a[i]===u[i])i++;return i?ct(a[i],u[i]):a[i]===b?-1:u[i]===b?1:0},t):p},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Y,"='$1']"),!(!n.matchesSelector||!h||g&&g.test(t)||d&&d.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return ot(t,p,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},ot.attr=function(e,t){(e.ownerDocument||e)!==p&&c(e);var r=i.attrHandle[t.toLowerCase()],o=r&&A.call(i.attrHandle,t.toLowerCase())?r(e,t,!h):undefined;return o===undefined?n.attributes||!h?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null:o},ot.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,r=[],i=0,o=0;if(E=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(S),E){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return e},o=ot.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=ot.selectors={cacheLength:50,createPseudo:at,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(nt,rt),e[3]=(e[4]||e[5]||"").replace(nt,rt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ot.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ot.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return J.CHILD.test(e[0])?null:(e[3]&&e[4]!==undefined?e[2]=e[4]:n&&V.test(n)&&(t=gt(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(nt,rt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,h,d,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,y=a&&t.nodeName.toLowerCase(),x=!u&&!a;if(m){if(o){while(g){p=t;while(p=p[g])if(a?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&x){c=m[v]||(m[v]={}),l=c[e]||[],h=l[0]===w&&l[1],f=l[0]===w&&l[2],p=h&&m.childNodes[h];while(p=++h&&p&&p[g]||(f=h=0)||d.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[w,h,f];break}}else if(x&&(l=(t[v]||(t[v]={}))[e])&&l[0]===w)f=l[1];else while(p=++h&&p&&p[g]||(f=h=0)||d.pop())if((a?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(x&&((p[v]||(p[v]={}))[e]=[w,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return r[v]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var i,o=r(e,t),s=o.length;while(s--)i=P.call(e,o[s]),e[i]=!(n[i]=o[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:at(function(e){var t=[],n=[],r=a(e.replace(z,"$1"));return r[v]?at(function(e,t,n,i){var o,s=r(e,null,i,[]),a=e.length;while(a--)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:at(function(e){return G.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(nt,rt).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return et.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},i.pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pt(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=ft(t);function dt(){}dt.prototype=i.filters=i.pseudos,i.setFilters=new dt;function gt(e,t){var n,r,o,s,a,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);a=e,u=[],l=i.preFilter;while(a){(!n||(r=_.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=X.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(z," ")}),a=a.slice(n.length));for(s in i.filter)!(r=J[s].exec(a))||l[s]&&!(r=l[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ot.error(e):k(e,u).slice(0)}function mt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function yt(e,t,n){var i=t.dir,o=n&&"parentNode"===i,s=T++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,a){var u,l,c,p=w+" "+s;if(a){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,a))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[v]||(t[v]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,a)||r,l[1]===!0)return!0}}function vt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,s=[],a=0,u=e.length,l=null!=t;for(;u>a;a++)(o=e[a])&&(!n||n(o,r,i))&&(s.push(o),l&&t.push(a));return s}function bt(e,t,n,r,i,o){return r&&!r[v]&&(r=bt(r)),i&&!i[v]&&(i=bt(i,o)),at(function(o,s,a,u){var l,c,p,f=[],h=[],d=s.length,g=o||Ct(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:xt(g,f,e,a,u),y=n?i||(o?e:d||r)?[]:s:m;if(n&&n(m,y,a,u),r){l=xt(y,h),r(l,[],a,u),c=l.length;while(c--)(p=l[c])&&(y[h[c]]=!(m[h[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?P.call(o,p):f[c])>-1&&(o[l]=!(s[l]=p))}}else y=xt(y===s?y.splice(d,y.length):y),i?i(null,s,y,u):O.apply(s,y)})}function wt(e){var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=yt(function(e){return e===t},a,!0),p=yt(function(e){return P.call(t,e)>-1},a,!0),f=[function(e,n,r){return!s&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>l;l++)if(n=i.relative[e[l].type])f=[yt(vt(f),n)];else{if(n=i.filter[e[l].type].apply(null,e[l].matches),n[v]){for(r=++l;o>r;r++)if(i.relative[e[r].type])break;return bt(l>1&&vt(f),l>1&&mt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&wt(e.slice(l,r)),o>r&&wt(e=e.slice(r)),o>r&&mt(e))}f.push(n)}return vt(f)}function Tt(e,t){var n=0,o=t.length>0,s=e.length>0,a=function(a,l,c,f,h){var d,g,m,y=[],v=0,x="0",b=a&&[],T=null!=h,C=u,k=a||s&&i.find.TAG("*",h&&l.parentNode||l),N=w+=null==C?1:Math.random()||.1;for(T&&(u=l!==p&&l,r=n);null!=(d=k[x]);x++){if(s&&d){g=0;while(m=e[g++])if(m(d,l,c)){f.push(d);break}T&&(w=N,r=++n)}o&&((d=!m&&d)&&v--,a&&b.push(d))}if(v+=x,o&&x!==v){g=0;while(m=t[g++])m(b,y,l,c);if(a){if(v>0)while(x--)b[x]||y[x]||(y[x]=q.call(f));y=xt(y)}O.apply(f,y),T&&!a&&y.length>0&&v+t.length>1&&ot.uniqueSort(f)}return T&&(w=N,u=C),b};return o?at(a):a}a=ot.compile=function(e,t){var n,r=[],i=[],o=N[e+" "];if(!o){t||(t=gt(e)),n=t.length;while(n--)o=wt(t[n]),o[v]?r.push(o):i.push(o);o=N(e,Tt(i,r))}return o};function Ct(e,t,n){var r=0,i=t.length;for(;i>r;r++)ot(e,t[r],n);return n}function kt(e,t,r,o){var s,u,l,c,p,f=gt(e);if(!o&&1===f.length){if(u=f[0]=f[0].slice(0),u.length>2&&"ID"===(l=u[0]).type&&n.getById&&9===t.nodeType&&h&&i.relative[u[1].type]){if(t=(i.find.ID(l.matches[0].replace(nt,rt),t)||[])[0],!t)return r;e=e.slice(u.shift().value.length)}s=J.needsContext.test(e)?0:u.length;while(s--){if(l=u[s],i.relative[c=l.type])break;if((p=i.find[c])&&(o=p(l.matches[0].replace(nt,rt),U.test(u[0].type)&&t.parentNode||t))){if(u.splice(s,1),e=o.length&&mt(u),!e)return O.apply(r,o),r;break}}}return a(e,f)(o,t,!h,r,U.test(e)),r}n.sortStable=v.split("").sort(S).join("")===v,n.detectDuplicates=E,c(),n.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),ut(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||lt("type|href|height|width",function(e,t,n){return n?undefined:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||lt("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?undefined:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||lt(R,function(e,t,n){var r;return n?undefined:(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}),x.find=ot,x.expr=ot.selectors,x.expr[":"]=x.expr.pseudos,x.unique=ot.uniqueSort,x.text=ot.getText,x.isXMLDoc=ot.isXML,x.contains=ot.contains}(e);var D={};function A(e){var t=D[e]={};return x.each(e.match(w)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?D[e]||A(e):x.extend({},e);var t,n,r,i,o,s,a=[],u=!e.once&&[],l=function(p){for(t=e.memory&&p,n=!0,s=i||0,i=0,o=a.length,r=!0;a&&o>s;s++)if(a[s].apply(p[0],p[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,a&&(u?u.length&&l(u.shift()):t?a=[]:c.disable())},c={add:function(){if(a){var n=a.length;(function s(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==r&&s(n)})})(arguments),r?o=a.length:t&&(i=n,l(t))}return this},remove:function(){return a&&x.each(arguments,function(e,t){var n;while((n=x.inArray(t,a,n))>-1)a.splice(n,1),r&&(o>=n&&o--,s>=n&&s--)}),this},has:function(e){return e?x.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],o=0,this},disable:function(){return a=u=t=undefined,this},disabled:function(){return!a},lock:function(){return u=undefined,t||c.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!a||n&&!u||(t=t||[],t=[e,t.slice?t.slice():t],r?u.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var s=o[0],a=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=d.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),s=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?d.call(arguments):r,n===a?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},a,u,l;if(r>1)for(a=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(s(t,l,n)).fail(o.reject).progress(s(t,u,a)):--i;return i||o.resolveWith(l,n),o.promise()}}),x.support=function(t){var n=o.createElement("input"),r=o.createDocumentFragment(),i=o.createElement("div"),s=o.createElement("select"),a=s.appendChild(o.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!a.disabled,n=o.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,x(function(){var n,r,s="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",a=o.getElementsByTagName("body")[0];a&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",x.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(o.createElement("div")),r.style.cssText=i.style.cssText=s,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),a.removeChild(n))}),t):t}({});var L,q,H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,O=/([A-Z])/g;function F(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=x.expando+Math.random()}F.uid=1,F.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},F.prototype={key:function(e){if(!F.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=F.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,x.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(x.isEmptyObject(o))x.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,t){var n=this.cache[this.key(e)];return t===undefined?n:n[t]},access:function(e,t,n){var r;return t===undefined||t&&"string"==typeof t&&n===undefined?(r=this.get(e,t),r!==undefined?r:this.get(e,x.camelCase(t))):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r,i,o=this.key(e),s=this.cache[o];if(t===undefined)this.cache[o]={};else{x.isArray(t)?r=t.concat(t.map(x.camelCase)):(i=x.camelCase(t),t in s?r=[t,i]:(r=i,r=r in s?[r]:r.match(w)||[])),n=r.length;while(n--)delete s[r[n]]}},hasData:function(e){return!x.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},L=new F,q=new F,x.extend({acceptData:F.accepts,hasData:function(e){return L.hasData(e)||q.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return q.access(e,t,n)},_removeData:function(e,t){q.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i=this[0],o=0,s=null;if(e===undefined){if(this.length&&(s=L.get(i),1===i.nodeType&&!q.get(i,"hasDataAttrs"))){for(n=i.attributes;n.length>o;o++)r=n[o].name,0===r.indexOf("data-")&&(r=x.camelCase(r.slice(5)),P(i,r,s[r]));q.set(i,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){L.set(this,e)}):x.access(this,function(t){var n,r=x.camelCase(e);if(i&&t===undefined){if(n=L.get(i,e),n!==undefined)return n;if(n=L.get(i,r),n!==undefined)return n;if(n=P(i,r,undefined),n!==undefined)return n}else this.each(function(){var n=L.get(this,r);L.set(this,r,t),-1!==e.indexOf("-")&&n!==undefined&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}});function P(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(O,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:H.test(n)?JSON.parse(n):n}catch(i){}L.set(e,t,n)}else n=undefined;return n}x.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=q.get(e,t),n&&(!r||x.isArray(n)?r=q.access(e,t,x.makeArray(n)):r.push(n)),r||[]):undefined},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),s=function(){x.dequeue(e,t) +};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return q.get(e,n)||q.access(e,n,{empty:x.Callbacks("once memory").add(function(){q.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),n>arguments.length?x.queue(this[0],e):t===undefined?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=undefined),e=e||"fx";while(s--)n=q.get(o[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var R,M,W=/[\t\r\n\f]/g,$=/\r/g,B=/^(?:input|select|textarea|button)$/i;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})},addClass:function(e){var t,n,r,i,o,s=0,a=this.length,u="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,s=0,a=this.length,u=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,i=0,o=x(this),s=e.match(w)||[];while(t=s[i++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===r||"boolean"===n)&&(this.className&&q.set(this,"__className__",this.className),this.className=this.className||e===!1?"":q.get(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(W," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=x.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,x(this).val()):e,null==i?i="":"number"==typeof i?i+="":x.isArray(i)&&(i=x.map(i,function(e){return null==e?"":e+""})),t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,i,"value")!==undefined||(this.value=i))});if(i)return t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,"string"==typeof n?n.replace($,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,s=o?null:[],a=o?i+1:r.length,u=0>i?a:o?i:0;for(;a>u;u++)if(n=r[u],!(!n.selected&&u!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),s=i.length;while(s--)r=i[s],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,t,n){var i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===r?x.prop(e,t,n):(1===s&&x.isXMLDoc(e)||(t=t.toLowerCase(),i=x.attrHooks[t]||(x.expr.match.bool.test(t)?M:R)),n===undefined?i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=x.find.attr(e,t),null==o?undefined:o):null!==n?i&&"set"in i&&(o=i.set(e,n,t))!==undefined?o:(e.setAttribute(t,n+""),n):(x.removeAttr(e,t),undefined))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return o=1!==s||!x.isXMLDoc(e),o&&(t=x.propFix[t]||t,i=x.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||B.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),M={set:function(e,t,n){return t===!1?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=x.expr.attrHandle[t]||x.find.attr;x.expr.attrHandle[t]=function(e,t,r){var i=x.expr.attrHandle[t],o=r?undefined:(x.expr.attrHandle[t]=undefined)!=n(e,t,r)?t.toLowerCase():null;return x.expr.attrHandle[t]=i,o}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=x.inArray(x(e).val(),t)>=0:undefined}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var I=/^key/,z=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function U(){return!0}function Y(){return!1}function V(){try{return o.activeElement}catch(e){}}x.event={global:{},add:function(e,t,n,i,o){var s,a,u,l,c,p,f,h,d,g,m,y=q.get(e);if(y){n.handler&&(s=n,n=s.handler,o=s.selector),n.guid||(n.guid=x.guid++),(l=y.events)||(l=y.events={}),(a=y.handle)||(a=y.handle=function(e){return typeof x===r||e&&x.event.triggered===e.type?undefined:x.event.dispatch.apply(a.elem,arguments)},a.elem=e),t=(t||"").match(w)||[""],c=t.length;while(c--)u=X.exec(t[c])||[],d=m=u[1],g=(u[2]||"").split(".").sort(),d&&(f=x.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=x.event.special[d]||{},p=x.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:g.join(".")},s),(h=l[d])||(h=l[d]=[],h.delegateCount=0,f.setup&&f.setup.call(e,i,g,a)!==!1||e.addEventListener&&e.addEventListener(d,a,!1)),f.add&&(f.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,p):h.push(p),x.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,s,a,u,l,c,p,f,h,d,g,m=q.hasData(e)&&q.get(e);if(m&&(u=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(a=X.exec(t[l])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h){p=x.event.special[h]||{},h=(r?p.delegateType:p.bindType)||h,f=u[h]||[],a=a[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;while(o--)c=f[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,p.remove&&p.remove.call(e,c));s&&!f.length&&(p.teardown&&p.teardown.call(e,d,m.handle)!==!1||x.removeEvent(e,h,m.handle),delete u[h])}else for(h in u)x.event.remove(e,h+t[l],n,r,!0);x.isEmptyObject(u)&&(delete m.handle,q.remove(e,"events"))}},trigger:function(t,n,r,i){var s,a,u,l,c,p,f,h=[r||o],d=y.call(t,"type")?t.type:t,g=y.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!_.test(d+x.event.triggered)&&(d.indexOf(".")>=0&&(g=d.split("."),d=g.shift(),g.sort()),c=0>d.indexOf(":")&&"on"+d,t=t[x.expando]?t:new x.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.namespace_re=t.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:x.makeArray(n,[t]),f=x.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!x.isWindow(r)){for(l=f.delegateType||d,_.test(l+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||o)&&h.push(u.defaultView||u.parentWindow||e)}s=0;while((a=h[s++])&&!t.isPropagationStopped())t.type=s>1?l:f.bindType||d,p=(q.get(a,"events")||{})[t.type]&&q.get(a,"handle"),p&&p.apply(a,n),p=c&&a[c],p&&x.acceptData(a)&&p.apply&&p.apply(a,n)===!1&&t.preventDefault();return t.type=d,i||t.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!x.acceptData(r)||c&&x.isFunction(r[d])&&!x.isWindow(r)&&(u=r[c],u&&(r[c]=null),x.event.triggered=d,r[d](),x.event.triggered=undefined,u&&(r[c]=u)),t.result}},dispatch:function(e){e=x.event.fix(e);var t,n,r,i,o,s=[],a=d.call(arguments),u=(q.get(this,"events")||{})[e.type]||[],l=x.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),t=0;while((i=s[t++])&&!e.isPropagationStopped()){e.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),r!==undefined&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(r=[],n=0;a>n;n++)o=t[n],i=o.selector+" ",r[i]===undefined&&(r[i]=o.needsContext?x(i,this).index(u)>=0:x.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return t.length>a&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||o,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||s===undefined||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,s=e,a=this.fixHooks[i];a||(this.fixHooks[i]=a=z.test(i)?this.mouseHooks:I.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new x.Event(s),t=r.length;while(t--)n=r[t],e[n]=s[n];return e.target||(e.target=o),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==V()&&this.focus?(this.focus(),!1):undefined},delegateType:"focusin"},blur:{trigger:function(){return this===V()&&this.blur?(this.blur(),!1):undefined},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&x.nodeName(this,"input")?(this.click(),!1):undefined},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?U:Y):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,undefined):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=U,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=U,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,t,n,r,i){var o,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=undefined);for(s in e)this.on(s,t,n,e[s],i);return this}if(null==n&&null==r?(r=t,n=t=undefined):null==r&&("string"==typeof t?(r=n,n=undefined):(r=n,n=t,t=undefined)),r===!1)r=Y;else if(!r)return this;return 1===i&&(o=r,r=function(e){return x().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=x.guid++)),this.each(function(){x.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=undefined),n===!1&&(n=Y),this.each(function(){x.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):undefined}});var G=/^.[^:#\[\.,]*$/,J=/^(?:parents|prev(?:Until|All))/,Q=x.expr.match.needsContext,K={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){var e=0;for(;n>e;e++)if(x.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(et(this,e||[],!0))},filter:function(e){return this.pushStack(et(this,e||[],!1))},is:function(e){return!!et(this,"string"==typeof e&&Q.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],s=Q.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?g.call(x(e),this[0]):g.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function Z(e,t){while((e=e[t])&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return e.contentDocument||x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(K[e]||x.unique(i),J.test(e)&&i.reverse()),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function et(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(G.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return g.call(t,e)>=0!==n})}var tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,nt=/<([\w:]+)/,rt=/<|&#?\w+;/,it=/<(?:script|style|link)/i,ot=/^(?:checkbox|radio)$/i,st=/checked\s*(?:[^=]|=\s*.checked.)/i,at=/^$|\/(?:java|ecma)script/i,ut=/^true\/(.*)/,lt=/^\s*\s*$/g,ct={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ct.optgroup=ct.option,ct.tbody=ct.tfoot=ct.colgroup=ct.caption=ct.thead,ct.th=ct.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===undefined?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(mt(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&dt(mt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(mt(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!it.test(e)&&!ct[(nt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(tt,"<$1>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(x.cleanData(mt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=f.apply([],e);var r,i,o,s,a,u,l=0,c=this.length,p=this,h=c-1,d=e[0],g=x.isFunction(d);if(g||!(1>=c||"string"!=typeof d||x.support.checkClone)&&st.test(d))return this.each(function(r){var i=p.eq(r);g&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(r=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=x.map(mt(r,"script"),ft),s=o.length;c>l;l++)a=r,l!==h&&(a=x.clone(a,!0,!0),s&&x.merge(o,mt(a,"script"))),t.call(this[l],a,l);if(s)for(u=o[o.length-1].ownerDocument,x.map(o,ht),l=0;s>l;l++)a=o[l],at.test(a.type||"")&&!q.access(a,"globalEval")&&x.contains(u,a)&&(a.src?x._evalUrl(a.src):x.globalEval(a.textContent.replace(lt,"")))}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=[],i=x(e),o=i.length-1,s=0;for(;o>=s;s++)n=s===o?this:this.clone(!0),x(i[s])[t](n),h.apply(r,n.get());return this.pushStack(r)}}),x.extend({clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=x.contains(e.ownerDocument,e);if(!(x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=mt(a),o=mt(e),r=0,i=o.length;i>r;r++)yt(o[r],s[r]);if(t)if(n)for(o=o||mt(e),s=s||mt(a),r=0,i=o.length;i>r;r++)gt(o[r],s[r]);else gt(e,a);return s=mt(a,"script"),s.length>0&&dt(s,!u&&mt(e,"script")),a},buildFragment:function(e,t,n,r){var i,o,s,a,u,l,c=0,p=e.length,f=t.createDocumentFragment(),h=[];for(;p>c;c++)if(i=e[c],i||0===i)if("object"===x.type(i))x.merge(h,i.nodeType?[i]:i);else if(rt.test(i)){o=o||f.appendChild(t.createElement("div")),s=(nt.exec(i)||["",""])[1].toLowerCase(),a=ct[s]||ct._default,o.innerHTML=a[1]+i.replace(tt,"<$1>")+a[2],l=a[0];while(l--)o=o.lastChild;x.merge(h,o.childNodes),o=f.firstChild,o.textContent=""}else h.push(t.createTextNode(i));f.textContent="",c=0;while(i=h[c++])if((!r||-1===x.inArray(i,r))&&(u=x.contains(i.ownerDocument,i),o=mt(f.appendChild(i),"script"),u&&dt(o),n)){l=0;while(i=o[l++])at.test(i.type||"")&&n.push(i)}return f},cleanData:function(e){var t,n,r,i,o,s,a=x.event.special,u=0;for(;(n=e[u])!==undefined;u++){if(F.accepts(n)&&(o=n[q.expando],o&&(t=q.cache[o]))){if(r=Object.keys(t.events||{}),r.length)for(s=0;(i=r[s])!==undefined;s++)a[i]?x.event.remove(n,i):x.removeEvent(n,i,t.handle);q.cache[o]&&delete q.cache[o]}delete L.cache[n[L.expando]]}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}});function pt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ft(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ht(e){var t=ut.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function dt(e,t){var n=e.length,r=0;for(;n>r;r++)q.set(e[r],"globalEval",!t||q.get(t[r],"globalEval"))}function gt(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(q.hasData(e)&&(o=q.access(e),s=q.set(t,o),l=o.events)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)x.event.add(t,i,l[i][n])}L.hasData(e)&&(a=L.access(e),u=x.extend({},a),L.set(t,u))}}function mt(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return t===undefined||t&&x.nodeName(e,t)?x.merge([e],n):n}function yt(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ot.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}x.fn.extend({wrapAll:function(e){var t;return x.isFunction(e)?this.each(function(t){x(this).wrapAll(e.call(this,t))}):(this[0]&&(t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var vt,xt,bt=/^(none|table(?!-c[ea]).+)/,wt=/^margin/,Tt=RegExp("^("+b+")(.*)$","i"),Ct=RegExp("^("+b+")(?!px)[a-z%]+$","i"),kt=RegExp("^([+-])=("+b+")","i"),Nt={BODY:"block"},Et={position:"absolute",visibility:"hidden",display:"block"},St={letterSpacing:0,fontWeight:400},jt=["Top","Right","Bottom","Left"],Dt=["Webkit","O","Moz","ms"];function At(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Dt.length;while(i--)if(t=Dt[i]+n,t in e)return t;return r}function Lt(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function qt(t){return e.getComputedStyle(t,null)}function Ht(e,t){var n,r,i,o=[],s=0,a=e.length;for(;a>s;s++)r=e[s],r.style&&(o[s]=q.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Lt(r)&&(o[s]=q.access(r,"olddisplay",Rt(r.nodeName)))):o[s]||(i=Lt(r),(n&&"none"!==n||!i)&&q.set(r,"olddisplay",i?n:x.css(r,"display"))));for(s=0;a>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}x.fn.extend({css:function(e,t){return x.access(this,function(e,t,n){var r,i,o={},s=0;if(x.isArray(t)){for(r=qt(e),i=t.length;i>s;s++)o[t[s]]=x.css(e,t[s],!1,r);return o}return n!==undefined?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)},show:function(){return Ht(this,!0)},hide:function(){return Ht(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Lt(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=vt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=x.camelCase(t),u=e.style;return t=x.cssProps[a]||(x.cssProps[a]=At(u,a)),s=x.cssHooks[t]||x.cssHooks[a],n===undefined?s&&"get"in s&&(i=s.get(e,!1,r))!==undefined?i:u[t]:(o=typeof n,"string"===o&&(i=kt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(x.css(e,t)),o="number"),null==n||"number"===o&&isNaN(n)||("number"!==o||x.cssNumber[a]||(n+="px"),x.support.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,r))===undefined||(u[t]=n)),undefined)}},css:function(e,t,n,r){var i,o,s,a=x.camelCase(t);return t=x.cssProps[a]||(x.cssProps[a]=At(e.style,a)),s=x.cssHooks[t]||x.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),i===undefined&&(i=vt(e,t,r)),"normal"===i&&t in St&&(i=St[t]),""===n||n?(o=parseFloat(i),n===!0||x.isNumeric(o)?o||0:i):i}}),vt=function(e,t,n){var r,i,o,s=n||qt(e),a=s?s.getPropertyValue(t)||s[t]:undefined,u=e.style;return s&&(""!==a||x.contains(e.ownerDocument,e)||(a=x.style(e,t)),Ct.test(a)&&wt.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=s.width,u.width=r,u.minWidth=i,u.maxWidth=o)),a};function Ot(e,t,n){var r=Tt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Ft(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;for(;4>o;o+=2)"margin"===n&&(s+=x.css(e,n+jt[o],!0,i)),r?("content"===n&&(s-=x.css(e,"padding"+jt[o],!0,i)),"margin"!==n&&(s-=x.css(e,"border"+jt[o]+"Width",!0,i))):(s+=x.css(e,"padding"+jt[o],!0,i),"padding"!==n&&(s+=x.css(e,"border"+jt[o]+"Width",!0,i)));return s}function Pt(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=qt(e),s=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=vt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Ct.test(i))return i;r=s&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+Ft(e,t,n||(s?"border":"content"),r,o)+"px"}function Rt(e){var t=o,n=Nt[e];return n||(n=Mt(e,t),"none"!==n&&n||(xt=(xt||x("