diff --git a/docs/_build/doctrees/content/advanced-usage.doctree b/docs/_build/doctrees/content/advanced-usage.doctree deleted file mode 100644 index bdac8ae70..000000000 Binary files a/docs/_build/doctrees/content/advanced-usage.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/annotateBed.doctree b/docs/_build/doctrees/content/annotateBed.doctree deleted file mode 100644 index 97b0fc521..000000000 Binary files a/docs/_build/doctrees/content/annotateBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/bamToBed.doctree b/docs/_build/doctrees/content/bamToBed.doctree deleted file mode 100644 index ee5d9153b..000000000 Binary files a/docs/_build/doctrees/content/bamToBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/bed12ToBed6.doctree b/docs/_build/doctrees/content/bed12ToBed6.doctree deleted file mode 100644 index 1ef4dbb0e..000000000 Binary files a/docs/_build/doctrees/content/bed12ToBed6.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/bedToBam.doctree b/docs/_build/doctrees/content/bedToBam.doctree deleted file mode 100644 index 49d598988..000000000 Binary files a/docs/_build/doctrees/content/bedToBam.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/bedToIgv.doctree b/docs/_build/doctrees/content/bedToIgv.doctree deleted file mode 100644 index c890c43af..000000000 Binary files a/docs/_build/doctrees/content/bedToIgv.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/bedtools-suite.doctree b/docs/_build/doctrees/content/bedtools-suite.doctree deleted file mode 100644 index e0948ee3a..000000000 Binary files a/docs/_build/doctrees/content/bedtools-suite.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/closestBed.doctree b/docs/_build/doctrees/content/closestBed.doctree deleted file mode 100644 index 7ff121e68..000000000 Binary files a/docs/_build/doctrees/content/closestBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/complementBed.doctree b/docs/_build/doctrees/content/complementBed.doctree deleted file mode 100644 index 7e4e5bd2d..000000000 Binary files a/docs/_build/doctrees/content/complementBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/coverageBed.doctree b/docs/_build/doctrees/content/coverageBed.doctree deleted file mode 100644 index 5589f5c5e..000000000 Binary files a/docs/_build/doctrees/content/coverageBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/example-usage.doctree b/docs/_build/doctrees/content/example-usage.doctree deleted file mode 100644 index 9fa626581..000000000 Binary files a/docs/_build/doctrees/content/example-usage.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/fastafromBed.doctree b/docs/_build/doctrees/content/fastafromBed.doctree deleted file mode 100644 index d6c12aa90..000000000 Binary files a/docs/_build/doctrees/content/fastafromBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/general-usage.doctree b/docs/_build/doctrees/content/general-usage.doctree deleted file mode 100644 index 3d9efcc04..000000000 Binary files a/docs/_build/doctrees/content/general-usage.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/genomecoverageBed.doctree b/docs/_build/doctrees/content/genomecoverageBed.doctree deleted file mode 100644 index ff2ff1fd1..000000000 Binary files a/docs/_build/doctrees/content/genomecoverageBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/groupBy.doctree b/docs/_build/doctrees/content/groupBy.doctree deleted file mode 100644 index 222166fe0..000000000 Binary files a/docs/_build/doctrees/content/groupBy.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/installation.doctree b/docs/_build/doctrees/content/installation.doctree deleted file mode 100644 index 00f7911f3..000000000 Binary files a/docs/_build/doctrees/content/installation.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/intersectBed.doctree b/docs/_build/doctrees/content/intersectBed.doctree deleted file mode 100644 index d8f1587d5..000000000 Binary files a/docs/_build/doctrees/content/intersectBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/linksBed.doctree b/docs/_build/doctrees/content/linksBed.doctree deleted file mode 100644 index 919731d87..000000000 Binary files a/docs/_build/doctrees/content/linksBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/maskfastafromBed.doctree b/docs/_build/doctrees/content/maskfastafromBed.doctree deleted file mode 100644 index 5abe80eef..000000000 Binary files a/docs/_build/doctrees/content/maskfastafromBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/mergeBed.doctree b/docs/_build/doctrees/content/mergeBed.doctree deleted file mode 100644 index 8ec8c517f..000000000 Binary files a/docs/_build/doctrees/content/mergeBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/overlap.doctree b/docs/_build/doctrees/content/overlap.doctree deleted file mode 100644 index bd3aaab28..000000000 Binary files a/docs/_build/doctrees/content/overlap.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/overview.doctree b/docs/_build/doctrees/content/overview.doctree deleted file mode 100644 index f8b280627..000000000 Binary files a/docs/_build/doctrees/content/overview.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/pairToBed.doctree b/docs/_build/doctrees/content/pairToBed.doctree deleted file mode 100644 index e47b8c02f..000000000 Binary files a/docs/_build/doctrees/content/pairToBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/pairToPair.doctree b/docs/_build/doctrees/content/pairToPair.doctree deleted file mode 100644 index d1b3945f4..000000000 Binary files a/docs/_build/doctrees/content/pairToPair.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/quick-start.doctree b/docs/_build/doctrees/content/quick-start.doctree deleted file mode 100644 index d00a93bfe..000000000 Binary files a/docs/_build/doctrees/content/quick-start.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/shuffleBed.doctree b/docs/_build/doctrees/content/shuffleBed.doctree deleted file mode 100644 index 1bdfc48c6..000000000 Binary files a/docs/_build/doctrees/content/shuffleBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/slopBed.doctree b/docs/_build/doctrees/content/slopBed.doctree deleted file mode 100644 index 5dc021dd1..000000000 Binary files a/docs/_build/doctrees/content/slopBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/sortBed.doctree b/docs/_build/doctrees/content/sortBed.doctree deleted file mode 100644 index 93f3442d6..000000000 Binary files a/docs/_build/doctrees/content/sortBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/subtractBed.doctree b/docs/_build/doctrees/content/subtractBed.doctree deleted file mode 100644 index cf0171b0c..000000000 Binary files a/docs/_build/doctrees/content/subtractBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/unionBedGraphs.doctree b/docs/_build/doctrees/content/unionBedGraphs.doctree deleted file mode 100644 index b1b7d76d9..000000000 Binary files a/docs/_build/doctrees/content/unionBedGraphs.doctree and /dev/null differ diff --git a/docs/_build/doctrees/content/windowBed.doctree b/docs/_build/doctrees/content/windowBed.doctree deleted file mode 100644 index a3ba55b88..000000000 Binary files a/docs/_build/doctrees/content/windowBed.doctree and /dev/null differ diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle deleted file mode 100644 index 6cb6ba184..000000000 Binary files a/docs/_build/doctrees/environment.pickle and /dev/null differ diff --git a/docs/_build/doctrees/index.doctree b/docs/_build/doctrees/index.doctree deleted file mode 100644 index 0024245b8..000000000 Binary files a/docs/_build/doctrees/index.doctree and /dev/null differ diff --git a/docs/_build/html/.buildinfo b/docs/_build/html/.buildinfo deleted file mode 100644 index 3460d23ee..000000000 --- a/docs/_build/html/.buildinfo +++ /dev/null @@ -1,4 +0,0 @@ -# Sphinx build info version 1 -# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 74474c7b4889e5875af2f21f963837f1 -tags: fbb0d17656682115ca4d033fb2f83ba1 diff --git a/docs/_build/html/_images/intersectBed-1.png b/docs/_build/html/_images/intersectBed-1.png deleted file mode 100644 index 97a96cd18..000000000 Binary files a/docs/_build/html/_images/intersectBed-1.png and /dev/null differ diff --git a/docs/_build/html/_images/intersectBed-2.png b/docs/_build/html/_images/intersectBed-2.png deleted file mode 100644 index 7083e944f..000000000 Binary files a/docs/_build/html/_images/intersectBed-2.png and /dev/null differ diff --git a/docs/_build/html/_images/intersectBed-3.png b/docs/_build/html/_images/intersectBed-3.png deleted file mode 100644 index 3dda9a99c..000000000 Binary files a/docs/_build/html/_images/intersectBed-3.png and /dev/null differ diff --git a/docs/_build/html/_sources/content/advanced-usage.txt b/docs/_build/html/_sources/content/advanced-usage.txt deleted file mode 100644 index 8f706807e..000000000 --- a/docs/_build/html/_sources/content/advanced-usage.txt +++ /dev/null @@ -1,92 +0,0 @@ -############### -Advanced usage -############### - - -========================================================================== -7.1 Mask all regions in a genome except for targeted capture regions. -========================================================================== -# Add 500 bp up and downstream of each probe -:: - slopBed -i probes.bed -b 500 > probes.500bp.bed - -# Get a BED file of all regions not covered by the probes (+500 bp up/down) -:: - complementBed -i probes.500bp.bed -g hg18.genome > probes.500bp.complement.bed - -# Create a masked genome where all bases are masked except for the probes +500bp -:: - maskFastaFromBed -in hg18.fa -bed probes.500bp.complement.bed -fo hg18.probecomplement. - masked.fa - - -========================================================================== -7.2 Screening for novel SNPs. -========================================================================== -# Find all SNPs that are not in dbSnp and not in the latest 1000 genomes calls -:: - intersectBed -a snp.calls.bed -b dbSnp.bed -v | intersectBed -a stdin -b 1KG.bed - -v > snp.calls.novel.bed - - - -========================================================================== -7.3 Computing the coverage of features that align entirely within an -interval. -========================================================================== -# By default, coverageBed counts any feature in A that overlaps B by >= 1 bp. If -you want to require that a feature align entirely within B for it to be counted, -you can first use intersectBed with the "-f 1.0" option. -:: - intersectBed -a features.bed -b windows.bed -f 1.0 | coverageBed -a stdin -b - windows.bed > windows.bed.coverage - - -========================================================================== -7.4 Computing the coverage of BAM alignments on exons. -========================================================================== -# One can combine SAMtools with BEDtools to compute coverage directly from the BAM -data by using bamToBed. -:: - bamToBed -i reads.bam | coverageBed -a stdin -b exons.bed > exons.bed.coverage - -# Take it a step further and require that coverage be from properly-paired reads. -:: - samtools view -bf 0x2 reads.bam | bamToBed -i stdin | coverageBed -a stdin -b - exons.bed > exons.bed.proper.coverage - - - -========================================================================== -7.5 Computing coverage separately for each strand. -========================================================================== -# Use grep to only look at forward strand features (i.e. those that end in "+"). -:: - bamToBed -i reads.bam | grep \+$ | coverageBed -a stdin -b genes.bed > - genes.bed.forward.coverage - -# Use grep to only look at reverse strand features (i.e. those that end in "-"). -:: - bamToBed -i reads.bam | grep \-$ | coverageBed -a stdin -b genes.bed > - genes.bed.forward.coverage - - - -========================================================================== -7.6 Find structural variant calls that are private to one sample. -========================================================================== -# : -:: - pairToPair -a sample1.sv.bedpe -b othersamples.sv.bedpe -type neither > - sample1.sv.private.bedpe - - - -================================================================================== -7.7 Exclude SV deletions that appear to be ALU insertions in the reference genome. -================================================================================== -# We'll require that 90% of the inner span of the deletion be overlapped by a -recent ALU. -:: - pairToBed -a deletions.sv.bedpe -b ALUs.recent.bed -type notispan -f 0.80 > - deletions.notALUsinRef.bedpe \ No newline at end of file diff --git a/docs/_build/html/_sources/content/annotateBed.txt b/docs/_build/html/_sources/content/annotateBed.txt deleted file mode 100644 index 9a55b3b84..000000000 --- a/docs/_build/html/_sources/content/annotateBed.txt +++ /dev/null @@ -1,99 +0,0 @@ -############### -5.24 annotateBed -############### -**annotateBed** annotates one BED/VCF/GFF file with the coverage and number of overlaps observed -from multiple other BED/VCF/GFF files. In this way, it allows one to ask to what degree one feature -coincides with multiple other feature types with a single command. - -========================================================================== -5.24.1 Usage and option summary -========================================================================== -Usage: -:: - annotateBed [OPTIONS] -i -files FILE1 FILE2 FILE3 ... FILEn - - -=========================== =============================================================================================================================================================================================================== - Option Description - -=========================== =============================================================================================================================================================================================================== -**-namesr** A list of names (one per file) to describe each file in -i. These names will be printed as a header line. -**-counts** Report the count of features in each file that overlap -i. Default behavior is to report the fraction of -i covered by each file. -**-both** Report the count of features followed by the % coverage for each annotation file. Default is to report solely the fraction of -i covered by each file. -**-s** Force strandedness. That is, only include hits in A that overlap B on the same strand. By default, hits are included without respect to strand. -=========================== =============================================================================================================================================================================================================== - - - - - -========================================================================== -5.24.2 Default behavior - annotate one file with coverage from others. -========================================================================== -By default, the fraction of each feature covered by each annotation file is reported after the complete -feature in the file to be annotated. -:: - cat variants.bed - chr1 100 200 nasty 1 - - chr2 500 1000 ugly 2 + - chr3 1000 5000 big 3 - - - cat genes.bed - chr1 150 200 geneA 1 + - chr1 175 250 geneB 2 + - chr3 0 10000 geneC 3 - - - cat conserve.bed - chr1 0 10000 cons1 1 + - chr2 700 10000 cons2 2 - - chr3 4000 10000 cons3 3 + - - cat known_var.bed - chr1 0 120 known1 - - chr1 150 160 known2 - - chr2 0 10000 known3 + - - annotateBed -i variants.bed -files genes.bed conserv.bed known_var.bed - chr1 100 200 nasty 1 - 0.500000 1.000000 0.300000 - chr2 500 1000 ugly 2 + 0.000000 0.600000 1.000000 - chr3 1000 5000 big 3 - 1.000000 0.250000 0.000000 - - -========================================================================== -5.24.3 Report the count of hits from the annotation files -========================================================================== -Figure: -:: - annotateBed -counts -i variants.bed -files genes.bed conserv.bed known_var.bed - chr1 100 200 nasty 1 - 2 1 2 - chr2 500 1000 ugly 2 + 0 1 1 - chr3 1000 5000 big 3 - 1 1 0 - - - -========================================================================== -5.24.4 Report both the count of hits and the fraction covered from the annotation files -========================================================================== -Figure: -:: - annotateBed -both -i variants.bed -files genes.bed conserv.bed known_var.bed - #chr start end name score +/- cnt1 pct1 cnt2 pct2 cnt3 pct3 - chr1 100 200 nasty 1 - 2 0.500000 1 1.000000 2 0.300000 - chr2 500 1000 ugly 2 + 0 0.000000 1 0.600000 1 1.000000 - chr3 1000 5000 big 3 - 1 1.000000 1 0.250000 0 0.000000 - - - - -========================================================================== -5.24.5 Restrict the reporting to overlaps on the same strand. -========================================================================== -Note: Compare with the result from 5.24.3 -:: - annotateBed -s -i variants.bed -files genes.bed conserv.bed known_var.bed - chr1 100 200 nasty var1 - 0.000000 0.000000 0.000000 - chr2 500 1000 ugly var2 + 0.000000 0.000000 0.000000 - chr3 1000 5000 big var3 - 1.000000 0.000000 0.000000 - - - diff --git a/docs/_build/html/_sources/content/bamToBed.txt b/docs/_build/html/_sources/content/bamToBed.txt deleted file mode 100644 index 8647e9204..000000000 --- a/docs/_build/html/_sources/content/bamToBed.txt +++ /dev/null @@ -1,88 +0,0 @@ -############### -5.4 bamToBed -############### - -**bamToBed** is a general purpose tool that will convert sequence alignments in BAM format to either -BED6, BED12 or BEDPE format. This enables one to convert BAM files for use with all of the other -BEDTools. The CIGAR string is used to compute the alignment end coordinate in an "ungapped" -fashion. That is, match ("M"), deletion ("D"), and splice ("N") operations are observed when computing -alignment ends. - -============================================ -5.4.1 Usage and option summary -============================================ -**Usage:** -:: - bamToBed [OPTIONS] -i - - -====================== ========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================= -Option Description -====================== ========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================= -**-bedpe** Write BAM alignments in BEDPE format. Only one alignment from paired-end reads will be reported. Specifically, it each mate is aligned to the same chromosome, the BAM alignment reported will be the one where the BAM insert size is greater than zero. When the mate alignments are interchromosomal, the lexicographically lower chromosome will be reported first. Lastly, when an end is unmapped, the chromosome and strand will be set to "." and the start and end coordinates will be set to -1. *By default, this is disabled and the output will be reported in BED format*. - **NOTE: When using this option, it is required that the BAM file is sorted/grouped by the read name. This allows bamToBed to extract correct alignment coordinates for each end based on their respective CIGAR strings. It also assumes that the alignments for a given pair come in groups of twos. There is not yet a standard method for reporting multiple alignments using BAM. bamToBed will fail if an aligner does not report alignments in pairs**. - BAM files may be piped to bamToBed by specifying "-i stdin". See example below. -**-bed12** Write "blocked" BED (a.k.a. BED12) format. This will convert "spliced" BAM alignments (denoted by the "N" CIGAR operation) to BED12. -**-ed** Use the "edit distance" tag (NM) for the BED score field. Default for BED is to use mapping quality. Default for BEDPE is to use the *minimum* of the two mapping qualities for the pair. When -ed is used with -bedpe, the total edit distance from the two mates is reported. -**-tag** Use other *numeric* BAM alignment tag for BED score. Default for BED is to use mapping quality. Disallowed with BEDPE output. -**-color** An R,G,B string for the color used with BED12 format. Default is (255,0,0). -**-split** Report each portion of a "split" BAM (i.e., having an "N" CIGAR operation) alignment as a distinct BED intervals. -====================== ========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================= - -By default, each alignment in the BAM file is converted to a 6 column BED. The BED "name" field is -comprised of the RNAME field in the BAM alignment. If mate information is available, the mate (e.g., -"/1" or "/2") field will be appended to the name. The "score" field is the mapping quality score from the -BAM alignment, unless the **-ed** option is used. - -Examples: -:: - bamToBed -i reads.bam | head -5 - chr7 118970079 118970129 TUPAC_0001:3:1:0:1452#0/1 37 - - chr7 118965072 118965122 TUPAC_0001:3:1:0:1452#0/2 37 + - chr11 46769934 46769984 TUPAC_0001:3:1:0:1472#0/1 37 - - - bamToBed -i reads.bam -tag NM | head -5 - chr7 118970079 118970129 TUPAC_0001:3:1:0:1452#0/1 1 - - chr7 118965072 118965122 TUPAC_0001:3:1:0:1452#0/2 3 + - chr11 46769934 46769984 TUPAC_0001:3:1:0:1472#0/1 1 - - - bamToBed -i reads.bam -bedpe | head -3 - chr7 118965072 118965122 chr7 118970079 118970129 - TUPAC_0001:3:1:0:1452#0 37 + - - chr11 46765606 46765656 chr11 46769934 46769984 - TUPAC_0001:3:1:0:1472#0 37 + - - chr20 54704674 54704724 chr20 54708987 54709037 - TUPAC_0001:3:1:1:1833#0 37 + - - -One can easily use samtools and bamToBed together as part of a UNIX pipe. In this example, we will -only convert properly-paired (BAM flag == 0x2) reads to BED format. -:: - samtools view -bf 0x2 reads.bam | bamToBed -i stdin | head - chr7 118970079 118970129 TUPAC_0001:3:1:0:1452#0/1 37 - - chr7 118965072 118965122 TUPAC_0001:3:1:0:1452#0/2 37 + - chr11 46769934 46769984 TUPAC_0001:3:1:0:1472#0/1 37 - - chr11 46765606 46765656 TUPAC_0001:3:1:0:1472#0/2 37 + - chr20 54704674 54704724 TUPAC_0001:3:1:1:1833#0/1 37 + - chr20 54708987 54709037 TUPAC_0001:3:1:1:1833#0/2 37 - - chrX 9380413 9380463 TUPAC_0001:3:1:1:285#0/1 0 - - chrX 9375861 9375911 TUPAC_0001:3:1:1:285#0/2 0 + - chrX 131756978 131757028 TUPAC_0001:3:1:2:523#0/1 37 + - chrX 131761790 131761840 TUPAC_0001:3:1:2:523#0/2 37 - - - -================================================================== -5.4.2 (-split)Creating BED12 features from "spliced" BAM entries. -================================================================== -bamToBed will, by default, create a BED6 feature that represents the entire span of a spliced/split -BAM alignment. However, when using the **-split** command, a BED12 feature is reported where BED -blocks will be created for each aligned portion of the sequencing read. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Exons *************** ********** - - BED/BAM A ^^^^^^^^^^^^....................................^^^^ - - Result =============== ==== - diff --git a/docs/_build/html/_sources/content/bed12ToBed6.txt b/docs/_build/html/_sources/content/bed12ToBed6.txt deleted file mode 100644 index d9159e3bd..000000000 --- a/docs/_build/html/_sources/content/bed12ToBed6.txt +++ /dev/null @@ -1,49 +0,0 @@ -############### -5.21 bed12ToBed6 -############### -**bed12ToBed6** is a convenience tool that converts BED features in BED12 (a.k.a. "blocked" BED -features such as genes) to discrete BED6 features. For example, in the case of a gene with six exons, -bed12ToBed6 would create six separate BED6 features (i.e., one for each exon). - - -========================================================================== -5.21.1 Usage and option summary -========================================================================== -Usage: -:: - bed12ToBed6 [OPTIONS] -i - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-i** The BED12 file that should be split into discrete BED6 features. *Use "stdin" when using piped input*. -=========================== =============================================================================================================================================================================================================== - - - - -========================================================================== -5.21.2 Default behavior -========================================================================== -Figure: -:: - head data/knownGene.hg18.chr21.bed | tail -n 3 - chr21 10079666 10120808 uc002yiv.1 0 - 10081686 1 0 1 2 0 6 0 8 - 0 4 528,91,101,215, 0,1930,39750,40927, - chr21 10080031 10081687 uc002yiw.1 0 - 10080031 1 0 0 8 0 0 3 1 - 0 2 200,91, 0,1565, - chr21 10081660 10120796 uc002yix.2 0 - 10081660 1 0 0 8 1 6 6 0 - 0 3 27,101,223,0,37756,38913, - - head data/knownGene.hg18.chr21.bed | tail -n 3 | bed12ToBed6 -i stdin - chr21 10079666 10080194 uc002yiv.1 0 - - chr21 10081596 10081687 uc002yiv.1 0 - - chr21 10119416 10119517 uc002yiv.1 0 - - chr21 10120593 10120808 uc002yiv.1 0 - - chr21 10080031 10080231 uc002yiw.1 0 - - chr21 10081596 10081687 uc002yiw.1 0 - - chr21 10081660 10081687 uc002yix.2 0 - - chr21 10119416 10119517 uc002yix.2 0 - - chr21 10120573 10120796 uc002yix.2 0 - - - diff --git a/docs/_build/html/_sources/content/bedToBam.txt b/docs/_build/html/_sources/content/bedToBam.txt deleted file mode 100644 index c0f1d6acd..000000000 --- a/docs/_build/html/_sources/content/bedToBam.txt +++ /dev/null @@ -1,71 +0,0 @@ -############### -5.18 bedToBam -############### -**bedToBam** converts features in a feature file to BAM format. This is useful as an efficient means of -storing large genome annotations in a compact, indexed format for visualization purposes. - -========================================================================== -5.18.1 Usage and option summary -========================================================================== -Usage: -:: - bedToBam [OPTIONS] -i -g > - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-mapq** Set a mapping quality (SAM MAPQ field) value for all BED entries. *Default: 255* -**-ubam** Write uncompressed BAM output. The default is write compressed BAM output. -**-bed12** Indicate that the input BED file is in BED12 (a.k.a "blocked" BED) format. In this case, bedToBam will convert blocked BED features (e.g., gene annotaions) into "spliced" BAM alignments by creating an appropriate CIGAR string. -=========================== =============================================================================================================================================================================================================== - - - - -========================================================================== -5.18.2 Default behavior -========================================================================== -The default behavior is to assume that the input file is in unblocked format. For example: -:: - head -5 rmsk.hg18.chr21.bed - chr21 9719768 9721892 ALR/Alpha 1004 + - chr21 9721905 9725582 ALR/Alpha 1010 + - chr21 9725582 9725977 L1PA3 3288 + - chr21 9726021 9729309 ALR/Alpha 1051 + - chr21 9729320 9729809 L1PA3 3897 - - - bedToBam -i rmsk.hg18.chr21.bed -g human.hg18.genome > rmsk.hg18.chr21.bam - - samtools view rmsk.hg18.chr21.bam | head -5 - ALR/Alpha 0 chr21 9719769 255 2124M * 0 0 * * - ALR/Alpha 0 chr21 9721906 255 3677M * 0 0 * * - L1PA3 0 chr21 9725583 255 395M * 0 0 * * - ALR/Alpha 0 chr21 9726022 255 3288M * 0 0 * * - L1PA3 16 chr21 9729321 255 489M * 0 0 * * - - -========================================================================== -5.18.3 Creating "spliced" BAM entries from "blocked" BED features -========================================================================== -Optionally, **bedToBam** will create spliced BAM entries from "blocked" BED features by using the --bed12 option. This will create CIGAR strings in the BAM output that will be displayed as "spliced" -alignments. The image illustrates this behavior, as the top track is a BAM representation (using -bedToBam) of a BED file of UCSC genes. - -For example: -:: - bedToBam -i knownGene.hg18.chr21.bed -g human.hg18.genome -bed12 > knownGene.bam - - samtools view knownGene.bam | head -2 - uc002yip.1 16 chr21 9928614 2 5 5 - - 298M1784N71M1411N93M3963N80M1927N106M3608N81M1769N62M11856N89M98N82M816N61M6910N65M - 738N64M146N100M1647N120M6478N162M1485N51M6777N60M9274N54M880N54M1229N54M2377N54M112 - 68N58M2666N109M2885N158M * 0 0 * * - uc002yiq.1 16 chr21 9928614 2 5 5 - - 298M1784N71M1411N93M3963N80M1927N106M3608N81M1769N62M11856N89M98N82M816N61M6910N65M - 738N64M146N100M1647N120M6478N162M1485N51M6777N60M10208N54M1229N54M2377N54M11268N58M - 2666N109M2885N158M * 0 0 * * - - diff --git a/docs/_build/html/_sources/content/bedToIgv.txt b/docs/_build/html/_sources/content/bedToIgv.txt deleted file mode 100644 index 64d7578e5..000000000 --- a/docs/_build/html/_sources/content/bedToIgv.txt +++ /dev/null @@ -1,68 +0,0 @@ -############### -5.20 bedToIgv -############### -**bedToIgv** creates an IGV (http://www.broadinstitute.org/igv/) batch script (see: http:// -www.broadinstitute.org/igv/batch for details) such that a ¡°snapshot¡± will be taken at each features in a -feature file. This is useful as an efficient means for quickly collecting images of primary data at several -loci for subsequent screening, etc. - -**NOTE: One must use IGV version 1.5 or higher.** - - - -========================================================================== -5.20.1 Usage and option summary -========================================================================== -Usage: -:: - bedToIgv [OPTIONS] -i > - - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-path** The full path to which the IGV snapshots should be written. *Default: ./* -**-sess** The full path to an existing IGV session file to be loaded prior to taking snapshots. *Default is for no session to be loaded and the assumption is that you already have IGV open and loaded with your relevant data prior to running the batch script*. -**-sort** The type of BAM sorting you would like to apply to each image. **Valid sorting options**: *base, position, strand, quality, sample, and readGroup Default is to apply no sorting at all*. -**-clps** Collapse the aligned reads prior to taking a snapshot. *Default is to not collapse*. -**-name** Use the "name" field (column 4) for each image's filename. *Default is to use the "chr:start-pos.ext"*. -**-slop** Number of flanking base pairs on the left & right of the image. -**-img** The type of image to be created. **Valid options**: *png, eps, svg Default is png*. -=========================== =============================================================================================================================================================================================================== - - - - - -========================================================================== -5.20.2 Default behavior -========================================================================== -Figure: -:: - bedToIgv -i data/rmsk.hg18.chr21.bed | head -9 - snapshotDirectory ./ - goto chr21:9719768-9721892 - snapshot chr21:9719768-9721892.png - goto chr21:9721905-9725582 - snapshot chr21:9721905-9725582.png - goto chr21:9725582-9725977 - snapshot chr21:9725582-9725977.png - goto chr21:9726021-9729309 - snapshot chr21:9726021-9729309.png - - - - -========================================================================== -5.20.3 Using a bedToIgv batch script within IGV. -========================================================================== -Once an IGV batch script has been created with **bedToIgv**, it is simply a matter of running it from -within IGV. - -For example, first create the batch script: -:: - bedToIgv -i data/rmsk.hg18.chr21.bed > rmsk.igv.batch - -Then, open and launch the batch script from within IGV. This will immediately cause IGV to begin -taking snapshots of your requested regions. - diff --git a/docs/_build/html/_sources/content/bedtools-suite.txt b/docs/_build/html/_sources/content/bedtools-suite.txt deleted file mode 100644 index bbe1802d1..000000000 --- a/docs/_build/html/_sources/content/bedtools-suite.txt +++ /dev/null @@ -1,45 +0,0 @@ -############### -The BEDTools suite -############### - -This section covers the functionality and default / optional usage for each of the available BEDTools. -Example "figures" are provided in some cases in an effort to convey the purpose of the tool. The -behavior of each available parameter is discussed for each tool in abstract terms. More concrete usage -examples are provided in **Section 6**. - - -================= -Table of contents -================= -.. toctree:: - :maxdepth: 1 - - intersectBed - pairToBed - pairToPair - bamToBed - windowBed - closestBed - subtractBed - mergeBed - coverageBed - genomecoverageBed - fastafromBed - maskfastafromBed - shuffleBed - slopBed - sortBed - linksBed - complementBed - bedToBam - overlap - bedToIgv - bed12ToBed6 - groupBy - unionBedGraphs - annotateBed - - - - - \ No newline at end of file diff --git a/docs/_build/html/_sources/content/closestBed.txt b/docs/_build/html/_sources/content/closestBed.txt deleted file mode 100644 index 3276718c9..000000000 --- a/docs/_build/html/_sources/content/closestBed.txt +++ /dev/null @@ -1,130 +0,0 @@ -############### -5.6 closestBed -############### -Similar to **intersectBed, closestBed** searches for overlapping features in A and B. In the event that -no feature in B overlaps the current feature in A, **closestBed** will report the *closest* (that is, least -genomic distance from the start or end of A) feature in B. For example, one might want to find which -is the closest gene to a significant GWAS polymorphism. Note that **closestBed** will report an -overlapping feature as the closest---that is, it does not restrict to closest *non-overlapping* feature. - -========================================================================== -5.6.1 Usage and option summary -========================================================================== -**Usage:** -:: - closestBed [OPTIONS] -a -b - - -=========================== =============================================================================================================================================================================================================== -Option Description -=========================== =============================================================================================================================================================================================================== -**-s** Force strandedness. That is, find the closest feature in B overlaps A on the same strand. *By default, this is disabled*. -**-d** In addition to the closest feature in B, report its distance to A as an extra column. The reported distance for overlapping features will be 0. -**-t** How ties for closest feature should be handled. This occurs when two features in B have exactly the same overlap with a feature in A. *By default, all such features in B are reported*. - - Here are the other choices controlling how ties are handled: - - *all-* Report all ties (default). - - *first-* Report the first tie that occurred in the B file. - - *last-* Report the last tie that occurred in the B file. -=========================== =============================================================================================================================================================================================================== - - - - -========================================================================== -5.6.2 Default behavior -========================================================================== -**closestBed** first searches for features in B that overlap a feature in A. If overlaps are found, the feature -in B that overlaps the highest fraction of A is reported. If no overlaps are found, **closestBed** looks for -the feature in B that is *closest* (that is, least genomic distance to the start or end of A) to A. For -example, in the figure below, feature B1 would be reported as the closest feature to A1. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BED FILE A ************* - - BED File B ^^^^^^^^ ^^^^^^ - - Result ====== - - -For example: -:: - cat A.bed - chr1 100 200 - - cat B.bed - chr1 500 1000 - chr1 1300 2000 - - closestBed -a A.bed -b B.bed - chr1 100 200 chr1 500 1000 - - - -========================================================================== -5.6.3 (-s)Enforcing "strandedness" -========================================================================== -This option behaves the same as the -s option for intersectBed while scanning for the closest -(overlapping or not) feature in B. See the discussion in the intersectBed section for details. - - - -========================================================================== -5.6.4 (-t)Controlling how ties for "closest" are broken -========================================================================== -When there are two or more features in B that overlap the *same fraction* of A, **closestBed** will, by -default, report both features in B. Imagine feature A is a SNP and file B contains genes. It can often -occur that two gene annotations (e.g. opposite strands) in B will overlap the SNP. As mentioned, the -default behavior is to report both such genes in B. However, the -t option allows one to optionally -choose the just first or last feature (in terms of where it occurred in the input file, not chromosome -position) that occurred in B. - -For example (note the difference between -l 200 and -l 300): -:: - cat A.bed - chr1 100 101 rs1234 - - cat B.bed - chr1 0 1000 geneA 100 + - chr1 0 1000 geneB 100 - - - closestBed -a A.bed -b B.bed - chr1 100 101 rs1234 chr1 0 1000 geneA 100 + - chr1 100 101 rs1234 chr1 0 1000 geneB 100 - - - closestBed -a A.bed -b B.bed -t all - chr1 100 101 rs1234 chr1 0 1000 geneA 100 + - chr1 100 101 rs1234 chr1 0 1000 geneB 100 - - - closestBed -a A.bed -b B.bed -t first - chr1 100 101 rs1234 chr1 0 1000 geneA 100 + - - closestBed -a A.bed -b B.bed -t last - chr1 100 101 rs1234 chr1 0 1000 geneB 100 - - - - - - - -========================================================================== -5.6.5 (-d)Reporting the distance to the closest feature in base pairs -========================================================================== -ClosestBed will optionally report the distance to the closest feature in the B file using the **-d** option. -When a feature in B overlaps a feature in A, a distance of 0 is reported. -:: - cat A.bed - chr1 100 200 - chr1 500 600 - - cat B.bed - chr1 500 1000 - chr1 1300 2000 - - closestBed -a A.bed -b B.bed -d - chr1 100 200 chr1 500 1000 300 - chr1 500 600 chr1 500 1000 0 diff --git a/docs/_build/html/_sources/content/complementBed.txt b/docs/_build/html/_sources/content/complementBed.txt deleted file mode 100644 index 1951d0d43..000000000 --- a/docs/_build/html/_sources/content/complementBed.txt +++ /dev/null @@ -1,48 +0,0 @@ -############### -5.17 complementBed -############### -**complementBed** returns the intervals in a genome that are not by the features in a feature file. An -example usage of this tool would be to return the intervals of the genome that are not annotated as a -repeat. - - -========================================================================== -5.17.1 Usage and option summary -========================================================================== -Usage: -:: - complementBed [OPTIONS] -i -g - -**No additional options.** - - - - -========================================================================== -5.17.2 Default behavior -========================================================================== -Figure: -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BED FILE A ************* *************** ****************** - - Result === === ===== ======= - - -For example: -:: - cat A.bed - chr1 100 200 - chr1 400 500 - chr1 500 800 - - cat my.genome - chr1 1000 - - complementBed -i A.bed -g my.genome - chr1 0 100 - chr1 200 400 - chr1 800 1000 - - diff --git a/docs/_build/html/_sources/content/coverageBed.txt b/docs/_build/html/_sources/content/coverageBed.txt deleted file mode 100644 index ccd5acd24..000000000 --- a/docs/_build/html/_sources/content/coverageBed.txt +++ /dev/null @@ -1,184 +0,0 @@ -############### -5.9 coverageBed -############### -**coverageBed** computes both the *depth* and *breadth* of coverage of features in file A across the features -in file B. For example, **coverageBed** can compute the coverage of sequence alignments (file A) across 1 -kilobase (arbitrary) windows (file B) tiling a genome of interest. One advantage that **coverageBed** -offers is that it not only *counts* the number of features that overlap an interval in file B, it also -computes the fraction of bases in B interval that were overlapped by one or more features. Thus, -**coverageBed** also computes the *breadth* of coverage for each interval in B. - -========================================================================== -5.9.1 Usage and option summary -========================================================================== -Usage: -:: - coverageBed [OPTIONS] -a -b - -=========================== =============================================================================================================================================================================================================== -Option Description -=========================== =============================================================================================================================================================================================================== -**-abam** BAM file A. Each BAM alignment in A is compared to B in search of overlaps. Use "stdin" if passing A with a UNIX pipe: For example: - - | samtools view -b | intersectBed -abam stdin -b genes.bed - -**-s** Force strandedness. That is, only features in A are only counted towards coverage in B if they are the same strand. *By default, this is disabled and coverage is counted without respect to strand*. -**-hist** Report a histogram of coverage for each feature in B as well as a summary histogram for _all_ features in B. - - | Output (tab delimited) after each feature in B: - - | 1) depth - | 2) # bases at depth - | 3) size of B - | 4) % of B at depth -**-d** Report the depth at each position in each B feature. Positions reported are one based. Each position and depth follow the complete B feature. -**-split** Treat "split" BAM or BED12 entries as distinct BED intervals when computing coverage. For BAM files, this uses the CIGAR "N" and "D" operations to infer the blocks for computing coverage. For BED12 files, this uses the BlockCount, BlockStarts, and BlockEnds fields (i.e., columns 10,11,12). -=========================== =============================================================================================================================================================================================================== - - - - - - -========================================================================== -5.9.2 Default behavior -========================================================================== -After each interval in B, **coverageBed** will report: - -1) The number of features in A that overlapped (by at least one base pair) the B interval. -2) The number of bases in B that had non-zero coverage from features in A. -3) The length of the entry in B. -4) The fraction of bases in B that had non-zero coverage from features in A. - -Below are the number of features in A (N=...) overlapping B and fraction of bases in B with coverage. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BED FILE B *************** *************** ****** ************** - - BED File A ^^^^ ^^^^ ^^ ^^^^^^^^^ ^^^ ^^ ^^^^ - ^^^^^^^^ ^^^^^ ^^^^^ ^^ - - Result [ N=3, 10/15 ] [ N=1, 2/16 ] [N=1,6/6] [N=5, 11/12 ] - - -For example: -:: - cat A.bed - chr1 10 20 - chr1 20 30 - chr1 30 40 - chr1 100 200 - - cat B.bed - chr1 0 100 - chr1 100 200 - chr2 0 100 - - coverageBed -a A.bed -b B.bed - chr1 0 100 3 30 100 0.3000000 - chr1 100 200 1 100 100 1.0000000 - chr2 0 100 0 0 100 0.0000000 - - - -========================================================================== -5.9.4 (-s)Calculating coverage by strand -========================================================================== -Use the "**-s**" option if one wants to only count coverage if features in A are on the same strand as the -feature / window in B. This is especially useful for RNA-seq experiments. - -For example (note the difference in coverage with and without **-s**: -:: - cat A.bed - chr1 10 20 a1 1 - - chr1 20 30 a2 1 - - chr1 30 40 a3 1 - - chr1 100 200 a4 1 + - - cat B.bed - chr1 0 100 b1 1 + - chr1 100 200 b2 1 - - chr2 0 100 b3 1 + - - coverageBed -a A.bed -b B.bed - chr1 0 100 b1 1 + 3 30 100 0.3000000 - chr1 100 200 b2 1 - 1 100 100 1.0000000 - chr2 0 100 b3 1 + 0 0 100 0.0000000 - - coverageBed -a A.bed -b B.bed -s - chr1 0 100 b1 1 + 0 0 100 0.0000000 - chr1 100 200 b2 1 - 0 0 100 0.0000000 - chr2 0 100 b3 1 + 0 0 100 0.0000000 - -========================================================================== -5.9.5 (-hist)Creating a histogram of coverage for each feature in the B file -========================================================================== -One should use the "**-hist**" option to create, for each interval in B, a histogram of coverage of the -features in A across B. - -In this case, each entire feature in B will be reported, followed by the depth of coverage, the number of -bases at that depth, the size of the feature, and the fraction covered. After all of the features in B have -been reported, a histogram summarizing the coverage among all features in B will be reported. -:: - cat A.bed - chr1 10 20 a1 1 - - chr1 20 30 a2 1 - - chr1 30 40 a3 1 - - chr1 100 200 a4 1 + - - cat B.bed - chr1 0 100 b1 1 + - chr1 100 200 b2 1 - - chr2 0 100 b3 1 + - - coverageBed -a A.bed -b B.bed -hist - chr1 0 100 b1 1 + 0 70 100 0.7000000 - chr1 0 100 b1 1 + 1 30 100 0.3000000 - chr1 100 200 b2 1 - 1 100 100 1.0000000 - chr2 0 100 b3 1 + 0 100 100 1.0000000 - all 0 170 300 0.5666667 - all 1 130 300 0.4333333 - - - -========================================================================== -5.9.6 (-hist)Reporting the per-base of coverage for each feature in the B file -========================================================================== -One should use the "**-d**" option to create, for each interval in B, a detailed list of coverage at each of the -positions across each B interval. - -The output will consist of a line for each one-based position in each B feature, followed by the coverage -detected at that position. -:: - cat A.bed - chr1 0 5 - chr1 3 8 - chr1 4 8 - chr1 5 9 - - cat B.bed - chr1 0 10 - - coverageBed -a A.bed -b B.bed -d - chr1 0 10 B 1 1 - chr1 0 10 B 2 1 - chr1 0 10 B 3 1 - chr1 0 10 B 4 2 - chr1 0 10 B 5 3 - chr1 0 10 B 6 3 - chr1 0 10 B 7 3 - chr1 0 10 B 8 3 - chr1 0 10 B 9 1 - chr1 0 10 B 10 0 - - - -========================================================================== -5.9.7 (-split)Reporting coverage with spliced alignments or blocked BED features -========================================================================== -As described in section 1.3.19, coverageBed will, by default, screen for overlaps against the entire span -of a spliced/split BAM alignment or blocked BED12 feature. When dealing with RNA-seq reads, for -example, one typically wants to only tabulate coverage for the portions of the reads that come from -exons (and ignore the interstitial intron sequence). The **-split** command allows for such coverage to be -performed. diff --git a/docs/_build/html/_sources/content/example-usage.txt b/docs/_build/html/_sources/content/example-usage.txt deleted file mode 100644 index 3fe5edf30..000000000 --- a/docs/_build/html/_sources/content/example-usage.txt +++ /dev/null @@ -1,331 +0,0 @@ -############### -Example usage -############### -Below are several examples of basic BEDTools usage. Example BED files are provided in the -/data directory of the BEDTools distribution. - - - -========================================================================== -6.1 intersectBed -========================================================================== - - -6.1.1 Report the base-pair overlap between sequence alignments and genes. -:: - intersectBed -a reads.bed -b genes.bed - - - -6.1.2 Report whether each alignment overlaps one or more genes. If not, the alignment is not reported. -:: - intersectBed -a reads.bed -b genes.bed -u - - - -6.1.3 Report those alignments that overlap NO genes. Like "grep -v" -:: - intersectBed -a reads.bed -b genes.bed -v - - -6.1.4 Report the number of genes that each alignment overlaps. -:: - intersectBed -a reads.bed -b genes.bed -c - - - -6.1.5 Report the entire, original alignment entry for each overlap with a gene. -:: - intersectBed -a reads.bed -b genes.bed -wa - - - -6.1.6 Report the entire, original gene entry for each overlap with a gene. -:: - intersectBed -a reads.bed -b genes.bed -wb - - - -6.1.7 Report the entire, original alignment and gene entries for each overlap. -:: - intersectBed -a reads.bed -b genes.bed -wa -wb - - - -6.1.8 Only report an overlap with a repeat if it spans at least 50% of the exon. -:: - intersectBed -a exons.bed -b repeatMasker.bed -f 0.50 - - - -6.1.9 Only report an overlap if comprises 50% of the structural variant and 50% of the segmental duplication. Thus, it is reciprocally at least a 50% overlap. -:: - intersectBed -a SV.bed -b segmentalDups.bed -f 0.50 -r - - - - -6.1.10 Read BED A from stdin. For example, find genes that overlap LINEs but not SINEs. -:: - intersectBed -a genes.bed -b LINES.bed | intersectBed -a stdin -b SINEs.bed -v - - - - -6.1.11 Retain only single-end BAM alignments that overlap exons. -:: - intersectBed -abam reads.bam -b exons.bed > reads.touchingExons.bam - - - - - -6.1.12 Retain only single-end BAM alignments that do not overlap simple sequence -repeats. -:: - intersectBed -abam reads.bam -b SSRs.bed -v > reads.noSSRs.bam - - - -========================================================================== -6.2 pairToBed -========================================================================== - - - -6.2.1 Return all structural variants (in BEDPE format) that overlap with genes on either -end. -:: - pairToBed -a sv.bedpe -b genes > sv.genes - - - -6.2.2 Return all structural variants (in BEDPE format) that overlap with genes on both -end. -:: - pairToBed -a sv.bedpe -b genes -type both > sv.genes - - - - -6.2.3 Retain only paired-end BAM alignments where neither end overlaps simple -sequence repeats. -:: - pairToBed -abam reads.bam -b SSRs.bed -type neither > reads.noSSRs.bam - - - -6.2.4 Retain only paired-end BAM alignments where both ends overlap segmental -duplications. -:: - pairToBed -abam reads.bam -b segdups.bed -type both > reads.SSRs.bam - - - - -6.2.5 Retain only paired-end BAM alignments where neither or one and only one end -overlaps segmental duplications. -:: - pairToBed -abam reads.bam -b segdups.bed -type notboth > reads.notbothSSRs.bam - - - - - - -========================================================================== -6.3 pairToPair -========================================================================== - - -6.3.1 Find all SVs (in BEDPE format) in sample 1 that are also in sample 2. -:: - pairToPair -a 1.sv.bedpe -b 2.sv.bedpe | cut -f 1-10 > 1.sv.in2.bedpe - - - -6.3.2 Find all SVs (in BEDPE format) in sample 1 that are not in sample 2. -:: - pairToPair -a 1.sv.bedpe -b 2.sv.bedpe -type neither | cut -f 1-10 > -1.sv.notin2.bedpe - - - - - -========================================================================== -6.4 bamToBed -========================================================================== - - -6.4.1 Convert BAM alignments to BED format. -:: - bamToBed -i reads.bam > reads.bed - - -6.4.2 Convert BAM alignments to BED format using the BAM edit distance (NM) as the -BED "score". -:: - bamToBed -i reads.bam -ed > reads.bed - - -6.4.3 Convert BAM alignments to BEDPE format. -:: - bamToBed -i reads.bam -bedpe > reads.bedpe - - - - - -========================================================================== -6.5 windowBed -========================================================================== - - - -6.5.1 Report all genes that are within 10000 bp upstream or downstream of CNVs. -:: - windowBed -a CNVs.bed -b genes.bed -w 10000 - - - -6.5.2 Report all genes that are within 10000 bp upstream or 5000 bp downstream of -CNVs. -:: - windowBed -a CNVs.bed -b genes.bed -l 10000 -r 5000 - - -6.5.3 Report all SNPs that are within 5000 bp upstream or 1000 bp downstream of genes. -Define upstream and downstream based on strand. -:: - windowBed -a genes.bed -b snps.bed -l 5000 -r 1000 -sw - - - - - -========================================================================== -6.6 closestBed -========================================================================== -Note: By default, if there is a tie for closest, all ties will be reported. **closestBed** allows overlapping -features to be the closest. - - - -6.6.1 Find the closest ALU to each gene. -:: - closestBed -a genes.bed -b ALUs.bed - - -6.6.2 Find the closest ALU to each gene, choosing the first ALU in the file if there is a -tie. -:: - closestBed -a genes.bed -b ALUs.bed -t first - - - -6.6.3 Find the closest ALU to each gene, choosing the last ALU in the file if there is a -tie. -:: - closestBed -a genes.bed -b ALUs.bed -t last - - - - - -========================================================================== -6.7 subtractBed -========================================================================== -Note: If a feature in A is entirely "spanned" by any feature in B, it will not be reported. - - - -6.7.1 Remove introns from gene features. Exons will (should) be reported. -:: - subtractBed -a genes.bed -b introns.bed - - -========================================================================== -6.8 mergeBed -========================================================================== - - -6.8.1 Merge overlapping repetitive elements into a single entry. -:: - mergeBed -i repeatMasker.bed - - - -6.8.2 Merge overlapping repetitive elements into a single entry, returning the number of -entries merged. -:: - mergeBed -i repeatMasker.bed -n - - -6.8.3 Merge nearby (within 1000 bp) repetitive elements into a single entry. -:: - mergeBed -i repeatMasker.bed -d 1000 - - -========================================================================== -6.9 coverageBed -========================================================================== - - -6.9.1 Compute the coverage of aligned sequences on 10 kilobase "windows" spanning the -genome. -:: - coverageBed -a reads.bed -b windows10kb.bed | head - chr1 0 10000 0 10000 0.00 - chr1 10001 20000 33 10000 0.21 - chr1 20001 30000 42 10000 0.29 - chr1 30001 40000 71 10000 0.36 - - - -6.9.2 Compute the coverage of aligned sequences on 10 kilobase "windows" spanning the -genome and created a BEDGRAPH of the number of aligned reads in each window for -display on the UCSC browser. -:: - coverageBed -a reads.bed -b windows10kb.bed | cut -f 1-4 > windows10kb.cov.bedg - - - -6.9.3 Compute the coverage of aligned sequences on 10 kilobase "windows" spanning the -genome and created a BEDGRAPH of the fraction of each window covered by at least -one aligned read for display on the UCSC browser. -:: - coverageBed -a reads.bed -b windows10kb.bed | awk ¡®{OFS="\t"; print $1,$2,$3,$6}¡¯ - > windows10kb.pctcov.bedg - - - - -========================================================================== -6.10 complementBed -========================================================================== - - -6.10.1 Report all intervals in the human genome that are not covered by repetitive -elements. -:: - complementBed -i repeatMasker.bed -g hg18.genome - - - -========================================================================== -6.11 shuffleBed -========================================================================== - - -6.11.1 Randomly place all discovered variants in the genome. However, prevent them -from being placed in know genome gaps. -:: - shuffleBed -i variants.bed -g hg18.genome -excl genome_gaps.bed - - -6.11.2 Randomly place all discovered variants in the genome. However, prevent them -from being placed in know genome gaps and require that the variants be randomly -placed on the same chromosome. -:: - shuffleBed -i variants.bed -g hg18.genome -excl genome_gaps.bed -chrom diff --git a/docs/_build/html/_sources/content/fastafromBed.txt b/docs/_build/html/_sources/content/fastafromBed.txt deleted file mode 100644 index 6e2b4ca0d..000000000 --- a/docs/_build/html/_sources/content/fastafromBed.txt +++ /dev/null @@ -1,126 +0,0 @@ -############### -5.11 fastaFromBed -############### -**fastaFromBed** extracts sequences from a FASTA file for each of the intervals defined in a BED file. -The headers in the input FASTA file must exactly match the chromosome column in the BED file. - -========================================================================== -5.11.1 Usage and option summary -========================================================================== -Usage: -:: - fastaFromBed [OPTIONS] -fi -bed -fo - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-name** Use the "name" column in the BED file for the FASTA headers in the output FASTA file. -**-tab** Report extract sequences in a tab-delimited format instead of in FASTA format. -**-s** Force strandedness. If the feature occupies the antisense strand, the sequence will be reverse complemented. *Default: strand information is ignored*. -=========================== =============================================================================================================================================================================================================== - - - - - - - -========================================================================== -5.11.2 Default behavior -========================================================================== -**fastaFromBed** will extract the sequence defined by the coordinates in a BED interval and create a -new FASTA entry in the output file for each extracted sequence. By default, the FASTA header for each -extracted sequence will be formatted as follows: ":-". - -For example: -:: - $ cat test.fa - >chr1 - AAAAAAAACCCCCCCCCCCCCGCTACTGGGGGGGGGGGGGGGGGG - - cat test.bed - chr1 5 10 - - fastaFromBed -fi test.fa -bed test.bed -fo test.fa.out - - cat test.fa.out - >chr1:5-10 - AAACC - - - - -========================================================================== -5.11.3 Using the BED "name" column as a FASTA header. -========================================================================== -Using the **-name** option, one can set the FASTA header for each extracted sequence to be the "name" -columns from the BED feature. - -For example: -:: - cat test.fa - >chr1 - AAAAAAAACCCCCCCCCCCCCGCTACTGGGGGGGGGGGGGGGGGG - - cat test.bed - chr1 5 10 myseq - - fastaFromBed -fi test.fa -bed test.bed -fo test.fa.out -name - - cat test.fa.out - >myseq - AAACC - - - - - - - - - - -========================================================================== -5.11.4 Creating a tab-delimited output file in lieu of FASTA output. -========================================================================== -Using the **-tab** option, the **-fo** output file will be tab-delimited instead of in FASTA format. - -For example: -:: - cat test.fa - >chr1 - AAAAAAAACCCCCCCCCCCCCGCTACTGGGGGGGGGGGGGGGGGG - - cat test.bed - chr1 5 10 myseq - - fastaFromBed -fi test.fa -bed test.bed -fo test.fa.out.tab -name -tab - - cat test.fa.out - myseq AAACC - - - -========================================================================== -5.11.5 (-s)Forcing the extracted sequence to reflect the requested strand -========================================================================== -**fastaFromBed** will extract the sequence in the orientation defined in the strand column when the "-s" -option is used. - -For example: -:: - cat test.fa - >chr1 - AAAAAAAACCCCCCCCCCCCCGCTACTGGGGGGGGGGGGGGGGGG - - cat test.bed - chr1 20 25 forward 1 + - chr1 20 25 reverse 1 - - - fastaFromBed -fi test.fa -bed test.bed -s -name -fo test.fa.out - - cat test.fa.out - >forward - CGCTA - >reverse - TAGCG diff --git a/docs/_build/html/_sources/content/general-usage.txt b/docs/_build/html/_sources/content/general-usage.txt deleted file mode 100644 index 7047cc550..000000000 --- a/docs/_build/html/_sources/content/general-usage.txt +++ /dev/null @@ -1,213 +0,0 @@ -############### -General usage -############### - -======================= -4.1 Supported file formats -======================= - ----------------------- -4.1.1 BED format ----------------------- -As described on the UCSC Genome Browser website (see link below), the BED format is a concise and -flexible way to represent genomic features and annotations. The BED format description supports up to -12 columns, but only the first 3 are required for the UCSC browser, the Galaxy browser and for -BEDTools. BEDTools allows one to use the "BED12" format (that is, all 12 fields listed below). -However, only intersectBed, coverageBed, genomeCoverageBed, and bamToBed will obey the BED12 -"blocks" when computing overlaps, etc., via the **"-split"** option. For all other tools, the last six columns -are not used for any comparisons by the BEDTools. Instead, they will use the entire span (start to end) -of the BED12 entry to perform any relevant feature comparisons. The last six columns will be reported -in the output of all comparisons. - -The file description below is modified from: http://genome.ucsc.edu/FAQ/FAQformat#format1. - -1. **chrom** - The name of the chromosome on which the genome feature exists. - - *Any string can be used*. For example, "chr1", "III", "myChrom", "contig1112.23". - - *This column is required*. -2. **start** - The zero-based starting position of the feature in the chromosome. - - *The first base in a chromosome is numbered 0*. - - *The start position in each BED feature is therefore interpreted to be 1 greater than the start position listed in the feature. For example, start=9, end=20 is interpreted to span bases 10 through 20,inclusive*. - - *This column is required*. -3. **end** - The one-based ending position of the feature in the chromosome. - - *The end position in each BED feature is one-based. See example above*. - - *This column is required*. -4. **name** - Defines the name of the BED feature. - - *Any string can be used*. For example, "LINE", "Exon3", "HWIEAS_0001:3:1:0:266#0/1", or "my_Feature". - - *This column is optional*. -5. **score** - The UCSC definition requires that a BED score range from 0 to 1000, inclusive. However, BEDTools allows any string to be stored in this field in order to allow greater flexibility in annotation features. For example, strings allow scientific notation for p-values, mean enrichment values, etc. It should be noted that this flexibility could prevent such annotations from being correctly displayed on the UCSC browser. - - *Any string can be used*. For example, 7.31E-05 (p-value), 0.33456 (mean enrichment value), "up", "down", etc. - - *This column is optional*. -6. **strand** - Defines the strand - either '+' or '-'. - - *This column is optional*. -7. **thickStart** - The starting position at which the feature is drawn thickly. - - *Allowed yet ignored by BEDTools*. -8. **thickEnd** - The ending position at which the feature is drawn thickly. - - *Allowed yet ignored by BEDTools*. -9. **itemRgb** - An RGB value of the form R,G,B (e.g. 255,0,0). - - *Allowed yet ignored by BEDTools*. -10. **blockCount** - The number of blocks (exons) in the BED line. - - *Allowed yet ignored by BEDTools*. -11. **blockSizes** - A comma-separated list of the block sizes. - - *Allowed yet ignored by BEDTools*. -12. **blockStarts** - A comma-separated list of block starts. - - *Allowed yet ignored by BEDTools*. - - -BEDTools requires that all BED input files (and input received from stdin) are **tab-delimited**. The following types of BED files are supported by BEDTools: - - -1. | **BED3**: A BED file where each feature is described by **chrom**, **start**, and **end**. - | For example: chr1 11873 14409 -2. | **BED4**: A BED file where each feature is described by **chrom**, **start**, **end**, and **name**. - | For example: chr1 11873 14409 uc001aaa.3 -3. | **BED5**: A BED file where each feature is described by **chrom**, **start**, **end**, **name**, and **score**. - | For example: chr1 11873 14409 uc001aaa.3 0 -4. | **BED6**: A BED file where each feature is described by **chrom**, **start**, **end**, **name**, **score**, and **strand**. - | For example: chr1 11873 14409 uc001aaa.3 0 + -5. | **BED12**: A BED file where each feature is described by all twelve columns listed above. - | For example: chr1 11873 14409 uc001aaa.3 0 + 11873 - | 11873 0 3 354,109,1189, 0,739,1347, - ----------------------- -4.1.2 BEDPE format ----------------------- -We have defined a new file format (BEDPE) in order to concisely describe disjoint genome features, -such as structural variations or paired-end sequence alignments. We chose to define a new format -because the existing "blocked" BED format (a.k.a. BED12) does not allow inter-chromosomal feature -definitions. In addition, BED12 only has one strand field, which is insufficient for paired-end sequence -alignments, especially when studying structural variation. - -The BEDPE format is described below. The description is modified from: http://genome.ucsc.edu/FAQ/FAQformat#format1. - -1. **chrom1** - The name of the chromosome on which the **first** end of the feature exists. - - *Any string can be used*. For example, "chr1", "III", "myChrom", "contig1112.23". - - *This column is required*. - - *Use "." for unknown*. -2. **start1** - The zero-based starting position of the **first** end of the feature on **chrom1**. - - *The first base in a chromosome is numbered 0*. - - *As with BED format, the start position in each BEDPE feature is therefore interpreted to be 1 greater than the start position listed in the feature. This column is required*. - - *Use -1 for unknown*. -3. **end1** - The one-based ending position of the first end of the feature on **chrom1**. - - *The end position in each BEDPE feature is one-based*. - - *This column is required*. - - *Use -1 for unknown*. -4. **chrom2** - The name of the chromosome on which the **second** end of the feature exists. - - *Any string can be used*. For example, "chr1", "III", "myChrom", "contig1112.23". - - *This column is required*. - - *Use "." for unknown*. -5. **start2** - The zero-based starting position of the **second** end of the feature on **chrom2**. - - *The first base in a chromosome is numbered 0*. - - *As with BED format, the start position in each BEDPE feature is therefore interpreted to be 1 greater than the start position listed in the feature. This column is required*. - - *Use -1 for unknown*. -6. **end2** - The one-based ending position of the **second** end of the feature on **chrom2**. - - *The end position in each BEDPE feature is one-based*. - - *This column is required*. - - *Use -1 for unknown*. -7. **name** - Defines the name of the BEDPE feature. - - *Any string can be used*. For example, "LINE", "Exon3", "HWIEAS_0001:3:1:0:266#0/1", or "my_Feature". - - *This column is optional*. -8. **score** - The UCSC definition requires that a BED score range from 0 to 1000, inclusive. *However, BEDTools allows any string to be stored in this field in order to allow greater flexibility in annotation features*. For example, strings allow scientific notation for p-values, mean enrichment values, etc. It should be noted that this flexibility could prevent such annotations from being correctly displayed on the UCSC browser. - - *Any string can be used*. For example, 7.31E-05 (p-value), 0.33456 (mean enrichment value), "up", "down", etc. - - *This column is optional*. -9. **strand1** - Defines the strand for the first end of the feature. Either '+' or '-'. - - *This column is optional*. - - *Use "." for unknown*. -10. **strand2** - Defines the strand for the second end of the feature. Either '+' or '-'. - - *This column is optional*. - - *Use "." for unknown*. -11. **Any number of additional, user-defined fields** - BEDTools allows one to add as many additional fields to the normal, 10-column BEDPE format as necessary. These columns are merely "passed through" **pairToBed** and **pairToPair** and are not part of any analysis. One would use these additional columns to add extra information (e.g., edit distance for each end of an alignment, or "deletion", "inversion", etc.) to each BEDPE feature. - - *These additional columns are optional*. - - -Entries from an typical BEDPE file: -:: - chr1 100 200 chr5 5000 5100 bedpe_example1 30 + - - chr9 1000 5000 chr9 3000 3800 bedpe_example2 100 + - - - -Entries from a BEDPE file with two custom fields added to each record: -:: - chr1 10 20 chr5 50 60 a1 30 + - 0 1 - chr9 30 40 chr9 80 90 a2 100 + - 2 1 - - - ----------------------- -4.1.3 GFF format ----------------------- -The GFF format is described on the Sanger Institute's website (http://www.sanger.ac.uk/resources/software/gff/spec.html). The GFF description below is modified from the definition at this URL. All nine columns in the GFF format description are required by BEDTools. - -1. **seqname** - The name of the sequence (e.g. chromosome) on which the feature exists. - - *Any string can be used*. For example, "chr1", "III", "myChrom", "contig1112.23". - - *This column is required*. -2. **source** - The source of this feature. This field will normally be used to indicate the program making the prediction, or if it comes from public database annotation, or is experimentally verified, etc. - - *This column is required*. -3. **feature** - The feature type name. Equivalent to BED's **name** field. - - *Any string can be used*. For example, "exon", etc. - - *This column is required*. -4. **start** - The one-based starting position of feature on **seqname**. - - *This column is required*. - - *BEDTools accounts for the fact the GFF uses a one-based position and BED uses a zero-based start position*. -5. **end** - The one-based ending position of feature on **seqname**. - - *This column is required*. -6. **score** - A score assigned to the GFF feature. Like BED format, BEDTools allows any string to be stored in this field in order to allow greater flexibility in annotation features. We note that this differs from the GFF definition in the interest of flexibility. - - *This column is required*. -7. **strand** - Defines the strand. Use '+', '-' or '.' - - *This column is required*. -8. **frame** - The frame of the coding sequence. Use '0', '1', '2', or '.'. - - *This column is required*. -9. **attribute** - Taken from http://www.sanger.ac.uk/resources/software/gff/spec.html: From version 2 onwards, the attribute field must have an tag value structure following the syntax used within objects in a .ace file, flattened onto one line by semicolon separators. Tags must be standard identifiers ([A-Za-z][AZa-z0-9_]*). Free text values must be quoted with double quotes. *Note: all non-printing characters in such free text value strings (e.g. newlines, tabs, control characters, etc) must be explicitly represented by their C (UNIX) style backslash-escaped representation (e.g. newlines as '\n', tabs as '\t')*. As in ACEDB, multiple values can follow a specific tag. The aim is to establish consistent use of particular tags, corresponding to an underlying implied ACEDB model if you want to think that way (but acedb is not required). - - *This column is required*. - -An entry from an example GFF file : -:: - seq1 BLASTX similarity 101 235 87.1 + 0 Target "HBA_HUMAN" 11 55 ; - E_value 0.0003 dJ102G20 GD_mRNA coding_exon 7105 7201 . - 2 Sequence - "dJ102G20.C1.1" - - - ----------------------- -4.1.3 GFF format ----------------------- -Some of the BEDTools (e.g., genomeCoverageBed, complementBed, slopBed) need to know the size of -the chromosomes for the organism for which your BED files are based. When using the UCSC Genome -Browser, Ensemble, or Galaxy, you typically indicate which which species/genome build you are -working. The way you do this for BEDTools is to create a "genome" file, which simply lists the names of -the chromosomes (or scaffolds, etc.) and their size (in basepairs). - - -Genome files must be **tab-delimited** and are structured as follows (this is an example for *C. elegans*): -:: - chrI 15072421 - chrII 15279323 - ... - chrX 17718854 - chrM 13794 - -BEDTools includes pre-defined genome files for human and mouse in the **/genomes** directory included -in the BEDTools distribution. - - ----------------------- -4.1.5 SAM/BAM format ----------------------- -The SAM / BAM format is a powerful and widely-used format for storing sequence alignment data (see -http://samtools.sourceforge.net/ for more details). It has quickly become the standard format to which -most DNA sequence alignment programs write their output. Currently, the following BEDTools -support inout in BAM format: *intersectBed, windowBed, coverageBed, genomeCoverageBed, -pairToBed, bamToBed*. Support for the BAM format in BEDTools allows one to (to name a few): -compare sequence alignments to annotations, refine alignment datasets, screen for potential mutations -and compute aligned sequence coverage. - -The details of how these tools work with BAM files are addressed in **Section 5** of this manual. - - ----------------------- -4.1.6 VCF format ----------------------- -The Variant Call Format (VCF) was conceived as part of the 1000 Genomes Project as a standardized -means to report genetic variation calls from SNP, INDEL and structural variant detection programs -(see http://www.1000genomes.org/wiki/doku.php?id=1000_genomes:analysis:vcf4.0 for details). -BEDTools now supports the latest version of this format (i.e, Version 4.0). As a result, BEDTools can -be used to compare genetic variation calls with other genomic features. diff --git a/docs/_build/html/_sources/content/genomecoverageBed.txt b/docs/_build/html/_sources/content/genomecoverageBed.txt deleted file mode 100644 index 3c5d69197..000000000 --- a/docs/_build/html/_sources/content/genomecoverageBed.txt +++ /dev/null @@ -1,122 +0,0 @@ -############### -5.10 genomeCoverageBed -############### -**genomeCoverageBed** computes a histogram of feature coverage (e.g., aligned sequences) for a given -genome. Optionally, by using the **-d** option, it will report the depth of coverage at *each base* on each -chromosome in the genome file (**-g**). - -========================================================================== -5.10.1 Usage and option summary -========================================================================== -Usage: -:: - genomeCoverageBed [OPTIONS] -i -g - -NOTE: genomeCoverageBed requires that the input BED file be sorted by -chromosome. A simple sort -k1,1 will suffice. - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-ibam** BAM file as input for coverage. Each BAM alignment in A added to the total coverage for the genome. Use "stdin" if passing it with a UNIX pipe: For example: - | samtools view -b | genomeCoverageBed -ibam stdin -g hg18.genome -**-d** Report the depth at each genome position. *Default behavior is to report a histogram*. -**-max** Combine all positions with a depth >= max into a single bin in the histogram. -**-bg** Report depth in BedGraph format. For details, see: http://genome.ucsc.edu/goldenPath/help/bedgraph.html -**-bga** Report depth in BedGraph format, as above (i.e., -bg). However with this option, regions with zero coverage are also reported. This allows one to quickly extract all regions of a genome with 0 coverage by applying: "grep -w 0$" to the output. -**-split** Treat "split" BAM or BED12 entries as distinct BED intervals when computing coverage. For BAM files, this uses the CIGAR "N" and "D" operations to infer the blocks for computing coverage. For BED12 files, this uses the BlockCount, BlockStarts, and BlockEnds fields (i.e., columns 10,11,12). -**-strand** Calculate coverage of intervals from a specific strand. With BED files, requires at least 6 columns (strand is column 6). -=========================== =============================================================================================================================================================================================================== - - - - -========================================================================== -5.10.2 Default behavior -========================================================================== -By default, **genomeCoverageBed** will compute a histogram of coverage for the genome file provided. -The default output format is as follows: -1. chromosome (or entire genome) -2. depth of coverage from features in input file -3. number of bases on chromosome (or genome) with depth equal to column 2. -4. size of chromosome (or entire genome) in base pairs -5. fraction of bases on chromosome (or entire genome) with depth equal to column 2. - -For example: -:: - cat A.bed - chr1 10 20 - chr1 20 30 - chr2 0 500 - - cat my.genome - chr1 1000 - chr2 500 - - genomeCoverageBed -i A.bed -g my.genome - chr1 0 980 1000 0.98 - chr1 1 20 1000 0.02 - chr2 1 500 500 1 - genome 0 980 1500 0.653333 - genome 1 520 1500 0.346667 - - - - -========================================================================== -5.10.3 (-max)Controlling the histogram's maximum depth -========================================================================== -Using the **-max** option, **genomeCoverageBed** will "lump" all positions in the genome having feature -coverage greather than or equal to **max** into the **max** histogram bin. For example, if one sets **-max** -equal to 50, the max depth reported in the output will be 50 and all positions with a depth >= 50 will -be represented in bin 50. - -========================================================================== -5.10.4 (-d)Reporting "per-base" genome coverage -========================================================================== -Using the **-d** option, **genomeCoverageBed** will compute the depth of feature coverage for each base -on each chromosome in genome file provided. - -The "per-base" output format is as follows: -1. chromosome -2. chromosome position -3. depth (number) of features overlapping this chromosome position. - -For example: -:: - cat A.bed - chr1 10 20 - chr1 20 30 - chr2 0 500 - - cat my.genome - chr1 1000 - chr2 500 - - genomeCoverageBed -i A.bed -g my.genome -d | head -15 | tail -n 10 - chr1 6 0 - chr1 7 0 - chr1 8 0 - chr1 9 0 - chr1 10 0 - chr1 11 1 - chr1 12 1 - chr1 13 1 - chr1 14 1 - chr1 15 1 - - - -========================================================================== -5.1.13 (-split)Reporting coverage with spliced alignments or blocked BED features -========================================================================== -As described in section 1.3.19, genomeCoverageBed will, by default, screen for overlaps against the -entire span of a spliced/split BAM alignment or blocked BED12 feature. When dealing with RNA-seq -reads, for example, one typically wants to only screen for overlaps for the portions of the reads that -come from exons (and ignore the interstitial intron sequence). The **-split** command allows for such -overlaps to be performed. - -For additional details, please visit the Usage From The Wild site and have a look at example 5, -contributed by Assaf Gordon. - - diff --git a/docs/_build/html/_sources/content/groupBy.txt b/docs/_build/html/_sources/content/groupBy.txt deleted file mode 100644 index 178f82827..000000000 --- a/docs/_build/html/_sources/content/groupBy.txt +++ /dev/null @@ -1,194 +0,0 @@ -############### -5.22 groupBy -############### -**groupBy** is a useful tool that mimics the "groupBy" clause in database systems. Given a file or stream -that is sorted by the appropriate "grouping columns", groupBy will compute summary statistics on -another column in the file or stream. This will work with output from all BEDTools as well as any other -tab-delimited file or stream. - -**NOTE: When using groupBy, the input data must be ordered by the same -columns as specified with the -grp argument. For example, if -grp is 1,2,3, the the -data should be pre-grouped accordingly. When groupBy detects changes in the -group columns it then summarizes all lines with that group**. - - -========================================================================== -5.22.1 Usage and option summary -========================================================================== -Usage: -:: - groupBy [OPTIONS] -i -opCol - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-i** The input file that should be grouped and summarized. *Use "stdin" when using piped input*. - **Note: if -i is omitted, input is assumed to come from standard input (stdin)** -**-g OR -grp** Specifies which column(s) (1-based) should be used to group the input. The columns must be comma-separated and each column must be explicitly listed. No ranges (e.g. 1-4) yet allowed. *Default: 1,2,3* -**-c OR -opCol** Specify the column (1-based) that should be summarized. *Required*. -**-o OR -op** Specify the operation that should be applied to **opCol**. - - | Valid operations: - - | **sum** - *numeric only* - | **count** - *numeric or text* - | **min** - *numeric only* - | **max** - *numeric only* - | **mean** - *numeric only* - | **stdev** - *numeric only* - | **median** - *numeric only* - | **mode** - *numeric or text* - | **antimode** - *numeric or text* - | **collapse** (i.e., print a comma separated list) - *numeric or text* - | **freqasc** - *print a comma separated list of values observed and the number of times they were observed. Reported in ascending order of frequency* - | **freqdesc** - *print a comma separated list of values observed and the number of times they were observed. Reported in descending order of frequency* - - | *Default: sum* -=========================== =============================================================================================================================================================================================================== - - - - - -========================================================================== -5.22.2 Default behavior. -========================================================================== -Let's imagine we have three incredibly interesting genetic variants that we are studying and we are -interested in what annotated repeats these variants overlap. -:: - cat variants.bed - chr21 9719758 9729320 variant1 - chr21 9729310 9757478 variant2 - chr21 9795588 9796685 variant3 - - intersectBed -a variants.bed -b repeats.bed -wa -wb > variantsToRepeats.bed - cat variantsToRepeats.bed - chr21 9719758 9729320 variant1 chr21 9719768 9721892 ALR/Alpha 1004 + - chr21 9719758 9729320 variant1 chr21 9721905 9725582 ALR/Alpha 1010 + - chr21 9719758 9729320 variant1 chr21 9725582 9725977 L1PA3 3288 + - chr21 9719758 9729320 variant1 chr21 9726021 9729309 ALR/Alpha 1051 + - chr21 9729310 9757478 variant2 chr21 9729320 9729809 L1PA3 3897 - - chr21 9729310 9757478 variant2 chr21 9729809 9730866 L1P1 8367 + - chr21 9729310 9757478 variant2 chr21 9730866 9734026 ALR/Alpha 1036 - - chr21 9729310 9757478 variant2 chr21 9734037 9757471 ALR/Alpha 1182 - - chr21 9795588 9796685 variant3 chr21 9795589 9795713 (GAATG)n 308 + - chr21 9795588 9796685 variant3 chr21 9795736 9795894 (GAATG)n 683 + - chr21 9795588 9796685 variant3 chr21 9795911 9796007 (GAATG)n 345 + - chr21 9795588 9796685 variant3 chr21 9796028 9796187 (GAATG)n 756 + - chr21 9795588 9796685 variant3 chr21 9796202 9796615 (GAATG)n 891 + - chr21 9795588 9796685 variant3 chr21 9796637 9796824 (GAATG)n 621 + - - -We can see that variant1 overlaps with 3 repeats, variant2 with 4 and variant3 with 6. We can use -groupBy to summarize the hits for each variant in several useful ways. The default behavior is to -compute the *sum* of the opCol. -:: - groupBy -i variantsToRepeats.bed -grp 1,2,3 -opCol 9 - chr21 9719758 9729320 6353 - chr21 9729310 9757478 14482 - chr21 9795588 9796685 3604 - - - -========================================================================== -5.22.3 Computing the min and max. -========================================================================== -Now let's find the *min* and *max* repeat score for each variant. We do this by "grouping" on the variant -coordinate columns (i.e. cols. 1,2 and 3) and ask for the min and max of the repeat score column (i.e. -col. 9). -:: - groupBy -i variantsToRepeats.bed -g 1,2,3 -c 9 -o min - chr21 9719758 9729320 1004 - chr21 9729310 9757478 1036 - chr21 9795588 9796685 308 - -We can also group on just the *name* column with similar effect. -:: - groupBy -i variantsToRepeats.bed -grp 4 -opCol 9 -op min - variant1 1004 - variant2 1036 - variant3 308 - -What about the *max* score? Let's keep the coordinates and the name of the variants so that we -stay in BED format. -:: - groupBy -i variantsToRepeats.bed -grp 1,2,3,4 -opCol 9 -op max - chr21 9719758 9729320 variant1 3288 - chr21 9729310 9757478 variant2 8367 - chr21 9795588 9796685 variant3 891 - - - -========================================================================== -5.22.4 Computing the mean and median. -========================================================================== -Now let's find the *mean* and *median* repeat score for each variant. -:: - cat variantsToRepeats.bed | groupBy -g 1,2,3,4 -c 9 -o mean - chr21 9719758 9729320 variant1 1588.25 - chr21 9729310 9757478 variant2 3620.5 - chr21 9795588 9796685 variant3 600.6667 - - groupBy -i variantsToRepeats.bed -grp 1,2,3,4 -opCol 9 -op median - chr21 9719758 9729320 variant1 1030.5 - chr21 9729310 9757478 variant2 2539.5 - chr21 9795588 9796685 variant3 652 - - -========================================================================== -5.22.5 Computing the mode and "antimode". -========================================================================== -Now let's find the *mode* and *antimode* (i.e., the least frequent) repeat score for each variant (in this case -they are identical). -:: - groupBy -i variantsToRepeats.bed -grp 1,2,3,4 -opCol 9 -op mode - chr21 9719758 9729320 variant1 1004 - chr21 9729310 9757478 variant2 1036 - chr21 9795588 9796685 variant3 308 - - groupBy -i variantsToRepeats.bed -grp 1,2,3,4 -opCol 9 -op antimode - chr21 9719758 9729320 variant1 1004 - chr21 9729310 9757478 variant2 1036 - chr21 9795588 9796685 variant3 308 - - - -========================================================================== -5.22.6 Computing the count of lines for a given group. -========================================================================== -Figure: -:: - groupBy -i variantsToRepeats.bed -g 1,2,3,4 -c 9 -c count - chr21 9719758 9729320 variant1 4 - chr21 9729310 9757478 variant2 4 - chr21 9795588 9796685 variant3 6 - - - - -========================================================================== -5.22.7 Collapsing: listing all of the values in the opCol for a given group. -========================================================================== -Now for something different. What if we wanted all of the names of the repeats listed on the same line -as the variants? Use the collapse option. This "denormalizes" things. Now you have a list of all the -repeats on a single line. -:: - groupBy -i variantsToRepeats.bed -grp 1,2,3,4 -opCol 9 -op collapse - chr21 9719758 9729320 variant1 ALR/Alpha,ALR/Alpha,L1PA3,ALR/Alpha, - chr21 9729310 9757478 variant2 L1PA3,L1P1,ALR/Alpha,ALR/Alpha, - chr21 9795588 9796685 variant3 (GAATG)n,(GAATG)n,(GAATG)n,(GAATG)n,(GAATG)n,(GAATG)n, - - - -========================================================================== -5.22.8 Computing frequencies: freqasc and freqdesc. -========================================================================== -Now for something different. What if we wanted all of the names of the repeats listed on the same line -as the variants? Use the collapse option. This "denormalizes" things. Now you have a list of all the -repeats on a single line. -:: - cat variantsToRepeats.bed | groupBy -g 1 -c 8 -o freqdesc - chr21 (GAATG)n:6,ALR/Alpha:5,L1PA3:2,L1P1:1, - - cat variantsToRepeats.bed | groupBy -g 1 -c 8 -o freqasc - chr21 L1P1:1,L1PA3:2,ALR/Alpha:5,(GAATG)n:6, \ No newline at end of file diff --git a/docs/_build/html/_sources/content/installation.txt b/docs/_build/html/_sources/content/installation.txt deleted file mode 100644 index 675cb33d4..000000000 --- a/docs/_build/html/_sources/content/installation.txt +++ /dev/null @@ -1,25 +0,0 @@ -############ -Installation -############ - -BEDTools is intended to run in a "command line" environment on UNIX, LINUX and Apple OS X -operating systems. Installing BEDTools involves downloading the latest source code archive followed by -compiling the source code into binaries on your local system. The following commands will install -BEDTools in a local directory on a NIX or OS X machine. Note that the **""** refers to the -latest posted version number on http://bedtools.googlecode.com/. - -Note: *The BEDTools "makefiles" use the GCC compiler. One should edit the Makefiles accordingly if -one wants to use a different compiler.*:: - - curl http://bedtools.googlecode.com/files/BEDTools..tar.gz > BEDTools.tar.gz - tar -zxvf BEDTools.tar.gz - cd BEDTools- - make clean - make all - ls bin - -At this point, one should copy the binaries in BEDTools/bin/ to either usr/local/bin/ or some -other repository for commonly used UNIX tools in your environment. You will typically require -administrator (e.g. "root" or "sudo") privileges to copy to usr/local/bin/. If in doubt, contact you -system administrator for help. - diff --git a/docs/_build/html/_sources/content/intersectBed.txt b/docs/_build/html/_sources/content/intersectBed.txt deleted file mode 100644 index db4632ff0..000000000 --- a/docs/_build/html/_sources/content/intersectBed.txt +++ /dev/null @@ -1,385 +0,0 @@ -######################################### -5.1 intersect -######################################### - -By far, the most common question asked of two sets of genomic features is whether or not any of the -features in the two sets "overlap" with one another. This is known as feature intersection. **bedtools intersect** -allows one to screen for overlaps between two sets of genomic features. Moreover, it allows one to have -fine control as to how the intersections are reported. **bedtools intersect** works with both BED/GFF/VCF -and BAM files as input. - -=============================== -5.1.1 Usage and option summary -=============================== -**Usage**: -:: - - bedtools intersect [OPTIONS] [-a || -abam ] -b - - intersectBed [OPTIONS] [-a || -abam ] -b - - - -=========================== ========================================================================================================================================================= -Option Description -=========================== ========================================================================================================================================================= -**-a** BED/GFF/VCF file A. Each feature in A is compared to B in search of overlaps. Use "stdin" if passing A with a UNIX pipe. -**-b** BED/GFF/VCF file B. Use "stdin" if passing B with a UNIX pipe. -**-abam** BAM file A. Each BAM alignment in A is compared to B in search of overlaps. Use "stdin" if passing A with a UNIX pipe: For example: samtools view -b | bedtools intersect -abam stdin -b genes.bed -**-ubam** Write uncompressed BAM output. The default is write compressed BAM output. -**-bed** When using BAM input (-abam), write output as BED. The default is to write output in BAM when using -abam. For example: bedtools intersect -abam reads.bam -b genes.bed -bed -**-wa** Write the original entry in A for each overlap. -**-wb** Write the original entry in B for each overlap. Useful for knowing what A overlaps. Restricted by -f and -r. -**-wo** Write the original A and B entries plus the number of base pairs of overlap between the two features. Only A features with overlap are reported. Restricted by -f and -r. -**-wao** Write the original A and B entries plus the number of base pairs of overlap between the two features. However, A features w/o overlap are also reported with a NULL B feature and overlap = 0. Restricted by -f and -r. -**-u** Write original A entry once if any overlaps found in B. In other words, just report the fact at least one overlap was found in B. Restricted by -f and -r. -**-c** For each entry in A, report the number of hits in B while restricting to -f. Reports 0 for A entries that have no overlap with B. Restricted by -f and -r. -**-v** Only report those entries in A that have no overlap in B. Restricted by -f and -r. -**-f** Minimum overlap required as a fraction of A. Default is 1E-9 (i.e. 1bp). -**-r** Require that the fraction of overlap be reciprocal for A and B. In other words, if -f is 0.90 and -r is used, this requires that B overlap at least 90% of A and that A also overlaps at least 90% of B. -**-s** Force "strandedness". That is, only report hits in B that overlap A on the same strand. By default, overlaps are reported without respect to strand. -**-split** Treat "split" BAM (i.e., having an "N" CIGAR operation) or BED12 entries as distinct BED intervals. -=========================== ========================================================================================================================================================= - - -=============================== -5.1.2 Default behavior -=============================== -By default, if an overlap is found, **bedtools intersect** reports the shared interval between the two -overlapping features. - -For example: -:: - cat A.bed - chr1 10 20 - chr1 30 40 - - cat B.bed - chr1 15 20 - - bedtools intersect -a A.bed -b B.bed - chr1 15 20 - -.. plot:: - - a = """chr1 10 20\nchr1 30 40""" - b = """chr1 15 20""" - - title = "bedtools intersect -a A.bed -b B.bed" - from matplotlib.pyplot import show - from pyplots.plotter import plot_a_b_tool - plot_a_b_tool(a, b, 'intersect', title, 'A.bed', 'B.bed') - show() - -============================================= -5.1.3 (-wa) Reporting the original A feature -============================================= -Instead, one can force **bedtools intersect** to report the *original* **"A"** feature when an overlap is found. As -shown below, the entire "A" feature is reported, not just the portion that overlaps with the "B" feature. - -For example: -:: - cat A.bed - chr1 10 20 - chr1 30 40 - - cat B.bed - chr1 15 20 - - bedtools intersect -a A.bed -b B.bed -wa - chr1 10 20 - -.. plot:: - - a = """chr1 10 20\nchr1 30 40""" - b = """chr1 15 20""" - - title = "bedtools intersect -a A.bed -b B.bed -wa" - from matplotlib.pyplot import show - from pyplots.plotter import plot_a_b_tool - plot_a_b_tool(a, b, 'intersect', title, 'A.bed', 'B.bed', wa=True) - show() - - -============================================= -5.1.4 (-wb) Reporting the original B feature -============================================= -Similarly, one can force **bedtools intersect** to report the *original* **"B"** feature when an overlap is found. If -just -wb is used, the overlapping portion of A will be reported followed by the *original* **"B"**. If both -wa -and -wb are used, the *originals* of both **"A"** and **"B"** will be reported. - -For example (-wb alone): -:: -For example: -:: - cat A.bed - chr1 10 20 - chr1 30 40 - - cat B.bed - chr1 15 20 - - bedtools intersect -a A.bed -b B.bed -wb - chr1 15 20 chr 15 20 - - -Now -wa and -wb: -:: - cat A.bed - chr1 10 20 - chr1 30 40 - - cat B.bed - chr1 15 20 - - bedtools intersect -a A.bed -b B.bed -wa -wb - chr1 10 20 chr 15 20 - -======================================================================= -5.1.5 (-u) Reporting the presence of *at least one* overlapping feature -======================================================================= -Frequently a feature in "A" will overlap with multiple features in "B". By default, **bedtools intersect** will -report each overlap as a separate output line. However, one may want to simply know that there is at -least one overlap (or none). When one uses the -u option, "A" features that overlap with one or more -"B" features are reported once. Those that overlap with no "B" features are not reported at all. - - -For example (*without* -u): -:: - cat A.bed - chr1 10 20 - chr1 30 40 - - cat B.bed - chr1 15 20 - chr1 18 25 - - bedtools intersect -a A.bed -b B.bed -wb - chr1 10 20 chr 15 20 - chr1 10 20 chr 18 25 - -For example (*with* -u): -:: - cat A.bed - chr1 10 20 - chr1 30 40 - - cat B.bed - chr1 15 20 - chr1 18 25 - - bedtools intersect -a A.bed -b B.bed -u - chr1 10 20 - -======================================================================= -5.1.6 (-c) Reporting the number of overlapping features -======================================================================= -The -c option reports a column after each "A" feature indicating the *number* (0 or more) of overlapping -features found in "B". Therefore, *each feature in A is reported once*. - -For example: -:: - cat A.bed - chr1 10 20 - chr1 30 40 - - cat B.bed - chr1 15 20 - chr1 18 25 - - bedtools intersect -a A.bed -b B.bed -u - chr1 10 20 2 - chr1 30 40 0 - - -======================================================================= -5.1.7 (-v) Reporting the absence of any overlapping features -======================================================================= -There will likely be cases where you'd like to know which "A" features do not overlap with any of the -"B" features. Perhaps you'd like to know which SNPs don't overlap with any gene annotations. The -v -(an homage to "grep -v") option will only report those "A" features that have no overlaps in "B". - -For example: -:: - cat A.bed - chr1 10 20 - chr1 30 40 - - cat B.bed - chr1 15 20 - - bedtools intersect -a A.bed -b B.bed -v - chr1 30 40 - -.. plot:: - - a = """chr1 10 20\nchr1 30 40""" - b = """chr1 15 20""" - - title = "bedtools intersect -a A -b B -v" - from matplotlib.pyplot import show - from pyplots.plotter import plot_a_b_tool - plot_a_b_tool(a, b, 'intersect', title, 'A.bed', 'B.bed', v=True) - show() - - -======================================================================= -5.1.8 (-f) Requiring a minimal overlap fraction -======================================================================= -By default, **bedtools intersect** will report an overlap between A and B so long as there is at least one base -pair is overlapping. Yet sometimes you may want to restrict reported overlaps between A and B to cases -where the feature in B overlaps at least X% (e.g. 50%) of the A feature. The -f option does exactly -this. - -For example (note that the second B entry is not reported): -:: - cat A.bed - chr1 100 200 - - cat B.bed - chr1 130 201 - chr1 180 220 - - bedtools intersect -a A.bed -b B.bed -f 0.50 -wa -wb - chr1 100 200 chr1 130 201 - -========================================================================== -5.1.9 (-r, combined with -f)Requiring reciprocal minimal overlap fraction -========================================================================== -Similarly, you may want to require that a minimal fraction of both the A and the B features is -overlapped. For example, if feature A is 1kb and feature B is 1Mb, you might not want to report the -overlap as feature A can overlap at most 1% of feature B. If one set -f to say, 0.02, and one also -enable the -r (reciprocal overlap fraction required), this overlap would not be reported. - -For example (note that the second B entry is not reported): -:: - cat A.bed - chr1 100 200 - - cat B.bed - chr1 130 201 - chr1 130 200000 - - bedtools intersect -a A.bed -b B.bed -f 0.50 -r -wa -wb - chr1 100 200 chr1 130 201 - -========================================================================== -5.1.10 (-s)Enforcing "strandedness" -========================================================================== -By default, **bedtools intersect** will report overlaps between features even if the features are on opposite -strands. However, if strand information is present in both BED files and the "-s" option is used, overlaps -will only be reported when features are on the same strand. - -For example (note that the second B entry is not reported): -:: - cat A.bed - chr1 100 200 a1 100 + - - cat B.bed - chr1 130 201 b1 100 - - chr1 130 201 b2 100 + - - bedtools intersect -a A.bed -b B.bed -wa -wb -s - chr1 100 200 a1 100 + chr1 130 201 b2 100 + - - -========================================================================== -5.1.11 (-abam)Default behavior when using BAM input -========================================================================== -When comparing alignments in BAM format (**-abam**) to features in BED format (**-b**), **bedtools intersect** -will, **by default**, write the output in BAM format. That is, each alignment in the BAM file that meets -the user's criteria will be written (to standard output) in BAM format. This serves as a mechanism to -create subsets of BAM alignments are of biological interest, etc. Note that only the mate in the BAM -alignment is compared to the BED file. Thus, if only one end of a paired-end sequence overlaps with a -feature in B, then that end will be written to the BAM output. By contrast, the other mate for the -pair will not be written. One should use **pairToBed(Section 5.2)** if one wants each BAM alignment -for a pair to be written to BAM output. - -For example: -:: - bedtools intersect -abam reads.unsorted.bam -b simreps.bed | samtools view - | head -3 - - BERTHA_0001:3:1:15:1362#0 99 chr4 9236904 0 50M = 9242033 5 1 7 9 - AGACGTTAACTTTACACACCTCTGCCAAGGTCCTCATCCTTGTATTGAAG W c T U ] b \ g c e g X g f c b f c c b d d g g V Y P W W _ - \c`dcdabdfW^a^gggfgd XT:A:R NM:i:0 SM:i:0 AM:i:0 X0:i:19 X1:i:2 XM:i:0 XO:i:0 XG:i:0 MD:Z:50 - BERTHA _0001:3:1:16:994#0 83 chr6 114221672 37 25S6M1I11M7S = - 114216196 -5493 G A A A G G C C A G A G T A T A G A A T A A A C A C A A C A A T G T C C A A G G T A C A C T G T T A - gffeaaddddggggggedgcgeggdegggggffcgggggggegdfggfgf XT:A:M NM:i:3 SM:i:37 AM:i:37 XM:i:2 X O : i : - 1 XG:i:1 MD:Z:6A6T3 - BERTHA _0001:3:1:16:594#0 147 chr8 43835330 0 50M = - 43830893 -4487 CTTTGGGAGGGCTTTGTAGCCTATCTGGAAAAAGGAAATATCTTCCCATG U - \e^bgeTdg_Kgcg`ggeggg_gggggggggddgdggVg\gWdfgfgff XT:A:R NM:i:2 SM:i:0 AM:i:0 X0:i:10 X1:i:7 X M : i : - 2 XO:i:0 XG:i:0 MD:Z:1A2T45 - - -========================================================================== -5.1.12 (-bed)Output BED format when using BAM input -========================================================================== -When comparing alignments in BAM format (**-abam**) to features in BED format (**-b**), **bedtools intersect** -will **optionally** write the output in BED format. That is, each alignment in the BAM file is converted -to a 6 column BED feature and if overlaps are found (or not) based on the user's criteria, the BAM -alignment will be reported in BED format. The BED "name" field is comprised of the RNAME field in -the BAM alignment. If mate information is available, the mate (e.g., "/1" or "/2") field will be -appended to the name. The "score" field is the mapping quality score from the BAM alignment. - -For example: -:: - bedtools intersect -abam reads.unsorted.bam -b simreps.bed -bed | head -20 - - chr4 9236903 9236953 BERTHA_0001:3:1:15:1362#0/1 0 + - chr6 114221671 114221721 BERTHA_0001:3:1:16:994#0/1 37 - - chr8 43835329 43835379 BERTHA_0001:3:1:16:594#0/2 0 - - chr4 49110668 49110718 BERTHA_0001:3:1:31:487#0/1 23 + - chr19 27732052 27732102 BERTHA_0001:3:1:32:890#0/2 46 + - chr19 27732012 27732062 BERTHA_0001:3:1:45:1135#0/1 37 + - chr10 117494252 117494302 BERTHA_0001:3:1:68:627#0/1 37 - - chr19 27731966 27732016 BERTHA_0001:3:1:83:931#0/2 9 + - chr8 48660075 48660125 BERTHA_0001:3:1:86:608#0/2 37 - - chr9 34986400 34986450 BERTHA_0001:3:1:113:183#0/2 37 - - chr10 42372771 42372821 BERTHA_0001:3:1:128:1932#0/1 3 - - chr19 27731954 27732004 BERTHA_0001:3:1:130:1402#0/2 0 + - chr10 42357337 42357387 BERTHA_0001:3:1:137:868#0/2 9 + - chr1 159720631 159720681 BERTHA_0001:3:1:147:380#0/2 37 - - chrX 58230155 58230205 BERTHA_0001:3:1:151:656#0/2 37 - - chr5 142612746 142612796 BERTHA_0001:3:1:152:1893#0/1 37 - - chr9 71795659 71795709 BERTHA_0001:3:1:177:387#0/1 37 + - chr1 106240854 106240904 BERTHA_0001:3:1:194:928#0/1 37 - - chr4 74128456 74128506 BERTHA_0001:3:1:221:724#0/1 37 - - chr8 42606164 42606214 BERTHA_0001:3:1:244:962#0/1 37 + - -================================================================================== -5.1.13 (-split)Reporting overlaps with spliced alignments or blocked BED features -================================================================================== -As described in section 1.3.19, bedtools intersect will, by default, screen for overlaps against the entire span -of a spliced/split BAM alignment or blocked BED12 feature. When dealing with RNA-seq reads, for -example, one typically wants to only screen for overlaps for the portions of the reads that come from -exons (and ignore the interstitial intron sequence). The **-split** command allows for such overlaps to be -performed. - -For example, the diagram below illustrates the *default* behavior. The blue dots represent the "split/ -spliced" portion of the alignment (i.e., CIGAR "N" operation). In this case, the two exon annotations -are reported as overlapping with the "split" BAM alignment, but in addition, a third feature that -overlaps the "split" portion of the alignment is also reported. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Exons --------------- ---------- - - BED/BAM A ************.......................................**** - - BED File B ^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ - - Result =============== ======== ========== - - -In contrast, when using the **-split** option, only the exon overlaps are reported. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Exons --------------- ---------- - - BED/BAM A ************.......................................**** - - BED File B ^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ - - Result =============== ========== \ No newline at end of file diff --git a/docs/_build/html/_sources/content/linksBed.txt b/docs/_build/html/_sources/content/linksBed.txt deleted file mode 100644 index ca32e8b28..000000000 --- a/docs/_build/html/_sources/content/linksBed.txt +++ /dev/null @@ -1,74 +0,0 @@ -############### -5.16 linksBed -############### -Creates an HTML file with links to an instance of the UCSC Genome Browser for all features / -intervals in a file. This is useful for cases when one wants to manually inspect through a large set of -annotations or features. - -========================================================================== -5.16.1 Usage and option summary -========================================================================== -Usage: -:: - linksBed [OPTIONS] -i > - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-base** The "basename" for the UCSC browser. *Default: http://genome.ucsc.edu* -**-org** The organism (e.g. mouse, human). *Default: human* -**-db** The genome build. *Default: hg18* -=========================== =============================================================================================================================================================================================================== - - - - -========================================================================== -5.16.2 Default behavior -========================================================================== -By default, **linksBed** creates links to the public UCSC Genome Browser. - -For example: -:: - head genes.bed - chr21 9928613 10012791 uc002yip.1 0 - - chr21 9928613 10012791 uc002yiq.1 0 - - chr21 9928613 10012791 uc002yir.1 0 - - chr21 9928613 10012791 uc010gkv.1 0 - - chr21 9928613 10061300 uc002yis.1 0 - - chr21 10042683 10120796 uc002yit.1 0 - - chr21 10042683 10120808 uc002yiu.1 0 - - chr21 10079666 10120808 uc002yiv.1 0 - - chr21 10080031 10081687 uc002yiw.1 0 - - chr21 10081660 10120796 uc002yix.2 0 - - - linksBed -i genes.bed > genes.html - -When genes.html is opened in a web browser, one should see something like the following, where each -link on the page is built from the features in genes.bed: - - - - - -========================================================================== -5.16.3 Creating HTML links to a local UCSC Browser installation -========================================================================== -Optionally, **linksBed** will create links to a local copy of the UCSC Genome Browser. - -For example: -:: - head -3 genes.bed - chr21 9928613 10012791 uc002yip.1 0 - - chr21 9928613 10012791 uc002yiq.1 0 - - - linksBed -i genes.bed -base http://mirror.uni.edu > genes.html - -One can point the links to the appropriate organism and genome build as well: -:: - head -3 genes.bed - chr21 9928613 10012791 uc002yip.1 0 - - chr21 9928613 10012791 uc002yiq.1 0 - - - linksBed -i genes.bed -base http://mirror.uni.edu -org mouse -db mm9 > genes.html - diff --git a/docs/_build/html/_sources/content/maskfastafromBed.txt b/docs/_build/html/_sources/content/maskfastafromBed.txt deleted file mode 100644 index 1a8530e00..000000000 --- a/docs/_build/html/_sources/content/maskfastafromBed.txt +++ /dev/null @@ -1,70 +0,0 @@ -############### -5.12 maskFastaFromBed -############### -**maskFastaFromBed** masks sequences in a FASTA file based on intervals defined in a feature file. The -headers in the input FASTA file must exactly match the chromosome column in the feature file. This -may be useful fro creating your own masked genome file based on custom annotations or for masking all -but your target regions when aligning sequence data from a targeted capture experiment. - - -========================================================================== -5.12.1 Usage and option summary -========================================================================== -Usage: -:: - maskFastaFromBed [OPTIONS] -fi -bed -fo - -NOTE: The input and output FASTA files must be different. - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-soft** Soft-mask (that is, convert to lower-case bases) the FASTA sequence. *By default, hard-masking (that is, conversion to Ns) is performed*. -=========================== =============================================================================================================================================================================================================== - - - - - - -========================================================================== -5.12.2 Default behavior -========================================================================== -**maskFastaFromBed** will mask a FASTA file based on the intervals in a BED file. The newly masked -FASTA file is written to the output FASTA file. - -For example: -:: - cat test.fa - >chr1 - AAAAAAAACCCCCCCCCCCCCGCTACTGGGGGGGGGGGGGGGGGG - - cat test.bed - chr1 5 10 - - maskFastaFromBed -fi test.fa -bed test.bed -fo test.fa.out - - cat test.fa.out - >chr1 - AAAAANNNNNCCCCCCCCCCGCTACTGGGGGGGGGGGGGGGGGG - - -========================================================================== -5.12.3 Soft-masking the FASTA file. -========================================================================== -Using the **-soft** option, one can optionally "soft-mask" the FASTA file. - -For example: -:: - cat test.fa - >chr1 - AAAAAAAACCCCCCCCCCCCCGCTACTGGGGGGGGGGGGGGGGGG - - cat test.bed - chr1 5 10 - - maskFastaFromBed -fi test.fa -bed test.bed -fo test.fa.out -soft - - cat test.fa.out - >chr1 - AAAAAaaaccCCCCCCCCCCGCTACTGGGGGGGGGGGGGGGGGG diff --git a/docs/_build/html/_sources/content/mergeBed.txt b/docs/_build/html/_sources/content/mergeBed.txt deleted file mode 100644 index 16f73cc00..000000000 --- a/docs/_build/html/_sources/content/mergeBed.txt +++ /dev/null @@ -1,120 +0,0 @@ -############### -5.8 mergeBed -############### -**mergeBed** combines overlapping or "book-ended" (that is, one base pair away) features in a feature file -into a single feature which spans all of the combined features. - -========================================================================== -5.8.1 Usage and option summary -========================================================================== -Usage: -:: - mergeBed [OPTIONS] -i - -=========================== =============================================================================================================================================================================================================== -Option Description -=========================== =============================================================================================================================================================================================================== -**-s** Force strandedness. That is, only merge features that are the same strand. *By default, this is disabled*. -**-n** Report the number of BED entries that were merged. *1 is reported if no merging occurred*. -**-d** Maximum distance between features allowed for features to be merged. *Default is 0. That is, overlapping and/or book-ended features are merged*. -**-nms** Report the names of the merged features separated by semicolons. -=========================== =============================================================================================================================================================================================================== - - - - - -========================================================================== -5.8.2 Default behavior -========================================================================== -Figure: -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BED FILE ************* *************** ********************** - ******** - - Result =============================== ====================== - - - -For example: -:: - cat A.bed - chr1 100 200 - chr1 180 250 - chr1 250 500 - chr1 501 1000 - - mergeBed -i A.bed - chr1 100 500 - chr1 501 1000 - - - - - - -========================================================================== -5.8.3 (-s)Enforcing "strandedness" -========================================================================== -This option behaves the same as the -s option for intersectBed while scanning for features that should -be merged. Only features on the same strand will be merged. See the discussion in the intersectBed -section for details. - -========================================================================== -5.8.4 (-n)Reporting the number of features that were merged -========================================================================== -The -n option will report the number of features that were combined from the original file in order to -make the newly merged feature. If a feature in the original file was not merged with any other features, -a "1" is reported. - -For example: -:: - cat A.bed - chr1 100 200 - chr1 180 250 - chr1 250 500 - chr1 501 1000 - - mergeBed -i A.bed -n - chr1 100 500 3 - chr1 501 1000 1 - - -========================================================================== -5.8.5 (-d)Controlling how close two features must be in order to merge -========================================================================== -By default, only overlapping or book-ended features are combined into a new feature. However, one can -force mergeBed to combine more distant features with the -d option. For example, were one to set -d to -1000, any features that overlap or are within 1000 base pairs of one another will be combined. - -For example: -:: - cat A.bed - chr1 100 200 - chr1 501 1000 - - mergeBed -i A.bed - chr1 100 200 - chr1 501 1000 - - mergeBed -i A.bed -d 1000 - chr1 100 200 1000 - -========================================================================== -5.8.6 (-nms)Reporting the names of the features that were merged -========================================================================== -Occasionally, one might like to know that names of the features that were merged into a new feature. -The -nms option will add an extra column to the mergeBed output which lists (separated by -semicolons) the names of the merged features. - -For example: -:: - cat A.bed - chr1 100 200 A1 - chr1 150 300 A2 - chr1 250 500 A3 - - mergeBed -i A.bed -nms - chr1 100 500 A1;A2;A3 diff --git a/docs/_build/html/_sources/content/overlap.txt b/docs/_build/html/_sources/content/overlap.txt deleted file mode 100644 index 418c4c8a1..000000000 --- a/docs/_build/html/_sources/content/overlap.txt +++ /dev/null @@ -1,41 +0,0 @@ -############### -5.19 overlap -############### -**overlap** computes the amount of overlap (in the case of positive values) or distance (in the case of -negative values) between feature coordinates occurring on the same input line and reports the result at -the end of the same line. In this way, it is a useful method for computing custom overlap scores from -the output of other BEDTools. - -========================================================================== -5.19.1 Usage and option summary -========================================================================== -Usage: -:: - overlap [OPTIONS] -i -cols s1,e1,s2,e2 - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-i** Input file. Use "stdin" for pipes. -**-cols** Specify the columns (1-based) for the starts and ends of the features for which you'd like to compute the overlap/distance. The columns must be listed in the following order: *start1,end1,start2,end2* -=========================== =============================================================================================================================================================================================================== - - - -========================================================================== -5.19.2 Default behavior -========================================================================== -The default behavior is to compute the amount of overlap between the features you specify based on the -start and end coordinates. For example: -:: - windowBed -a A.bed -b B.bed -w 10 - chr1 10 20 A chr1 15 25 B - chr1 10 20 C chr1 25 35 D - -# Now let's say we want to compute the number of base pairs of overlap -# between the overlapping features from the output of windowBed. -:: - windowBed -a A.bed -b B.bed -w 10 | overlap -i stdin -cols 2,3,6,7 - chr1 10 20 A chr1 15 25 B 5 - chr1 10 20 C chr1 25 35 D -5 - diff --git a/docs/_build/html/_sources/content/overview.txt b/docs/_build/html/_sources/content/overview.txt deleted file mode 100644 index a836365ee..000000000 --- a/docs/_build/html/_sources/content/overview.txt +++ /dev/null @@ -1,348 +0,0 @@ -.. role:: red - -############ -Overview -############ - -========== -1.1 Background -========== - -The development of BEDTools was motivated by a need for fast, flexible tools with which to compare large sets of genomic -features. Answering fundamental research questions with existing tools was either too slow or required modifications to the -way they reported or computed their results. We were aware of the utilities on the UCSC Genome Browser and Galaxy websites, as -well as the elegant tools available as part of Jim Kent’s monolithic suite of tools (“Kent sourceâ€). However, we found that -the web-based tools were too cumbersome when working with large datasets generated by current sequencing technologies. -Similarly, we found that the Kent source command line tools often required a local installation of the UCSC Genome Browser. -These limitations, combined with the fact that we often wanted an extra option here or there that wasn’t available with -existing tools, led us to develop our own from scratch. The initial version of BEDTools was publicly released in the spring of -2009. The current version has evolved from our research experiences and those of the scientists using the suite over the last -year. The BEDTools suite enables one to answer common questions of genomic data in a fast and reliable manner. The fact that -almost all the utilities accept input from “stdin†allows one to “stream / pipe†several commands together to facilitate more -complicated analyses. Also, the tools allow fine control over how output is reported. The initial version of BEDTools -supported solely 6-column `BED `_ files. *However, we have subsequently added support for sequence alignments in* `BAM `_ -*format, as well as for features in* `GFF `_ , *“blocked†BED format, and* -`VCF `_ *format*. -The tools are quite fast and typically finish in a matter of a few seconds, even for large datasets. This manual seeks to describe the behavior and -available functionality for each BEDTool. Usage examples are scattered throughout the text, and formal examples are -provided in the last two sections, we hope that this document will give you a sense of the flexibility of -the toolkit and the types of analyses that are possible with BEDTools. If you have further questions, please join the BEDTools -discussion group, visit the Usage Examples on the Google Code site (usage, advanced usage), or take a look at the nascent -“Usage From the Wild†page. - -=========================== -1.2 Summary of available tools. -=========================== - -BEDTools support a wide range of operations for interrogating and manipulating genomic features. The table below summarizes -the tools available in the suite. - -=========================== ========================================================================================================================================================= -Utility Description -=========================== ========================================================================================================================================================= -**intersectBed** Returns overlaps between two BED/GFF/VCF files. -**pairToBed** Returns overlaps between a paired-end BED file and a regular BED/VCF/GFF file. -**bamToBed** Converts BAM alignments to BED6, BED12, or BEDPE format. -**bedToBam** Converts BED/GFF/VCF features to BAM format. -**bed12ToBed6** Converts "blocked" BED12 features to discrete BED6 features. -**bedToIgv** Creates IGV batch scripts for taking multiple snapshots from BED/GFF/VCF features. -**coverageBed** Summarizes the depth and breadth of coverage of features in one BED versus features (e.g, windows, exons, etc.) defined in another BED/GFF/VCF file. -**multiBamCov** Counts sequence coverage for multiple position-sorted bams at specific loci defined in a BED/GFF/VCF file -**tagBam** Annotates a BAM file with custom tag fields based on overlaps with BED/GFF/VCF files -**nuclBed** Profiles the nucleotide content of intervals in a fasta file -**genomeCoverageBed** Creates either a histogram, BEDGRAPH, or a "per base" report of genome coverage. -**unionBedGraphs** Combines multiple BedGraph? files into a single file, allowing coverage/other comparisons between them. -**annotateBed** Annotates one BED/VCF/GFF file with overlaps from many others. -**groupBy** Deprecated. Now in the filo package. -**overlap** Returns the number of bases pairs of overlap b/w two features on the same line. -**pairToPair** Returns overlaps between two paired-end BED files. -**closestBed** Returns the closest feature to each entry in a BED/GFF/VCF file. -**subtractBed** Removes the portion of an interval that is overlapped by another feature. -**windowBed** Returns overlaps between two BED/VCF/GFF files based on a user-defined window. -**mergeBed** Merges overlapping features into a single feature. -**complementBed** Returns all intervals not spanned by the features in a BED/GFF/VCF file. -**fastaFromBed** Creates FASTA sequences based on intervals in a BED/GFF/VCF file. -**maskFastaFromBed** Masks a FASTA file based on BED coordinates. -**shuffleBed** Randomly permutes the locations of a BED file among a genome. -**slopBed** Adjusts each BED entry by a requested number of base pairs. -**flankBed** Creates flanking intervals for each feature in a BED/GFF/VCF file. -**sortBed** Sorts a BED file by chrom, then start position. Other ways as well. -**linksBed** Creates an HTML file of links to the UCSC or a custom browser. -=========================== ========================================================================================================================================================= - - - - - - -=========================== -1.3 Fundamental concepts. -=========================== ------------------------------------------------------- -1.3.1 What are genome features and how are they represented? ------------------------------------------------------- -Throughout this manual, we will discuss how to use BEDTools to manipulate, compare and ask questions of genome “featuresâ€. Genome features can be functional elements (e.g., genes), genetic polymorphisms (e.g. -SNPs, INDELs, or structural variants), or other annotations that have been discovered or curated by genome sequencing groups or genome browser groups. In addition, genome features can be custom annotations that -an individual lab or researcher defines (e.g., my novel gene or variant). - -The basic characteristics of a genome feature are the chromosome or scaffold on which the feature “residesâ€, the base pair on which the -feature starts (i.e. the “startâ€), the base pair on which feature ends (i.e. the “endâ€), the strand on which the feature exists (i.e. “+†or “-“), and the name of the feature if one is applicable. - -The two most widely used formats for representing genome features are the BED (Browser Extensible Data) and GFF (General Feature Format) formats. BEDTools was originally written to work exclusively with genome features -described using the BED format, but it has been recently extended to seamlessly work with BED, GFF and VCF files. - -Existing annotations for the genomes of many species can be easily downloaded in BED and GFF -format from the UCSC Genome Browser’s “Table Browser†(http://genome.ucsc.edu/cgi-bin/hgTables?command=start) or from the “Bulk Downloads†page (http://hgdownload.cse.ucsc.edu/downloads.html). In addition, the -Ensemble Genome Browser contains annotations in GFF/GTF format for many species (http://www.ensembl.org/info/data/ftp/index.html) - -------------------------------------- -1.3.2 Overlapping / intersecting features. -------------------------------------- -Two genome features (henceforth referred to as “featuresâ€) are said to overlap or intersect if they share at least one base in common. -In the figure below, Feature A intersects/overlaps Feature B, but it does not intersect/overlap Feature C. - -**TODO: place figure here** - --------------------------------------------- -1.3.3 Comparing features in file “A†and file “Bâ€. --------------------------------------------- -The previous section briefly introduced a fundamental naming convention used in BEDTools. Specifically, all BEDTools that compare features contained in two distinct files refer to one file as feature set “A†and the other file as feature set “Bâ€. This is mainly in the interest of brevity, but it also has its roots in set theory. -As an example, if one wanted to look for SNPs (file A) that overlap with exons (file B), one would use intersectBed in the following manner:: - - intersectBed –a snps.bed –b exons.bed - -There are two exceptions to this rule: 1) When the “A†file is in BAM format, the “-abam†option must bed used. For example:: - - intersectBed –abam alignedReads.bam –b exons.bed - -And 2) For tools where only one input feature file is needed, the “-i†option is used. For example:: - - mergeBed –i repeats.bed - ------------------------------------------------------ -1.3.4 BED starts are zero-based and BED ends are one-based. ------------------------------------------------------ -BEDTools users are sometimes confused by the way the start and end of BED features are represented. Specifically, BEDTools uses the UCSC Genome Browser’s internal database convention of making the start position 0-based and the end position 1-based: (http://genome.ucsc.edu/FAQ/FAQtracks#tracks1) -In other words, BEDTools interprets the “start†column as being 1 basepair higher than what is represented in the file. For example, the following BED feature represents a single base on chromosome 1; namely, the 1st base:: - - chr1 0 1 first_base - -Why, you might ask? The advantage of storing features this way is that when computing the length of a feature, one must simply subtract the start from the end. Were the start position 1-based, -the calculation would be (slightly) more complex (i.e. (end-start)+1). Thus, storing BED features this way reduces the computational burden. - ------------------------------------------------------ -1.3.5 GFF starts and ends are one-based. ------------------------------------------------------ -In contrast, the GFF format uses 1-based coordinates for both the start and the end positions. BEDTools is aware of this and adjusts the positions accordingly. -In other words, you don’t need to subtract 1 from the start positions of your GFF features for them to work correctly with BEDTools. - ------------------------------------------------------ -1.3.6 VCF coordinates are one-based. ------------------------------------------------------ -The VCF format uses 1-based coordinates. As in GFF, BEDTools is aware of this and adjusts the positions accordingly. -In other words, you don’t need to subtract 1 from the start positions of your VCF features for them to work correctly with BEDTools. - ------------------------------------------------------ -1.3.7 File B is loaded into memory (most of the time). ------------------------------------------------------ -Whenever a BEDTool compares two files of features, the “B†file is loaded into memory. By contrast, the “A†file is processed line by line and compared with the features from B. -Therefore to minimize memory usage, one should set the smaller of the two files as the B file. One salient example is the comparison of aligned sequence reads from a -current DNA sequencer to gene annotations. In this case, the aligned sequence file (in BED format) may have tens of millions of features (the sequence alignments), -while the gene annotation file will have tens of thousands of features. In this case, it is wise to sets the reads as file A and the genes as file B. - ------------------------------------------------------ -1.3.8 Feature files *must* be tab-delimited. ------------------------------------------------------ -This is rather self-explanatory. While it is possible to allow BED files to be space-delimited, we have decided to require tab delimiters for three reasons: - -1. By requiring one delimiter type, the processing time is minimized. -2. Tab-delimited files are more amenable to other UNIX utilities. -3. GFF files can contain spaces within attribute columns. This complicates the use of space-delimited files as spaces must therefore be treated specially depending on the context. - -------------------------------------------------------------- -1.3.9 All BEDTools allow features to be “piped†via standard input. -------------------------------------------------------------- - -In an effort to allow one to combine multiple BEDTools and other UNIX utilities into more complicated “pipelinesâ€, all BEDTools allow features -to be passed to them via standard input. Only one feature file may be passed to a BEDTool via standard input. -The convention used by all BEDTools is to set either file A or file B to “stdin†or "-". For example:: - - cat snps.bed | intersectBed –a stdin –b exons.bed - cat snps.bed | intersectBed –a - –b exons.bed - -In addition, all BEDTools that simply require one main input file (the -i file) will assume that input is -coming from standard input if the -i parameter is ignored. For example, the following are equivalent:: - - cat snps.bed | sortBed –i stdin - cat snps.bed | sortBed - ------------------------------------------------------- -1.3.10 Most BEDTools write their results to standard output. ------------------------------------------------------- -To allow one to combine multiple BEDTools and other UNIX utilities into more complicated “pipelinesâ€, -most BEDTools report their output to standard output, rather than to a named file. If one wants to write the output to a named file, one can use the UNIX “file redirection†symbol “>†to do so. -Writing to standard output (the default):: - - intersectBed –a snps.bed –b exons.bed - chr1 100100 100101 rs233454 - chr1 200100 200101 rs446788 - chr1 300100 300101 rs645678 - -Writing to a file:: - - intersectBed –a snps.bed –b exons.bed > snps.in.exons.bed - - cat snps.in.exons.bed - chr1 100100 100101 rs233454 - chr1 200100 200101 rs446788 - chr1 300100 300101 rs645678 - ------------------------- -1.3.11 What is a “genome†file? ------------------------- -Some of the BEDTools (e.g., genomeCoverageBed, complementBed, slopBed) need to know the size of -the chromosomes for the organism for which your BED files are based. When using the UCSC Genome -Browser, Ensemble, or Galaxy, you typically indicate which species / genome build you are working. -The way you do this for BEDTools is to create a “genome†file, which simply lists the names of the -chromosomes (or scaffolds, etc.) and their size (in basepairs). -Genome files must be tab-delimited and are structured as follows (this is an example for C. elegans):: - - chrI 15072421 - chrII 15279323 - ... - chrX 17718854 - chrM 13794 - -BEDTools includes predefined genome files for human and mouse in the /genomes directory included -in the BEDTools distribution. Additionally, the “chromInfo†files/tables available from the UCSC -Genome Browser website are acceptable. For example, one can download the hg19 chromInfo file here: -http://hgdownload.cse.ucsc.edu/goldenPath/hg19/database/chromInfo.txt.gz - ------------------------------------- -1.3.12 Paired-end BED files (BEDPE files). ------------------------------------- -We have defined a new file format (BEDPE) to concisely describe disjoint genome features, such as -structural variations or paired-end sequence alignments. We chose to define a new format because the -existing BED block format (i.e. BED12) does not allow inter-chromosomal feature definitions. Moreover, -the BED12 format feels rather bloated when one want to describe events with only two blocks. - ------------------------------------------- -1.3.13 Use “-h†for help with any BEDTool. ------------------------------------------- -Rather straightforward. If you use the “-h†option with any BEDTool, a full menu of example usage -and available options (when applicable) will be reported. - --------------------------------------------------- -1.3.14 BED features must not contain negative positions. --------------------------------------------------- -BEDTools will typically reject BED features that contain negative positions. In special cases, however, -BEDPE positions may be set to -1 to indicate that one or more ends of a BEDPE feature is unaligned. - ---------------------------------------------------- -1.3.15 The start position must be <= to the end position. ---------------------------------------------------- -BEDTools will reject BED features where the start position is greater than the end position. - ------------------------------------------ -1.3.16 Headers are allowed in GFF and BED files ------------------------------------------ -BEDTools will ignore headers at the beginning of BED and GFF files. Valid header lines begin with a -“#†symbol, the work “trackâ€, or the word “browserâ€. For example, the following examples are valid -headers for BED or GFF files:: - - track name=aligned_read description="Illumina aligned reads†- chr5 100000 500000 read1 50 + - chr5 2380000 2386000 read2 60 - - - #This is a fascinating dataset - chr5 100000 500000 read1 50 + - chr5 2380000 2386000 read2 60 - - - browser position chr22:1-20000 - chr5 100000 500000 read1 50 + - chr5 2380000 2386000 read2 60 - - -------------------------------------------------------------- -1.3.17 GZIP support: BED, GFF, VCF, and BEDPE file can be “gzipped†-------------------------------------------------------------- -BEDTools will process gzipped BED, GFF, VCF and BEDPE files in the same manner as -uncompressed files. Gzipped files are auto-detected thanks to a helpful contribution from Gordon -Assaf. - ----------------------------------------------------------------------------- -1.3.18 Support for “split†or “spliced†BAM alignments and “blocked†BED features ----------------------------------------------------------------------------- -As of Version 2.8.0, five BEDTools (``intersectBed``, ``coverageBed``, ``genomeCoverageBed``, -``bamToBed``, and ``bed12ToBed6``) can properly handle “splitâ€/â€spliced†BAM alignments (i.e., having an -“N†CIGAR operation) and/or “blocked†BED (aka BED12) features. - -``intersectBed``, ``coverageBed``, and ``genomeCoverageBed`` will optionally handle “split†BAM and/or -“blocked†BED by using the ``-split`` option. This will cause intersects or coverage to be computed only -for the alignment or feature blocks. In contrast, without this option, the intersects/coverage would be -computed for the entire “span†of the alignment or feature, regardless of the size of the gaps between -each alignment or feature block. For example, imagine you have a RNA-seq read that originates from -the junction of two exons that were spliced together in a mRNA. In the genome, these two exons -happen to be 30Kb apart. Thus, when the read is aligned to the reference genome, one portion of the -read will align to the first exon, while another portion of the read will align ca. 30Kb downstream to the -other exon. The corresponding CIGAR string would be something like (assuming a 76bp read): -30M*3000N*46M. In the genome, this alignment “spans†3076 bp, yet the nucleotides in the sequencing -read only align “cover†76bp. Without the ``-split`` option, coverage or overlaps would be reported for the -entire 3076bp span of the alignment. However, with the ``-split`` option, coverage or overlaps will only -be reported for the portions of the read that overlap the exons (i.e. 30bp on one exon, and -46bp on the other). - - -Using the -split option with bamToBed causes “spliced/split†alignments to be reported in BED12 -format. Using the -split option with bed12ToBed6 causes “blocked†BED12 features to be reported in -BED6 format. - --------------------------------- -1.3.19 Writing uncompressed BAM output. --------------------------------- -When working with a large BAM file using a complex set of tools in a pipe/stream, it is advantageous -to pass uncompressed BAM output to each downstream program. This minimizes the amount of time -spent compressing and decompressing output from one program to the next. All BEDTools that create -BAM output (e.g. ``intersectBed``, ``windowBed``) will now optionally create uncompressed BAM output -using the ``-ubam`` option. - - - -===================================== -1.4 Implementation and algorithmic notes. -===================================== -BEDTools was implemented in C++ and makes extensive use of data structures and fundamental -algorithms from the Standard Template Library (STL). Many of the core algorithms are based upon the -genome binning algorithm described in the original UCSC Genome Browser paper (Kent et al, 2002). -The tools have been designed to inherit core data structures from central source files, thus allowing -rapid tool development and deployment of improvements and corrections. Support for BAM files is -made possible through Derek Barnett’s elegant C++ API called BamTools. - - - -===================================== -1.5 License and availability. -===================================== -BEDTools is freely available under a GNU Public License (Version 2) at: -http://bedtools.googlecode.com - - - -===================================== -1.6 Mailing list. -===================================== -A discussion group for reporting bugs, asking questions of the developer and of the user community, as -well as for requesting new features is available at: -http://groups.google.com/group/bedtools-discuss - - - -===================================== -1.7 Contributors. -===================================== -As open-source software, BEDTools greatly benefits from contributions made by other developers and -users of the tools. We encourage and welcome suggestions, contributions and complaints. This is how -software matures, improves and stays on top of the needs of its user community. The Google Code -(GC) site maintains a list of individuals who have contributed either source code or useful ideas for -improving the tools. In the near future, we hope to maintain a source repository on the GC site in -order to facilitate further contributions. We are currently unable to do so because we use Git for -version control, which is not yet supported by GC. \ No newline at end of file diff --git a/docs/_build/html/_sources/content/pairToBed.txt b/docs/_build/html/_sources/content/pairToBed.txt deleted file mode 100644 index 75db129a8..000000000 --- a/docs/_build/html/_sources/content/pairToBed.txt +++ /dev/null @@ -1,378 +0,0 @@ -############### -5.2 pairToBed -############### -**pairToBed** compares each end of a BEDPE feature or a paired-end BAM alignment to a feature file in -search of overlaps. - -**NOTE: pairToBed requires that the BAM file is sorted/grouped by the read name. This -allows pairToBed to extract correct alignment coordinates for each end based on their -respective CIGAR strings. It also assumes that the alignments for a given pair come in -groups of twos. There is not yet a standard method for reporting multiple alignments -using BAM. pairToBed will fail if an aligner does not report alignments in pairs.** - -========================================================================== -5.2.1 Usage and option summary -========================================================================== -**Usage:** -:: - pairToBed [OPTIONS] [-a || -abam ] -b - - -=========================== ========================================================================================================================================================= -Option Description -=========================== ========================================================================================================================================================= -**-a** BEDPE file A. Each feature in A is compared to B in search of overlaps. Use "stdin" if passing A with a UNIX pipe. Output will be in BEDPE format. -**-b** BED file B. Use "stdin" if passing B with a UNIX pipe. -**-abam** BAM file A. Each end of each BAM alignment in A is compared to B in search of overlaps. Use "stdin" if passing A with a UNIX pipe: For example: samtools view ¨Cb | pairToBed ¨Cabam stdin ¨Cb genes.bed | samtools view - -**-ubam** Write uncompressed BAM output. The default is write compressed BAM output. -**-bedpe** When using BAM input (-abam), write output as BEDPE. The default is to write output in BAM when using -abam. For example: pairToBed ¨Cabam reads.bam ¨Cb genes.bed ¨Cbedpe -**-ed** Use BAM total edit distance (NM tag) for BEDPE score. Default for BEDPE is to use the *minimum* of the two mapping qualities for the pair. When -ed is used the *total* edit distance from the two mates is reported as the score. -**-f** Minimum overlap required as a fraction of A. Default is 1E-9 (i.e. 1bp). -**-s** Force "strandedness". That is, only report hits in B that overlap A on the **same** strand. By default, overlaps are reported without respect to strand. -**-type** - Approach to reporting overlaps between BEDPE and BED. - - - **either-** Report overlaps if either end of A overlaps B. - - - *Default* - - **neither-** Report A if neither end of A overlaps B. - - **xor-** Report overlaps if one and only one end of A overlaps B. - - **both-** Report overlaps if both ends of A overlap B. - - **notboth-** Report overlaps if neither end or one and only one end of A overlap B. - - **ispan-** Report overlaps between [end1, start2] of A and B. - - - Note: If chrom1 <> chrom2, entry is ignored. - - **ospan-** Report overlaps between [start1, end2] of A and B. - - - Note: If chrom1 <> chrom2, entry is ignored. - - **notispan-** Report A if ispan of A doesn't overlap B. - - Note: If chrom1 <> chrom2, entry is ignored. - - **notospan-** Report A if ospan of A doesn't overlap B. - - Note: If chrom1 <> chrom2, entry is ignored. -=========================== ========================================================================================================================================================= - - - -========================================================================== -5.2.2 Default behavior -========================================================================== -By default, a BEDPE / BAM feature will be reported if *either* end overlaps a feature in the BED file. -In the example below, the left end of the pair overlaps B yet the right end does not. Thus, BEDPE/ -BAM A is reported since the default is to report A if either end overlaps B. - -Default: Report A if *either* end overlaps B. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^ ^^^^^^ - - Result =====.................................===== - - -========================================================================== -5.2.3 (-type)Optional overlap requirements -========================================================================== -Using then **-type** option, **pairToBed** provides several other overlap requirements for controlling how -overlaps between BEDPE/BAM A and BED B are reported. The examples below illustrate how each -option behaves. - -**-type both**: Report A only if *both* ends overlap B. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^ ^^^^^^ - - Result - - - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^ ^^^^^^ - - Result =====.................................===== - - -**-type neither**: Report A only if *neither* end overlaps B. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^ ^^^^^^ - - Result - - - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^ ^^^^^^ - - Result =====.................................===== - - -**-type xor**: Report A only if *one and only one* end overlaps B. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^ ^^^^^^ - - Result =====.................................===== - - - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^ ^^^^^^ - - Result - - -**-type notboth**: Report A only if *neither end* **or** *one and only one* end overlaps B. Thus "notboth" -includes what would be reported by "neither" and by "xor". -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^ ^^^^^^ - - Result =====.................................===== - - - - BEDPE/BAM A *****.................................***** - - BED File B ^^^ ^^^^^^ - - Result =====.................................===== - - - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^ ^^^^^^ - - Result - - -**-type ispan**: Report A if it's "*inner span*" overlaps B. Applicable only to intra-chromosomal features. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Inner span |-------------------------------| - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^ - - Result =====.................................===== - - - - BEDPE/BAM A =====.................................===== - - BED File B ==== - - Result - - -**-type ospan**: Report A if it's "*outer span*" overlaps B. Applicable only to intra-chromosomal features. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Outer span |-----------------------------------------| - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^^^^^ - - Result =====.................................===== - - - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^ - - Result - - -**-type notispan**: Report A only if it's "*inner span*" does not overlap B. Applicable only to intrachromosomal -features. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Inner span |-------------------------------| - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^ - - Result - - - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^ - - Result =====.................................===== - - -**-type notospan**: Report A if it's "*outer span*" overlaps B. Applicable only to intra-chromosomal -features. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Outer span |-----------------------------------------| - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^^^^^ - - Result - - - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^ - - Result =====.................................===== - - - -========================================================================== -5.2.4 (-f)Requiring a minimum overlap fraction -========================================================================== -By default, **pairToBed** will report an overlap between A and B so long as there is at least one base -pair is overlapping on either end. Yet sometimes you may want to restrict reported overlaps between A -and B to cases where the feature in B overlaps at least X% (e.g. 50%) of A. The **¨Cf** option does exactly -this. The **-f** option may also be combined with the -type option for additional control. For example, -combining **-f 0.50** with **-type both** requires that both ends of A have at least 50% overlap with a -feature in B. - -For example, report A only at least 50% of one of the two ends is overlapped by B. -:: - pairToBed -a A.bedpe -b B.bed -f 0.5 - - - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BEDPE/BAM A *****.................................***** - - BED File B ^^ ^^^^^^ - - Result - - - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^ ^^^^^^ - - Result =====.................................===== - - - -========================================================================== -5.2.5 (-s)Enforcing "strandedness" -========================================================================== -By default, **pairToBed** will report overlaps between features even if the features are on opposing -strands. However, if strand information is present in both files and the **"-s"** option is used, overlaps will -only be reported when features are on the same strand. - -For example, report A only at least 50% of one of the two ends is overlapped by B. -:: - pairToBed -a A.bedpe -b B.bed -s - - - - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BEDPE/BAM A >>>>>.................................<<<<< - - BED File B << >>>>> - - Result - - - - BEDPE/BAM A >>>>>.................................<<<<< - - BED File B >> >>>>> - - Result >>>>>.................................<<<<< - - -========================================================================== -5.2.6 (-abam)Default is to write BAM output when using BAM input -========================================================================== -When comparing *paired* alignments in BAM format (**-abam**) to features in BED format (**-b**), -**pairToBed** will , by default, write the output in BAM format. That is, each alignment in the BAM -file that meets the user's criteria will be written (to standard output) in BAM format. This serves as a -mechanism to create subsets of BAM alignments are of biological interest, etc. Note that both -alignments for each aligned pair will be written to the BAM output. - -For example: -:: - pairToBed ¨Cabam pairedReads.bam ¨Cb simreps.bed | samtools view - | head -4 - - JOBU_0001:3:1:4:1060#0 99 chr10 42387928 29 50M = 42393091 5 2 1 3 - AA A A A C G G A A T T A T C G A A T G G A A T C G A A G A G A A T C T T C G A A C G G A C C C G A - dcgggggfbgfgdgggggggfdfgggcggggfcggcggggggagfgbggc XT:A:R NM:i:5 SM:i:0 AM:i:0 X0:i:3 X 1 : i : - 3 XM:i:5 XO:i:0 XG:i:0 MD:Z:0T0C33A5T4T3 - JOBU_0001:3:1:4:1060#0 147 chr10 42393091 0 50M = 42387928 - 5 2 1 3 - AAATGGAATCGAATGGAATCAACATCAAATGGAATCAAATGGAATCATTG K g d c g g d e c d g - \d`ggfcgcggffcgggc^cgfgccgggfc^gcdgg\bg XT:A:R NM:i:2 SM:i:0 AM:i:0 X0:i:3 X1:i:13 XM:i:2 X O : i : - 0 XG:i:0 MD:Z:21T14G13 - JOBU_0001:3:1:8:446#0 99 chr10 42388091 9 50M = 42392738 4 6 9 7 - GAATCGACTGGAATCATCATCGGATGGAAATGAATGGAATAATCATCGAA f _ O f f ` ] I e Y f f ` f f e d d c f e f c P ` c _ W \ \ R _ ] - _BBBBBBBBBBBBBBBB XT:A:U NM:i:4 SM:i:0 AM:i:0 X0:i:1 X1:i:3 XM:i:4 XO:i:0 XG:i:0 M D : Z : - 7A22C9C2T6 - JOBU_0001:3:1:8:446#0 147 chr10 42392738 9 50M = 42388091 - 4 6 9 7 - TTATCGAATGCAATCGAATGGAATTATCGAATGCAATCGAATAGAATCAT df^ffec_JW[`MWceRec``fee`dcecfeeZae`c] - f^cNeecfccf^ XT:A:R NM:i:1 SM:i:0 AM:i:0 X0:i:2 X1:i:2 XM:i:1 XO:i:0 XG:i:0 MD:Z:38A11 - - - -========================================================================== -5.2.7 (-bedpe)Output BEDPE format when using BAM input -========================================================================== -When comparing *paired* alignments in BAM format (**-abam**) to features in BED format (**-b**), -**pairToBed** will optionally write the output in BEDPE format. That is, each alignment in the BAM -file is converted to a 10 column BEDPE feature and if overlaps are found (or not) based on the user's -criteria, the BAM alignment will be reported in BEDPE format. The BEDPE "name" field is comprised -of the RNAME field in the BAM alignment. The "score" field is the mapping quality score from the -BAM alignment. - -For example: -:: - pairToBed ¨Cabam pairedReads.bam ¨Cb simreps.bed -bedpe | head -5 - chr10 42387927 42387977 chr10 42393090 42393140 - JOBU_0001:3:1:4:1060#0 29 + - - chr10 42388090 42388140 chr10 42392737 42392787 - JOBU_0001:3:1:8:446#0 9 + - - chr10 42390552 42390602 chr10 42396045 42396095 - JOBU_0001:3:1:10:1865#0 9 + - - chrX 139153741 139153791 chrX 139159018 139159068 - JOBU_0001:3:1:14:225#0 37 + - - chr4 9236903 9236953 chr4 9242032 9242082 - JOBU_0001:3:1:15:1362#0 0 + - diff --git a/docs/_build/html/_sources/content/pairToPair.txt b/docs/_build/html/_sources/content/pairToPair.txt deleted file mode 100644 index 7be68197e..000000000 --- a/docs/_build/html/_sources/content/pairToPair.txt +++ /dev/null @@ -1,103 +0,0 @@ -############### -5.3 pairToPair -############### -**pairToPair** compares two BEDPE files in search of overlaps where each end of a BEDPE feature in A -overlaps with the ends of a feature in B. For example, using pairToPair, one could screen for the exact -same discordant paired-end alignment in two files. This could suggest (among other things) that the -discordant pair suggests the same structural variation in each file/sample. - - -================================ -5.3.1 Usage and option summary -================================ -**Usage:** -:: - pairToPair [OPTIONS] -a -b - - -=========================== ========================================================================================================================================================= -Option Description -=========================== ========================================================================================================================================================= -**-a** BEDPE file A. Each feature in A is compared to B in search of overlaps. Use "stdin" if passing A with a UNIX pipe. -**-b** BEDPE file B. Use "stdin" if passing B with a UNIX pipe. -**-f** Minimum overlap required as a fraction of A. Default is 1E-9 (i.e. 1bp). -**-is** Force "strandedness". That is, only report hits in B that overlap A on the same strand. By default, overlaps are reported without respect to strand. -**-type** Approach to reporting overlaps between BEDPE and BED. - | **either** Report overlaps if either ends of A overlap B. - - - | **neither** Report A if neither end of A overlaps B. - - - | **both** Report overlaps if both ends of A overlap B. -*Default behavior.* -=========================== ========================================================================================================================================================= - - - - - -================================ -5.3.2 Default behavior -================================ -By default, a BEDPE feature from A will be reported if *both* ends overlap a feature in the BEDPE B -file. If strand information is present for the two BEDPE files, it will be further required that the -overlaps on each end be on the same strand. This way, an otherwise overlapping (in terms of genomic -locations) F/R alignment will not be matched with a R/R alignment. - -Default: Report A if *both* ends overlaps B. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^ ^^^^^^ - - Result =====.................................===== - - -Default when strand information is present in both BEDPE files: Report A if *both* ends overlaps B *on -the same strands*. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BEDPE A >>>>>.................................>>>>> - - BEDPE B <<<<<.............................>>>>> - - Result - - - - BEDPE A >>>>>.................................>>>>> - - BEDPE B >>>>>.............................>>>>> - - Result >>>>>.................................>>>>> - - - -================================================== -5.3.3 (-type neither)Optional overlap requirements -================================================== -Using then **-type neither, pairToPair** will only report A if *neither* end overlaps with a BEDPE -feature in B. - -**-type neither**: Report A only if *neither* end overlaps B. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^^^^^......................................^^^^^^ - - Result - - - - BEDPE/BAM A *****.................................***** - - BED File B ^^^^................................................^^^^^^ - - Result =====.................................===== - - \ No newline at end of file diff --git a/docs/_build/html/_sources/content/quick-start.txt b/docs/_build/html/_sources/content/quick-start.txt deleted file mode 100644 index 64f2df32c..000000000 --- a/docs/_build/html/_sources/content/quick-start.txt +++ /dev/null @@ -1,60 +0,0 @@ -########### -Quick start -########### - -================ -Install BEDTools -================ -:: - - curl http://bedtools.googlecode.com/files/BEDTools..tar.gz > BEDTools.tar.gz - tar -zxvf BEDTools.tar.gz - cd BEDTools - make clean - make all - sudo cp bin/* /usr/local/bin/ - -=============== -Use BEDTools -=============== -Below are examples of typical BEDTools usage. **Additional usage examples are described in -section 6 of this manual.** Using the "-h" option with any BEDTools will report a list of all command -line options. - -A. Report the base-pair overlap between the features in two BED files. -:: - - intersectBed -a reads.bed -b genes.bed - -B. Report those entries in A that overlap NO entries in B. Like "grep -v" -:: - - intersectBed -a reads.bed -b genes.bed ¨Cv - -C. Read BED A from stdin. Useful for stringing together commands. For example, find genes that overlap LINEs -but not SINEs. -:: - - intersectBed -a genes.bed -b LINES.bed | intersectBed -a stdin -b SINEs.bed ¨Cv - -D. Find the closest ALU to each gene. -:: - - closestBed -a genes.bed -b ALUs.bed - -E. Merge overlapping repetitive elements into a single entry, returning the number of entries merged. -:: - - mergeBed -i repeatMasker.bed -n - -F. Merge nearby repetitive elements into a single entry, so long as they are within 1000 bp of one another. -:: - - mergeBed -i repeatMasker.bed -d 1000 - - - - - - - \ No newline at end of file diff --git a/docs/_build/html/_sources/content/shuffleBed.txt b/docs/_build/html/_sources/content/shuffleBed.txt deleted file mode 100644 index d840277e9..000000000 --- a/docs/_build/html/_sources/content/shuffleBed.txt +++ /dev/null @@ -1,155 +0,0 @@ -############### -5.13 shuffleBed -############### -**shuffleBed** will randomly permute the genomic locations of a fearure file among a genome defined in a -genome file. One can also provide an "exclusions" BED/GFF/VCF file that lists regions where you do -not want the permuted features to be placed. For example, one might want to prevent features from -being placed in known genome gaps. **shuffleBed** is useful as a *null* basis against which to test the -significance of associations of one feature with another. - - - -========================================================================== -5.13.1 Usage and option summary -========================================================================== -Usage: -:: - shuffleBed [OPTIONS] -i -g - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-excl** A BED file of coordinates in which features from -i should *not* be placed (e.g., genome gaps). -**-chrom** Keep features in -i on the same chromosome. Solely permute their location on the chromosome. *By default, both the chromosome and position are randomly chosen*. -**-seed** Supply an integer seed for the shuffling. This will allow feature shuffling experiments to be recreated exactly as the seed for the pseudo-random number generation will be constant. *By default, the seed is chosen automatically*. -=========================== =============================================================================================================================================================================================================== - - - - -========================================================================== -5.13.2 Default behavior -========================================================================== -By default, **shuffleBed** will reposition each feature in the input BED file on a random chromosome at a -random position. The size and strand of each feature are preserved. - -For example: -:: - cat A.bed - chr1 0 100 a1 1 + - chr1 0 1000 a2 2 - - - cat my.genome - chr1 10000 - chr2 8000 - chr3 5000 - chr4 2000 - - shuffleBed -i A.bed -g my.genome - chr4 1498 1598 a1 1 + - chr3 2156 3156 a2 2 - - - - - - -========================================================================== -5.13.3 (-chrom)Requiring that features be shuffled on the same chromosome -========================================================================== -The "**-chrom**" option behaves the same as the default behavior except that features are randomly -placed on the same chromosome as defined in the BED file. - -For example: -:: - cat A.bed - chr1 0 100 a1 1 + - chr1 0 1000 a2 2 - - - cat my.genome - chr1 10000 - chr2 8000 - chr3 5000 - chr4 2000 - - shuffleBed -i A.bed -g my.genome -chrom - chr1 9560 9660 a1 1 + - chr1 7258 8258 a2 2 - - - - - -========================================================================== -5.13.4 Excluding certain genome regions from shuffleBed -========================================================================== -One may want to prevent BED features from being placed in certain regions of the genome. For -example, one may want to exclude genome gaps from permutation experiment. The "**-excl**" option -defines a BED file of regions that should be excluded. **shuffleBed** will attempt to permute the -locations of all features while adhering to the exclusion rules. However it will stop looking for an -appropriate location if it cannot find a valid spot for a feature after 1,000,000 tries. - -For example (*note that the exclude file excludes all but 100 base pairs of the chromosome*): -:: - cat A.bed - chr1 0 100 a1 1 + - chr1 0 1000 a2 2 - - - cat my.genome - chr1 10000 - - cat exclude.bed - chr1 100 10000 - - shuffleBed -i A.bed -g my.genome -excl exclude.bed - chr1 0 100 a1 1 + - Error, line 2: tried 1000000 potential loci for entry, but could not avoid excluded - regions. Ignoring entry and moving on. - - -For example (*now the exclusion file only excludes the first 100 bases of the chromosome*): -:: - cat A.bed - chr1 0 100 a1 1 + - chr1 0 1000 a2 2 - - - cat my.genome - chr1 10000 - - cat exclude.bed - chr1 0 100 - - shuffleBed -i A.bed -g my.genome -excl exclude.bed - chr1 147 247 a1 1 + - chr1 2441 3441 a2 2 - - - -========================================================================== -5.13.5 Defining a "seed" for the random replacement. -========================================================================== -**shuffleBed** uses a pseudo-random number generator to permute the locations of BED features. -Therefore, each run should produce a different result. This can be problematic if one wants to exactly -recreate an experiment. By using the "**-seed**" option, one can supply a custom integer seed for -**shuffleBed**. In turn, each execution of **shuffleBed** with the same seed and input files should produce -identical results. - -For example (*note that the exclude file below excludes all but 100 base pairs of the chromosome*): -:: - cat A.bed - chr1 0 100 a1 1 + - chr1 0 1000 a2 2 - - - cat my.genome - chr1 10000 - - shuffleBed -i A.bed -g my.genome -seed 927442958 - chr1 6177 6277 a1 1 + - chr1 8119 9119 a2 2 - - - shuffleBed -i A.bed -g my.genome -seed 927442958 - chr1 6177 6277 a1 1 + - chr1 8119 9119 a2 2 - - - . . . - - shuffleBed -i A.bed -g my.genome -seed 927442958 - chr1 6177 6277 a1 1 + - chr1 8119 9119 a2 2 - diff --git a/docs/_build/html/_sources/content/slopBed.txt b/docs/_build/html/_sources/content/slopBed.txt deleted file mode 100644 index 0646afcaa..000000000 --- a/docs/_build/html/_sources/content/slopBed.txt +++ /dev/null @@ -1,84 +0,0 @@ -############### -5.14 slopBed -############### -**slopBed** will increase the size of each feature in a feature file be a user-defined number of bases. While -something like this could be done with an "**awk '{OFS="\t" print $1,$2-,$3+}'**", -**slopBed** will restrict the resizing to the size of the chromosome (i.e. no start < 0 and no end > -chromosome size). - - -========================================================================== -5.14.1 Usage and option summary -========================================================================== -Usage: -:: - slopBed [OPTIONS] -i -g [-b or (-l and -r)] - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-b** Increase the BED/GFF/VCF entry by the same number base pairs in each direction. *Integer*. -**-l** The number of base pairs to subtract from the start coordinate. *Integer*. -**-r** The number of base pairs to add to the end coordinate. *Integer*. -**-s** Define -l and -r based on strand. For example. if used, -l 500 for a negative-stranded feature, it will add 500 bp to the *end* coordinate. -=========================== =============================================================================================================================================================================================================== - - - -========================================================================== -5.14.2 Default behavior -========================================================================== -By default, **slopBed** will either add a fixed number of bases in each direction (**-b**) or an asymmetric -number of bases in each direction (**-l** and **-r**). - -For example: -:: - cat A.bed - chr1 5 100 - chr1 800 980 - - cat my.genome - chr1 1000 - - slopBed -i A.bed -g my.genome -b 5 - chr1 0 105 - chr1 795 985 - - slopBed -i A.bed -g my.genome -l 2 -r 3 - chr1 3 103 - chr1 798 983 - - -However, if the requested number of bases exceeds the boundaries of the chromosome, **slopBed** will -"clip" the feature accordingly. -:: - cat A.bed - chr1 5 100 - chr1 800 980 - - cat my.genome - chr1 1000 - - slopBed -i A.bed -g my.genome -b 5000 - chr1 0 1000 - chr1 0 1000 - - - -========================================================================== -5.14.3 Resizing features according to strand -========================================================================== -**slopBed** will optionally increase the size of a feature based on strand. - -For example: -:: - cat A.bed - chr1 100 200 a1 1 + - chr1 100 200 a2 2 - - - cat my.genome - chr1 1000 - - slopBed -i A.bed -g my.genome -l 50 -r 80 -s - chr1 50 280 a1 1 + - chr1 20 250 a2 2 - diff --git a/docs/_build/html/_sources/content/sortBed.txt b/docs/_build/html/_sources/content/sortBed.txt deleted file mode 100644 index 7ea166676..000000000 --- a/docs/_build/html/_sources/content/sortBed.txt +++ /dev/null @@ -1,77 +0,0 @@ -############### -5.15 sortBed -############### -**sortBed** sorts a feature file by chromosome and other criteria. - -========================================================================== -5.15.1 Usage and option summary -========================================================================== -Usage: -:: - sortBed [OPTIONS] -i - -=========================== =============================================================================================================================================================================================================== - Option Description -=========================== =============================================================================================================================================================================================================== -**-sizeA** Sort by feature size in ascending order. -**-sizeD** Sort by feature size in descending order. -**-chrThenSizeA** Sort by chromosome, then by feature size (asc). -**-chrThenSizeD** Sort by chromosome, then by feature size (desc). -**-chrThenScoreA** Sort by chromosome, then by score (asc). -**-chrThenScoreD** Sort by chromosome, then by score (desc). -=========================== =============================================================================================================================================================================================================== - - - -========================================================================== -5.15.2 Default behavior -========================================================================== -By default, **sortBed** sorts a BED file by chromosome and then by start position in ascending order. - -For example: -:: - cat A.bed - chr1 800 1000 - chr1 80 180 - chr1 1 10 - chr1 750 10000 - - sortBed -i A.bed - chr1 1 10 - chr1 80 180 - chr1 750 10000 - chr1 800 1000 - - - - -========================================================================== -5.15.3 Optional sorting behavior -========================================================================== -**sortBed** will also sorts a BED file by chromosome and then by other criteria. - -For example, to sort by chromosome and then by feature size (in descending order): -:: - cat A.bed - chr1 800 1000 - chr1 80 180 - chr1 1 10 - chr1 750 10000 - - sortBed -i A.bed -sizeD - chr1 750 10000 - chr1 800 1000 - chr1 80 180 - chr1 1 10 - - -**Disclaimer:** it should be noted that **sortBed** is merely a convenience utility, as the UNIX sort utility -will sort BED files more quickly while using less memory. For example, UNIX sort will sort a BED file -by chromosome then by start position in the following manner: -:: - sort -k 1,1 -k2,2 -n a.bed - chr1 1 10 - chr1 80 180 - chr1 750 10000 - chr1 800 1000 - diff --git a/docs/_build/html/_sources/content/subtractBed.txt b/docs/_build/html/_sources/content/subtractBed.txt deleted file mode 100644 index 81dfb0e7e..000000000 --- a/docs/_build/html/_sources/content/subtractBed.txt +++ /dev/null @@ -1,88 +0,0 @@ -############### -5.7 subtractBed -############### -**subtractBed** searches for features in B that overlap A. If an overlapping feature is found in B, the -overlapping portion is removed from A and the remaining portion of A is reported. If a feature in B -overlaps all of a feature in A, the A feature will not be reported. - - -========================================================================== -5.7.1 Usage and option summary -========================================================================== -Usage: -:: - subtractBed [OPTIONS] -a -b - -=========================== =============================================================================================================================================================================================================== -Option Description -=========================== =============================================================================================================================================================================================================== -**-f** Minimum overlap required as a fraction of A. Default is 1E-9 (i.e. 1bp). -**-s** Force strandedness. That is, find the closest feature in B overlaps A on the same strand. *By default, this is disabled*. -=========================== =============================================================================================================================================================================================================== - - - -========================================================================== -5.7.2 Default behavior -========================================================================== -Figure: -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - BED FILE A ************* ****** - - BED File B ^^^^^^^^ ^^^^^^^^^^^ - - Result ========= - -For example: -:: - cat A.bed - chr1 100 200 - chr1 10 20 - - cat B.bed - chr1 0 30 - chr1 180 300 - - subtractBed -a A.bed -b B.bed - chr1 100 180 - - - - - - -========================================================================== -5.7.3 (-f)Requiring a minimal overlap fraction before subtracting -========================================================================== -This option behaves the same as the -f option for intersectBed. In this case, subtractBed will only -subtract an overlap with B if it covers at least the fraction of A defined by -f. If an overlap is found, -but it does not meet the overlap fraction, the original A feature is reported without subtraction. - -For example: -:: - cat A.bed - chr1 100 200 - - cat B.bed - chr1 180 300 - - subtractBed -a A.bed -b B.bed -f 0.10 - chr1 100 180 - - subtractBed -a A.bed -b B.bed -f 0.80 - chr1 100 200 - - - - -========================================================================== -5.7.4 (-s)Enforcing "strandedness" -========================================================================== -This option behaves the same as the -s option for intersectBed while scanning for features in B that -should be subtracted from A. See the discussion in the intersectBed section for details. - - - - diff --git a/docs/_build/html/_sources/content/unionBedGraphs.txt b/docs/_build/html/_sources/content/unionBedGraphs.txt deleted file mode 100644 index b1e34a18e..000000000 --- a/docs/_build/html/_sources/content/unionBedGraphs.txt +++ /dev/null @@ -1,163 +0,0 @@ -############### -5.23 unionBedGraphs -############### -**unionBedGraphs** combines multiple BEDGRAPH files into a single file such that one can directly -compare coverage (and other text-values such as genotypes) across multiple sample - - -========================================================================== -5.23.1 Usage and option summary -========================================================================== -Usage: -:: - unionBedGraphs [OPTIONS] -i FILE1 FILE2 FILE3 ... FILEn - -=========================== =============================================================================================================================================================================================================== - Option Description - -=========================== =============================================================================================================================================================================================================== -**-header** Print a header line, consisting of chrom, start, end followed by the names of each input BEDGRAPH file. -**-names** A list of names (one per file) to describe each file in -i. These names will be printed in the header line. -**-empty** Report empty regions (i.e., start/end intervals w/o values in all files). *Requires the '-g FILE' parameter (see below)*. -**-g** The genome file to be used to calculate empty regions. -**-filler TEXT** Use TEXT when representing intervals having no value. Default is '0', but you can use 'N/A' or any other text. -**-examples** Show detailed usage examples. -=========================== =============================================================================================================================================================================================================== - - - - -========================================================================== -5.23.2 Default behavior -========================================================================== -Figure: -:: - cat 1.bg - chr1 1000 1500 10 - chr1 2000 2100 20 - - cat 2.bg - chr1 900 1600 60 - chr1 1700 2050 50 - - cat 3.bg - chr1 1980 2070 80 - chr1 2090 2100 20 - - cat sizes.txt - chr1 5000 - - unionBedGraphs -i 1.bg 2.bg 3.bg - chr1 900 1000 0 60 0 - chr1 1000 1500 10 60 0 - chr1 1500 1600 0 60 0 - chr1 1700 1980 0 50 0 - chr1 1980 2000 0 50 80 - chr1 2000 2050 20 50 80 - chr1 2050 2070 20 0 80 - chr1 2070 2090 20 0 0 - chr1 2090 2100 20 0 20 - -========================================================================== -5.23.3 Add a header line to the output -========================================================================== -Figure: -:: - unionBedGraphs -i 1.bg 2.bg 3.bg -header - chrom start end 1 2 3 - chr1 900 1000 0 60 0 - chr1 1000 1500 10 60 0 - chr1 1500 1600 0 60 0 - chr1 1700 1980 0 50 0 - chr1 1980 2000 0 50 80 - chr1 2000 2050 20 50 80 - chr1 2050 2070 20 0 80 - chr1 2070 2090 20 0 0 - chr1 2090 2100 20 0 20 - - -========================================================================== -5.23.4 Add a header line with custom file names to the output -========================================================================== -Figure: -:: - unionBedGraphs -i 1.bg 2.bg 3.bg -header -names WT-1 WT-2 KO-1 - chrom start end WT-1 WT-2 KO-1 - chr1 900 1000 0 60 0 - chr1 1000 1500 10 60 0 - chr1 1500 1600 0 60 0 - chr1 1700 1980 0 50 0 - chr1 1980 2000 0 50 80 - chr1 2000 2050 20 50 80 - chr1 2050 2070 20 0 80 - chr1 2070 2090 20 0 0 - chr1 2090 2100 20 0 20 - - - - -========================================================================== -5.23.5 Include regions that have zero coverage in all BEDGRAPH files. -========================================================================== -Figure: -:: - unionBedGraphs -i 1.bg 2.bg 3.bg -empty -g sizes.txt -header - chrom start end WT-1 WT-2 KO-1 - chrom start end 1 2 3 - chr1 0 900 0 0 0 - chr1 900 1000 0 60 0 - chr1 1000 1500 10 60 0 - chr1 1500 1600 0 60 0 - chr1 1600 1700 0 0 0 - chr1 1700 1980 0 50 0 - chr1 1980 2000 0 50 80 - chr1 2000 2050 20 50 80 - chr1 2050 2070 20 0 80 - chr1 2070 2090 20 0 0 - chr1 2090 2100 20 0 20 - chr1 2100 5000 0 0 0 - - -========================================================================== -5.23.6 Use a custom value for missing values. -========================================================================== -Figure: -:: - unionBedGraphs -i 1.bg 2.bg 3.bg -empty -g sizes.txt -header -filler N/A - chrom start end WT-1 WT-2 KO-1 - chrom start end 1 2 3 - chr1 0 900 N/A N/A N/A - chr1 900 1000 N/A 60 N/A - chr1 1000 1500 10 60 N/A - chr1 1500 1600 N/A 60 N/A - chr1 1600 1700 N/A N/A N/A - chr1 1700 1980 N/A 50 N/A - chr1 1980 2000 N/A 50 80 - chr1 2000 2050 20 50 80 - chr1 2050 2070 20 N/A 80 - chr1 2070 2090 20 N/A N/A - chr1 2090 2100 20 N/A 20 - chr1 2100 5000 N/A N/A N/A - - -========================================================================== -5.23.7 Use BEDGRAPH files with non-numeric values. -========================================================================== -Figure: -:: - cat 1.snp.bg - chr1 0 1 A/G - chr1 5 6 C/T - - cat 2.snp.bg - chr1 0 1 C/C - chr1 7 8 T/T - - cat 3.snp.bg - chr1 0 1 A/G - chr1 5 6 C/T - - unionBedGraphs -i 1.snp.bg 2.snp.bg 3.snp.bg -filler -/- - chr1 0 1 A/G C/C A/G - chr1 5 6 C/T -/- C/T - chr1 7 8 -/- T/T -/- \ No newline at end of file diff --git a/docs/_build/html/_sources/content/windowBed.txt b/docs/_build/html/_sources/content/windowBed.txt deleted file mode 100644 index 30d231ea9..000000000 --- a/docs/_build/html/_sources/content/windowBed.txt +++ /dev/null @@ -1,157 +0,0 @@ -############### -5.5 windowBed -############### - -Similar to **intersectBed**, **windowBed** searches for overlapping features in A and B. However, -**windowBed** adds a specified number (1000, by default) of base pairs upstream and downstream of -each feature in A. In effect, this allows features in B that are "near" features in A to be detected. - -========================================================================== -5.5.1 Usage and option summary -========================================================================== -**Usage:** -:: - windowBed [OPTIONS] -a -b - - -=========================== ========================================================================================================================================================= -Option Description -=========================== ========================================================================================================================================================= -**-abam** BAM file A. Each BAM alignment in A is compared to B in search of overlaps. Use "stdin" if passing A with a UNIX pipe: For example: samtools view -b | windowBed -abam stdin -b genes.bed -**-ubam** Write uncompressed BAM output. The default is write compressed BAM output. -**-bed** When using BAM input (-abam), write output as BED. The default is to write output in BAM when using -abam. For example: windowBed -abam reads.bam -b genes.bed -bed -**-w** Base pairs added upstream and downstream of each entry in A when searching for overlaps in B. *Default is 1000 bp*. -**-l** Base pairs added upstream (left of) of each entry in A when searching for overlaps in B. *Allows one to create assymetrical "windows". Default is 1000bp*. -**-r** Base pairs added downstream (right of) of each entry in A when searching for overlaps in B. *Allows one to create assymetrical "windows". Default is 1000bp*. -**-sw** Define -l and -r based on strand. For example if used, -l 500 for a negative-stranded feature will add 500 bp downstream. *By default, this is disabled*. -**-sm** Only report hits in B that overlap A on the same strand. *By default, overlaps are reported without respect to strand*. -**-u** Write original A entry once if any overlaps found in B. In other words, just report the fact at least one overlap was found in B. -**-c** For each entry in A, report the number of hits in B while restricting to -f. Reports 0 for A entries that have no overlap with B. -=========================== ========================================================================================================================================================= - -========================================================================== -5.5.2 Default behavior -========================================================================== -By default, **windowBed** adds 1000 bp upstream and downstream of each A feature and searches for -features in B that overlap this "window". If an overlap is found in B, both the *original* A feature and the -*original* B feature are reported. For example, in the figure below, feature B1 would be found, but B2 -would not. -:: - Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - "window" = 10 - BED File A <----------*************----------> - - BED File B ^^^^^^^^ ^^^^^^ - - Result ======== - -For example: -:: - cat A.bed - chr1 100 200 - - cat B.bed - chr1 500 1000 - chr1 1300 2000 - - windowBed -a A.bed -b B.bed - chr1 100 200 chr1 500 1000 - - -========================================================================== -5.5.3 (-w)Defining a custom window size -========================================================================== -Instead of using the default window size of 1000bp, one can define a custom, *symmetric* window around -each feature in A using the **-w** option. One should specify the window size in base pairs. For example, -a window of 5kb should be defined as **-w 5000**. - -For example (note that in contrast to the default behavior, the second B entry is reported): -:: - cat A.bed - chr1 100 200 - - cat B.bed - chr1 500 1000 - chr1 1300 2000 - - windowBed -a A.bed -b B.bed -w 5000 - chr1 100 200 chr1 500 1000 - chr1 100 200 chr1 1300 2000 - -========================================================================== -5.5.4 (-l and -r)Defining assymteric windows -========================================================================== -One can also define asymmetric windows where a differing number of bases are added upstream and -downstream of each feature using the **-l (upstream)** and **-r (downstream)** options. - -For example (note the difference between -l 200 and -l 300): -:: - cat A.bed - chr1 1000 2000 - - cat B.bed - chr1 500 800 - chr1 10000 20000 - - windowBed -a A.bed -b B.bed -l 200 -r 20000 - chr1 100 200 chr1 10000 20000 - - windowBed -a A.bed -b B.bed -l 300 -r 20000 - chr1 100 200 chr1 500 800 - chr1 100 200 chr1 10000 20000 - -========================================================================== -5.5.5 (-sw)Defining assymteric windows based on strand -========================================================================== -Especially when dealing with gene annotations or RNA-seq experiments, you may want to define -asymmetric windows based on "strand". For example, you may want to screen for overlaps that occur -within 5000 bp upstream of a gene (e.g. a promoter region) while screening only 1000 bp downstream of -the gene. By enabling the **-sw** ("stranded" windows) option, the windows are added upstream or -downstream according to strand. For example, imagine one specifies **-l 5000 -r 1000** as well as the **- -sw** option. In this case, forward stranded ("+") features will screen 5000 bp to the *left* (that is, *lower* -genomic coordinates) and 1000 bp to the *right* (that is, *higher* genomic coordinates). By contrast, -reverse stranded ("-") features will screen 5000 bp to the *right* (that is, *higher* genomic coordinates) and -1000 bp to the *left* (that is, *lower* genomic coordinates). - -For example (note the difference between -l 200 and -l 300): -:: - cat A.bed - chr1 10000 20000 A.forward 1 + - chr1 10000 20000 A.reverse 1 - - - cat B.bed - chr1 1000 8000 B1 - chr1 24000 32000 B2 - - windowBed -a A.bed -b B.bed -l 5000 -r 1000 -sw - chr1 10000 20000 A.forward 1 + chr1 1000 8000 B1 - chr1 10000 20000 A.reverse 1 - chr1 24000 32000 B2 - - - -========================================================================== -5.5.6 (-sm)Enforcing "strandedness" -========================================================================== -This option behaves the same as the -s option for intersectBed while scanning for overlaps within the -"window" surrounding A. See the discussion in the intersectBed section for details. - -========================================================================== -5.5.7 (-u)Reporting the presence of at least one overlapping feature -========================================================================== -This option behaves the same as for intersectBed while scanning for overlaps within the "window" -surrounding A. See the discussion in the intersectBed section for details. - - -========================================================================== -5.5.8 (-c)Reporting the number of overlapping features -========================================================================== -This option behaves the same as for intersectBed while scanning for overlaps within the "window" -surrounding A. See the discussion in the intersectBed section for details. - - -========================================================================== -5.5.9 (-v)Reporting the absence of any overlapping features -========================================================================== -This option behaves the same as for intersectBed while scanning for overlaps within the "window" -surrounding A. See the discussion in the intersectBed section for details. - diff --git a/docs/_build/html/_sources/index.txt b/docs/_build/html/_sources/index.txt deleted file mode 100644 index 0ed81653e..000000000 --- a/docs/_build/html/_sources/index.txt +++ /dev/null @@ -1,31 +0,0 @@ -================================================================ -**bedtools**: *a powerful toolset for genome arithmetic* -================================================================ - -================= -Overview -================= - -Brief paragraph of the software. - - -================= -Table of contents -================= -.. toctree:: - :maxdepth: 1 - - content/overview - content/installation - content/quick-start - content/general-usage - content/bedtools-suite - content/example-usage - content/advanced-usage - - -================= -Mailing list -================= -Refer to the mailing list. - diff --git a/docs/_build/html/_static/ajax-loader.gif b/docs/_build/html/_static/ajax-loader.gif deleted file mode 100644 index 61faf8cab..000000000 Binary files a/docs/_build/html/_static/ajax-loader.gif and /dev/null differ diff --git a/docs/_build/html/_static/basic.css b/docs/_build/html/_static/basic.css deleted file mode 100644 index f0379f359..000000000 --- a/docs/_build/html/_static/basic.css +++ /dev/null @@ -1,540 +0,0 @@ -/* - * basic.css - * ~~~~~~~~~ - * - * Sphinx stylesheet -- basic theme. - * - * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -/* -- main layout ----------------------------------------------------------- */ - -div.clearer { - clear: both; -} - -/* -- relbar ---------------------------------------------------------------- */ - -div.related { - width: 100%; - font-size: 90%; -} - -div.related h3 { - display: none; -} - -div.related ul { - margin: 0; - padding: 0 0 0 10px; - list-style: none; -} - -div.related li { - display: inline; -} - -div.related li.right { - float: right; - margin-right: 5px; -} - -/* -- sidebar --------------------------------------------------------------- */ - -div.sphinxsidebarwrapper { - padding: 10px 5px 0 10px; -} - -div.sphinxsidebar { - float: left; - width: 230px; - margin-left: -100%; - font-size: 90%; -} - -div.sphinxsidebar ul { - list-style: none; -} - -div.sphinxsidebar ul ul, -div.sphinxsidebar ul.want-points { - margin-left: 20px; - list-style: square; -} - -div.sphinxsidebar ul ul { - margin-top: 0; - margin-bottom: 0; -} - -div.sphinxsidebar form { - margin-top: 10px; -} - -div.sphinxsidebar input { - border: 1px solid #98dbcc; - font-family: sans-serif; - font-size: 1em; -} - -div.sphinxsidebar input[type="text"] { - width: 170px; -} - -div.sphinxsidebar input[type="submit"] { - width: 30px; -} - -img { - border: 0; -} - -/* -- search page ----------------------------------------------------------- */ - -ul.search { - margin: 10px 0 0 20px; - padding: 0; -} - -ul.search li { - padding: 5px 0 5px 20px; - background-image: url(file.png); - background-repeat: no-repeat; - background-position: 0 7px; -} - -ul.search li a { - font-weight: bold; -} - -ul.search li div.context { - color: #888; - margin: 2px 0 0 30px; - text-align: left; -} - -ul.keywordmatches li.goodmatch a { - font-weight: bold; -} - -/* -- index page ------------------------------------------------------------ */ - -table.contentstable { - width: 90%; -} - -table.contentstable p.biglink { - line-height: 150%; -} - -a.biglink { - font-size: 1.3em; -} - -span.linkdescr { - font-style: italic; - padding-top: 5px; - font-size: 90%; -} - -/* -- general index --------------------------------------------------------- */ - -table.indextable { - width: 100%; -} - -table.indextable td { - text-align: left; - vertical-align: top; -} - -table.indextable dl, table.indextable dd { - margin-top: 0; - margin-bottom: 0; -} - -table.indextable tr.pcap { - height: 10px; -} - -table.indextable tr.cap { - margin-top: 10px; - background-color: #f2f2f2; -} - -img.toggler { - margin-right: 3px; - margin-top: 3px; - cursor: pointer; -} - -div.modindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -div.genindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -/* -- general body styles --------------------------------------------------- */ - -a.headerlink { - visibility: hidden; -} - -h1:hover > a.headerlink, -h2:hover > a.headerlink, -h3:hover > a.headerlink, -h4:hover > a.headerlink, -h5:hover > a.headerlink, -h6:hover > a.headerlink, -dt:hover > a.headerlink { - visibility: visible; -} - -div.body p.caption { - text-align: inherit; -} - -div.body td { - text-align: left; -} - -.field-list ul { - padding-left: 1em; -} - -.first { - margin-top: 0 !important; -} - -p.rubric { - margin-top: 30px; - font-weight: bold; -} - -img.align-left, .figure.align-left, object.align-left { - clear: left; - float: left; - margin-right: 1em; -} - -img.align-right, .figure.align-right, object.align-right { - clear: right; - float: right; - margin-left: 1em; -} - -img.align-center, .figure.align-center, object.align-center { - display: block; - margin-left: auto; - margin-right: auto; -} - -.align-left { - text-align: left; -} - -.align-center { - text-align: center; -} - -.align-right { - text-align: right; -} - -/* -- sidebars -------------------------------------------------------------- */ - -div.sidebar { - margin: 0 0 0.5em 1em; - border: 1px solid #ddb; - padding: 7px 7px 0 7px; - background-color: #ffe; - width: 40%; - float: right; -} - -p.sidebar-title { - font-weight: bold; -} - -/* -- topics ---------------------------------------------------------------- */ - -div.topic { - border: 1px solid #ccc; - padding: 7px 7px 0 7px; - margin: 10px 0 10px 0; -} - -p.topic-title { - font-size: 1.1em; - font-weight: bold; - margin-top: 10px; -} - -/* -- admonitions ----------------------------------------------------------- */ - -div.admonition { - margin-top: 10px; - margin-bottom: 10px; - padding: 7px; -} - -div.admonition dt { - font-weight: bold; -} - -div.admonition dl { - margin-bottom: 0; -} - -p.admonition-title { - margin: 0px 10px 5px 0px; - font-weight: bold; -} - -div.body p.centered { - text-align: center; - margin-top: 25px; -} - -/* -- tables ---------------------------------------------------------------- */ - -table.docutils { - border: 0; - border-collapse: collapse; -} - -table.docutils td, table.docutils th { - padding: 1px 8px 1px 5px; - border-top: 0; - border-left: 0; - border-right: 0; - border-bottom: 1px solid #aaa; -} - -table.field-list td, table.field-list th { - border: 0 !important; -} - -table.footnote td, table.footnote th { - border: 0 !important; -} - -th { - text-align: left; - padding-right: 5px; -} - -table.citation { - border-left: solid 1px gray; - margin-left: 1px; -} - -table.citation td { - border-bottom: none; -} - -/* -- other body styles ----------------------------------------------------- */ - -ol.arabic { - list-style: decimal; -} - -ol.loweralpha { - list-style: lower-alpha; -} - -ol.upperalpha { - list-style: upper-alpha; -} - -ol.lowerroman { - list-style: lower-roman; -} - -ol.upperroman { - list-style: upper-roman; -} - -dl { - margin-bottom: 15px; -} - -dd p { - margin-top: 0px; -} - -dd ul, dd table { - margin-bottom: 10px; -} - -dd { - margin-top: 3px; - margin-bottom: 10px; - margin-left: 30px; -} - -dt:target, .highlighted { - background-color: #fbe54e; -} - -dl.glossary dt { - font-weight: bold; - font-size: 1.1em; -} - -.field-list ul { - margin: 0; - padding-left: 1em; -} - -.field-list p { - margin: 0; -} - -.refcount { - color: #060; -} - -.optional { - font-size: 1.3em; -} - -.versionmodified { - font-style: italic; -} - -.system-message { - background-color: #fda; - padding: 5px; - border: 3px solid red; -} - -.footnote:target { - background-color: #ffa; -} - -.line-block { - display: block; - margin-top: 1em; - margin-bottom: 1em; -} - -.line-block .line-block { - margin-top: 0; - margin-bottom: 0; - margin-left: 1.5em; -} - -.guilabel, .menuselection { - font-family: sans-serif; -} - -.accelerator { - text-decoration: underline; -} - -.classifier { - font-style: oblique; -} - -abbr, acronym { - border-bottom: dotted 1px; - cursor: help; -} - -/* -- code displays --------------------------------------------------------- */ - -pre { - overflow: auto; - overflow-y: hidden; /* fixes display issues on Chrome browsers */ -} - -td.linenos pre { - padding: 5px 0px; - border: 0; - background-color: transparent; - color: #aaa; -} - -table.highlighttable { - margin-left: 0.5em; -} - -table.highlighttable td { - padding: 0 0.5em 0 0.5em; -} - -tt.descname { - background-color: transparent; - font-weight: bold; - font-size: 1.2em; -} - -tt.descclassname { - background-color: transparent; -} - -tt.xref, a tt { - background-color: transparent; - font-weight: bold; -} - -h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt { - background-color: transparent; -} - -.viewcode-link { - float: right; -} - -.viewcode-back { - float: right; - font-family: sans-serif; -} - -div.viewcode-block:target { - margin: -1px -10px; - padding: 0 10px; -} - -/* -- math display ---------------------------------------------------------- */ - -img.math { - vertical-align: middle; -} - -div.body div.math p { - text-align: center; -} - -span.eqno { - float: right; -} - -/* -- printout stylesheet --------------------------------------------------- */ - -@media print { - div.document, - div.documentwrapper, - div.bodywrapper { - margin: 0 !important; - width: 100%; - } - - div.sphinxsidebar, - div.related, - div.footer, - #top-link { - display: none; - } -} \ No newline at end of file diff --git a/docs/_build/html/_static/bedtools.png b/docs/_build/html/_static/bedtools.png deleted file mode 100644 index 2d44356e6..000000000 Binary files a/docs/_build/html/_static/bedtools.png and /dev/null differ diff --git a/docs/_build/html/_static/comment-bright.png b/docs/_build/html/_static/comment-bright.png deleted file mode 100644 index 551517b8c..000000000 Binary files a/docs/_build/html/_static/comment-bright.png and /dev/null differ diff --git a/docs/_build/html/_static/comment-close.png b/docs/_build/html/_static/comment-close.png deleted file mode 100644 index 09b54be46..000000000 Binary files a/docs/_build/html/_static/comment-close.png and /dev/null differ diff --git a/docs/_build/html/_static/comment.png b/docs/_build/html/_static/comment.png deleted file mode 100644 index 92feb52b8..000000000 Binary files a/docs/_build/html/_static/comment.png and /dev/null differ diff --git a/docs/_build/html/_static/default.css b/docs/_build/html/_static/default.css deleted file mode 100644 index 21f3f5098..000000000 --- a/docs/_build/html/_static/default.css +++ /dev/null @@ -1,256 +0,0 @@ -/* - * default.css_t - * ~~~~~~~~~~~~~ - * - * Sphinx stylesheet -- default theme. - * - * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -@import url("basic.css"); - -/* -- page layout ----------------------------------------------------------- */ - -body { - font-family: sans-serif; - font-size: 100%; - background-color: #11303d; - color: #000; - margin: 0; - padding: 0; -} - -div.document { - background-color: #1c4e63; -} - -div.documentwrapper { - float: left; - width: 100%; -} - -div.bodywrapper { - margin: 0 0 0 230px; -} - -div.body { - background-color: #ffffff; - color: #000000; - padding: 0 20px 30px 20px; -} - -div.footer { - color: #ffffff; - width: 100%; - padding: 9px 0 9px 0; - text-align: center; - font-size: 75%; -} - -div.footer a { - color: #ffffff; - text-decoration: underline; -} - -div.related { - background-color: #133f52; - line-height: 30px; - color: #ffffff; -} - -div.related a { - color: #ffffff; -} - -div.sphinxsidebar { -} - -div.sphinxsidebar h3 { - font-family: 'Trebuchet MS', sans-serif; - color: #ffffff; - font-size: 1.4em; - font-weight: normal; - margin: 0; - padding: 0; -} - -div.sphinxsidebar h3 a { - color: #ffffff; -} - -div.sphinxsidebar h4 { - font-family: 'Trebuchet MS', sans-serif; - color: #ffffff; - font-size: 1.3em; - font-weight: normal; - margin: 5px 0 0 0; - padding: 0; -} - -div.sphinxsidebar p { - color: #ffffff; -} - -div.sphinxsidebar p.topless { - margin: 5px 10px 10px 10px; -} - -div.sphinxsidebar ul { - margin: 10px; - padding: 0; - color: #ffffff; -} - -div.sphinxsidebar a { - color: #98dbcc; -} - -div.sphinxsidebar input { - border: 1px solid #98dbcc; - font-family: sans-serif; - font-size: 1em; -} - - - -/* -- hyperlink styles ------------------------------------------------------ */ - -a { - color: #355f7c; - text-decoration: none; -} - -a:visited { - color: #355f7c; - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - - - -/* -- body styles ----------------------------------------------------------- */ - -div.body h1, -div.body h2, -div.body h3, -div.body h4, -div.body h5, -div.body h6 { - font-family: 'Trebuchet MS', sans-serif; - background-color: #f2f2f2; - font-weight: normal; - color: #20435c; - border-bottom: 1px solid #ccc; - margin: 20px -20px 10px -20px; - padding: 3px 0 3px 10px; -} - -div.body h1 { margin-top: 0; font-size: 200%; } -div.body h2 { font-size: 160%; } -div.body h3 { font-size: 140%; } -div.body h4 { font-size: 120%; } -div.body h5 { font-size: 110%; } -div.body h6 { font-size: 100%; } - -a.headerlink { - color: #c60f0f; - font-size: 0.8em; - padding: 0 4px 0 4px; - text-decoration: none; -} - -a.headerlink:hover { - background-color: #c60f0f; - color: white; -} - -div.body p, div.body dd, div.body li { - text-align: justify; - line-height: 130%; -} - -div.admonition p.admonition-title + p { - display: inline; -} - -div.admonition p { - margin-bottom: 5px; -} - -div.admonition pre { - margin-bottom: 5px; -} - -div.admonition ul, div.admonition ol { - margin-bottom: 5px; -} - -div.note { - background-color: #eee; - border: 1px solid #ccc; -} - -div.seealso { - background-color: #ffc; - border: 1px solid #ff6; -} - -div.topic { - background-color: #eee; -} - -div.warning { - background-color: #ffe4e4; - border: 1px solid #f66; -} - -p.admonition-title { - display: inline; -} - -p.admonition-title:after { - content: ":"; -} - -pre { - padding: 5px; - background-color: #eeffcc; - color: #333333; - line-height: 120%; - border: 1px solid #ac9; - border-left: none; - border-right: none; -} - -tt { - background-color: #ecf0f3; - padding: 0 1px 0 1px; - font-size: 0.95em; -} - -th { - background-color: #ede; -} - -.warning tt { - background: #efc2c2; -} - -.note tt { - background: #d6d6d6; -} - -.viewcode-back { - font-family: sans-serif; -} - -div.viewcode-block:target { - background-color: #f4debf; - border-top: 1px solid #ac9; - border-bottom: 1px solid #ac9; -} \ No newline at end of file diff --git a/docs/_build/html/_static/doctools.js b/docs/_build/html/_static/doctools.js deleted file mode 100644 index d4619fdfb..000000000 --- a/docs/_build/html/_static/doctools.js +++ /dev/null @@ -1,247 +0,0 @@ -/* - * doctools.js - * ~~~~~~~~~~~ - * - * Sphinx JavaScript utilities for all documentation. - * - * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -/** - * select a different prefix for underscore - */ -$u = _.noConflict(); - -/** - * make the code below compatible with browsers without - * an installed firebug like debugger -if (!window.console || !console.firebug) { - var names = ["log", "debug", "info", "warn", "error", "assert", "dir", - "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", - "profile", "profileEnd"]; - window.console = {}; - for (var i = 0; i < names.length; ++i) - window.console[names[i]] = function() {}; -} - */ - -/** - * small helper function to urldecode strings - */ -jQuery.urldecode = function(x) { - return decodeURIComponent(x).replace(/\+/g, ' '); -} - -/** - * small helper function to urlencode strings - */ -jQuery.urlencode = encodeURIComponent; - -/** - * This function returns the parsed url parameters of the - * current request. Multiple values per key are supported, - * it will always return arrays of strings for the value parts. - */ -jQuery.getQueryParameters = function(s) { - if (typeof s == 'undefined') - s = document.location.search; - var parts = s.substr(s.indexOf('?') + 1).split('&'); - var result = {}; - for (var i = 0; i < parts.length; i++) { - var tmp = parts[i].split('=', 2); - var key = jQuery.urldecode(tmp[0]); - var value = jQuery.urldecode(tmp[1]); - if (key in result) - result[key].push(value); - else - result[key] = [value]; - } - return result; -}; - -/** - * small function to check if an array contains - * a given item. - */ -jQuery.contains = function(arr, item) { - for (var i = 0; i < arr.length; i++) { - if (arr[i] == item) - return true; - } - return false; -}; - -/** - * highlight a given string on a jquery object by wrapping it in - * span elements with the given class name. - */ -jQuery.fn.highlightText = function(text, className) { - function highlight(node) { - if (node.nodeType == 3) { - var val = node.nodeValue; - var pos = val.toLowerCase().indexOf(text); - if (pos >= 0 && !jQuery(node.parentNode).hasClass(className)) { - var span = document.createElement("span"); - span.className = className; - span.appendChild(document.createTextNode(val.substr(pos, text.length))); - node.parentNode.insertBefore(span, node.parentNode.insertBefore( - document.createTextNode(val.substr(pos + text.length)), - node.nextSibling)); - node.nodeValue = val.substr(0, pos); - } - } - else if (!jQuery(node).is("button, select, textarea")) { - jQuery.each(node.childNodes, function() { - highlight(this); - }); - } - } - return this.each(function() { - highlight(this); - }); -}; - -/** - * Small JavaScript module for the documentation. - */ -var Documentation = { - - init : function() { - this.fixFirefoxAnchorBug(); - this.highlightSearchWords(); - this.initIndexTable(); - }, - - /** - * i18n support - */ - TRANSLATIONS : {}, - PLURAL_EXPR : function(n) { return n == 1 ? 0 : 1; }, - LOCALE : 'unknown', - - // gettext and ngettext don't access this so that the functions - // can safely bound to a different name (_ = Documentation.gettext) - gettext : function(string) { - var translated = Documentation.TRANSLATIONS[string]; - if (typeof translated == 'undefined') - return string; - return (typeof translated == 'string') ? translated : translated[0]; - }, - - ngettext : function(singular, plural, n) { - var translated = Documentation.TRANSLATIONS[singular]; - if (typeof translated == 'undefined') - return (n == 1) ? singular : plural; - return translated[Documentation.PLURALEXPR(n)]; - }, - - addTranslations : function(catalog) { - for (var key in catalog.messages) - this.TRANSLATIONS[key] = catalog.messages[key]; - this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); - this.LOCALE = catalog.locale; - }, - - /** - * add context elements like header anchor links - */ - addContextElements : function() { - $('div[id] > :header:first').each(function() { - $('\u00B6'). - attr('href', '#' + this.id). - attr('title', _('Permalink to this headline')). - appendTo(this); - }); - $('dt[id]').each(function() { - $('\u00B6'). - attr('href', '#' + this.id). - attr('title', _('Permalink to this definition')). - appendTo(this); - }); - }, - - /** - * workaround a firefox stupidity - */ - fixFirefoxAnchorBug : function() { - if (document.location.hash && $.browser.mozilla) - window.setTimeout(function() { - document.location.href += ''; - }, 10); - }, - - /** - * highlight the search words provided in the url in the text - */ - highlightSearchWords : function() { - var params = $.getQueryParameters(); - var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; - if (terms.length) { - var body = $('div.body'); - window.setTimeout(function() { - $.each(terms, function() { - body.highlightText(this.toLowerCase(), 'highlighted'); - }); - }, 10); - $('') - .appendTo($('#searchbox')); - } - }, - - /** - * init the domain index toggle buttons - */ - initIndexTable : function() { - var togglers = $('img.toggler').click(function() { - var src = $(this).attr('src'); - var idnum = $(this).attr('id').substr(7); - $('tr.cg-' + idnum).toggle(); - if (src.substr(-9) == 'minus.png') - $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); - else - $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); - }).css('display', ''); - if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { - togglers.click(); - } - }, - - /** - * helper function to hide the search marks again - */ - hideSearchWords : function() { - $('#searchbox .highlight-link').fadeOut(300); - $('span.highlighted').removeClass('highlighted'); - }, - - /** - * make the url absolute - */ - makeURL : function(relativeURL) { - return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; - }, - - /** - * get the current relative url - */ - getCurrentURL : function() { - var path = document.location.pathname; - var parts = path.split(/\//); - $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { - if (this == '..') - parts.pop(); - }); - var url = parts.join('/'); - return path.substring(url.lastIndexOf('/') + 1, path.length - 1); - } -}; - -// quick alias for translations -_ = Documentation.gettext; - -$(document).ready(function() { - Documentation.init(); -}); diff --git a/docs/_build/html/_static/down-pressed.png b/docs/_build/html/_static/down-pressed.png deleted file mode 100644 index 6f7ad7827..000000000 Binary files a/docs/_build/html/_static/down-pressed.png and /dev/null differ diff --git a/docs/_build/html/_static/down.png b/docs/_build/html/_static/down.png deleted file mode 100644 index 3003a8877..000000000 Binary files a/docs/_build/html/_static/down.png and /dev/null differ diff --git a/docs/_build/html/_static/file.png b/docs/_build/html/_static/file.png deleted file mode 100644 index d18082e39..000000000 Binary files a/docs/_build/html/_static/file.png and /dev/null differ diff --git a/docs/_build/html/_static/jquery.js b/docs/_build/html/_static/jquery.js deleted file mode 100644 index 7c2430802..000000000 --- a/docs/_build/html/_static/jquery.js +++ /dev/null @@ -1,154 +0,0 @@ -/*! - * jQuery JavaScript Library v1.4.2 - * http://jquery.com/ - * - * Copyright 2010, John Resig - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * Copyright 2010, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * - * Date: Sat Feb 13 22:33:48 2010 -0500 - */ -(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, -Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& -(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, -a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== -"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, -function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
a"; -var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, -parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= -false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= -s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, -applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; -else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, -a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== -w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, -cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= -c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); -a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, -function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); -k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), -C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= -e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& -f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; -if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", -e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, -"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, -d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, -e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); -t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| -g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, -CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, -g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, -text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, -setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= -h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== -"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, -h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& -q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; -if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); -(function(){var g=s.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: -function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= -{},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== -"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", -d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? -a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== -1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= -c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, -wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, -prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, -this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); -return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, -""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); -return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", -""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= -c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? -c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= -function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= -Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, -"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= -a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= -a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== -"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, -serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), -function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, -global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& -e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? -"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== -false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= -false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", -c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| -d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); -g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== -1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== -"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; -if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== -"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| -c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; -this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= -this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, -e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
"; -a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); -c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, -d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- -f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": -"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in -e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); diff --git a/docs/_build/html/_static/minus.png b/docs/_build/html/_static/minus.png deleted file mode 100644 index da1c5620d..000000000 Binary files a/docs/_build/html/_static/minus.png and /dev/null differ diff --git a/docs/_build/html/_static/plus.png b/docs/_build/html/_static/plus.png deleted file mode 100644 index b3cb37425..000000000 Binary files a/docs/_build/html/_static/plus.png and /dev/null differ diff --git a/docs/_build/html/_static/pygments.css b/docs/_build/html/_static/pygments.css deleted file mode 100644 index 1a14f2ae1..000000000 --- a/docs/_build/html/_static/pygments.css +++ /dev/null @@ -1,62 +0,0 @@ -.highlight .hll { background-color: #ffffcc } -.highlight { background: #eeffcc; } -.highlight .c { color: #408090; font-style: italic } /* Comment */ -.highlight .err { border: 1px solid #FF0000 } /* Error */ -.highlight .k { color: #007020; font-weight: bold } /* Keyword */ -.highlight .o { color: #666666 } /* Operator */ -.highlight .cm { color: #408090; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #007020 } /* Comment.Preproc */ -.highlight .c1 { color: #408090; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */ -.highlight .gd { color: #A00000 } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #FF0000 } /* Generic.Error */ -.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ -.highlight .gi { color: #00A000 } /* Generic.Inserted */ -.highlight .go { color: #303030 } /* Generic.Output */ -.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ -.highlight .gt { color: #0040D0 } /* Generic.Traceback */ -.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */ -.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */ -.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */ -.highlight .kp { color: #007020 } /* Keyword.Pseudo */ -.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */ -.highlight .kt { color: #902000 } /* Keyword.Type */ -.highlight .m { color: #208050 } /* Literal.Number */ -.highlight .s { color: #4070a0 } /* Literal.String */ -.highlight .na { color: #4070a0 } /* Name.Attribute */ -.highlight .nb { color: #007020 } /* Name.Builtin */ -.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */ -.highlight .no { color: #60add5 } /* Name.Constant */ -.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ -.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */ -.highlight .ne { color: #007020 } /* Name.Exception */ -.highlight .nf { color: #06287e } /* Name.Function */ -.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */ -.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ -.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */ -.highlight .nv { color: #bb60d5 } /* Name.Variable */ -.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */ -.highlight .w { color: #bbbbbb } /* Text.Whitespace */ -.highlight .mf { color: #208050 } /* Literal.Number.Float */ -.highlight .mh { color: #208050 } /* Literal.Number.Hex */ -.highlight .mi { color: #208050 } /* Literal.Number.Integer */ -.highlight .mo { color: #208050 } /* Literal.Number.Oct */ -.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */ -.highlight .sc { color: #4070a0 } /* Literal.String.Char */ -.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */ -.highlight .s2 { color: #4070a0 } /* Literal.String.Double */ -.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */ -.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */ -.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */ -.highlight .sx { color: #c65d09 } /* Literal.String.Other */ -.highlight .sr { color: #235388 } /* Literal.String.Regex */ -.highlight .s1 { color: #4070a0 } /* Literal.String.Single */ -.highlight .ss { color: #517918 } /* Literal.String.Symbol */ -.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ -.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */ -.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */ -.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */ -.highlight .il { color: #208050 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/docs/_build/html/_static/rtd.css b/docs/_build/html/_static/rtd.css deleted file mode 100644 index a8cedebf8..000000000 --- a/docs/_build/html/_static/rtd.css +++ /dev/null @@ -1,1438 +0,0 @@ -/* - * rtd.css - * ~~~~~~~~~~~~~~~ - * - * Sphinx stylesheet -- sphinxdoc theme. Originally created by - * Armin Ronacher for Werkzeug. - * - * Customized for ReadTheDocs by Eric Pierce & Eric Holscher - * - * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -/* RTD colors - * light blue: #e8ecef - * medium blue: #8ca1af - * dark blue: #465158 - * dark grey: #444444 - * - * white hover: #d1d9df; - * medium blue hover: #697983; - * green highlight: #8ecc4c - * light blue (project bar): #e8ecef - */ - -@import url("basic.css"); - -/* PAGE LAYOUT -------------------------------------------------------------- */ - -body { - font: 100%/1.5 "ff-meta-web-pro-1","ff-meta-web-pro-2",Arial,"Helvetica Neue",sans-serif; - text-align: center; - color: black; - background-color: #465158; - padding: 0; - margin: 0; -} - -div.document { - text-align: left; - background-color: #e8ecef; -} - -div.bodywrapper { - background-color: #ffffff; - border-left: 1px solid #ccc; - border-bottom: 1px solid #ccc; - margin: 0 0 0 16em; -} - -div.body { - margin: 0; - padding: 0.5em 1.3em; - max-width: 55em; - min-width: 20em; -} - -div.related { - font-size: 1em; - background-color: #465158; -} - -div.documentwrapper { - float: left; - width: 100%; - background-color: #e8ecef; -} - - -/* HEADINGS --------------------------------------------------------------- */ - -h1 { - margin: 0; - padding: 0.7em 0 0.3em 0; - font-size: 1.5em; - line-height: 1.15; - color: #111; - clear: both; -} - -h2 { - margin: 2em 0 0.2em 0; - font-size: 1.35em; - padding: 0; - color: #465158; -} - -h3 { - margin: 1em 0 -0.3em 0; - font-size: 1.2em; - color: #6c818f; -} - -div.body h1 a, div.body h2 a, div.body h3 a, div.body h4 a, div.body h5 a, div.body h6 a { - color: black; -} - -h1 a.anchor, h2 a.anchor, h3 a.anchor, h4 a.anchor, h5 a.anchor, h6 a.anchor { - display: none; - margin: 0 0 0 0.3em; - padding: 0 0.2em 0 0.2em; - color: #aaa !important; -} - -h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, -h5:hover a.anchor, h6:hover a.anchor { - display: inline; -} - -h1 a.anchor:hover, h2 a.anchor:hover, h3 a.anchor:hover, h4 a.anchor:hover, -h5 a.anchor:hover, h6 a.anchor:hover { - color: #777; - background-color: #eee; -} - - -/* LINKS ------------------------------------------------------------------ */ - -/* Normal links get a pseudo-underline */ -a { - color: #444; - text-decoration: none; - border-bottom: 1px solid #ccc; -} - -/* Links in sidebar, TOC, index trees and tables have no underline */ -.sphinxsidebar a, -.toctree-wrapper a, -.indextable a, -#indices-and-tables a { - color: #444; - text-decoration: none; - border-bottom: none; -} - -/* Most links get an underline-effect when hovered */ -a:hover, -div.toctree-wrapper a:hover, -.indextable a:hover, -#indices-and-tables a:hover { - color: #111; - text-decoration: none; - border-bottom: 1px solid #111; -} - -/* Footer links */ -div.footer a { - color: #86989B; - text-decoration: none; - border: none; -} -div.footer a:hover { - color: #a6b8bb; - text-decoration: underline; - border: none; -} - -/* Permalink anchor (subtle grey with a red hover) */ -div.body a.headerlink { - color: #ccc; - font-size: 1em; - margin-left: 6px; - padding: 0 4px 0 4px; - text-decoration: none; - border: none; -} -div.body a.headerlink:hover { - color: #c60f0f; - border: none; -} - - -/* NAVIGATION BAR --------------------------------------------------------- */ - -div.related ul { - height: 2.5em; -} - -div.related ul li { - margin: 0; - padding: 0.65em 0; - float: left; - display: block; - color: white; /* For the >> separators */ - font-size: 0.8em; -} - -div.related ul li.right { - float: right; - margin-right: 5px; - color: transparent; /* Hide the | separators */ -} - -/* "Breadcrumb" links in nav bar */ -div.related ul li a { - order: none; - background-color: inherit; - font-weight: bold; - margin: 6px 0 6px 4px; - line-height: 1.75em; - color: #ffffff; - padding: 0.4em 0.8em; - border: none; - border-radius: 3px; -} -/* previous / next / modules / index links look more like buttons */ -div.related ul li.right a { - margin: 0.375em 0; - background-color: #697983; - text-shadow: 0 1px rgba(0, 0, 0, 0.5); - border-radius: 3px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; -} -/* All navbar links light up as buttons when hovered */ -div.related ul li a:hover { - background-color: #8ca1af; - color: #ffffff; - text-decoration: none; - border-radius: 3px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; -} -/* Take extra precautions for tt within links */ -a tt, -div.related ul li a tt { - background: inherit !important; - color: inherit !important; -} - - -/* SIDEBAR ---------------------------------------------------------------- */ - -div.sphinxsidebarwrapper { - padding: 0; -} - -div.sphinxsidebar { - margin: 0; - margin-left: -100%; - float: left; - top: 3em; - left: 0; - padding: 0 1em; - width: 14em; - font-size: 1em; - text-align: left; - background-color: #e8ecef; -} - -div.sphinxsidebar img { - max-width: 12em; -} - -div.sphinxsidebar h3, div.sphinxsidebar h4 { - margin: 1.2em 0 0.3em 0; - font-size: 1em; - padding: 0; - color: #222222; - font-family: "ff-meta-web-pro-1", "ff-meta-web-pro-2", "Arial", "Helvetica Neue", sans-serif; -} - -div.sphinxsidebar h3 a { - color: #444444; -} - -div.sphinxsidebar ul, -div.sphinxsidebar p { - margin-top: 0; - padding-left: 0; - line-height: 130%; - background-color: #e8ecef; -} - -/* No bullets for nested lists, but a little extra indentation */ -div.sphinxsidebar ul ul { - list-style-type: none; - margin-left: 1.5em; - padding: 0; -} - -/* A little top/bottom padding to prevent adjacent links' borders - * from overlapping each other */ -div.sphinxsidebar ul li { - padding: 1px 0; -} - -/* A little left-padding to make these align with the ULs */ -div.sphinxsidebar p.topless { - padding-left: 0 0 0 1em; -} - -/* Make these into hidden one-liners */ -div.sphinxsidebar ul li, -div.sphinxsidebar p.topless { - white-space: nowrap; - overflow: hidden; -} -/* ...which become visible when hovered */ -div.sphinxsidebar ul li:hover, -div.sphinxsidebar p.topless:hover { - overflow: visible; -} - -/* Search text box and "Go" button */ -#searchbox { - margin-top: 2em; - margin-bottom: 1em; - background: #ddd; - padding: 0.5em; - border-radius: 6px; - -moz-border-radius: 6px; - -webkit-border-radius: 6px; -} -#searchbox h3 { - margin-top: 0; -} - -/* Make search box and button abut and have a border */ -input, -div.sphinxsidebar input { - border: 1px solid #999; - float: left; -} - -/* Search textbox */ -input[type="text"] { - margin: 0; - padding: 0 3px; - height: 20px; - width: 144px; - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; - -moz-border-radius-topleft: 3px; - -moz-border-radius-bottomleft: 3px; - -webkit-border-top-left-radius: 3px; - -webkit-border-bottom-left-radius: 3px; -} -/* Search button */ -input[type="submit"] { - margin: 0 0 0 -1px; /* -1px prevents a double-border with textbox */ - height: 22px; - color: #444; - background-color: #e8ecef; - padding: 1px 4px; - font-weight: bold; - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; - -moz-border-radius-topright: 3px; - -moz-border-radius-bottomright: 3px; - -webkit-border-top-right-radius: 3px; - -webkit-border-bottom-right-radius: 3px; -} -input[type="submit"]:hover { - color: #ffffff; - background-color: #8ecc4c; -} - -div.sphinxsidebar p.searchtip { - clear: both; - padding: 0.5em 0 0 0; - background: #ddd; - color: #666; - font-size: 0.9em; -} - -/* Sidebar links are unusual */ -div.sphinxsidebar li a, -div.sphinxsidebar p a { - background: #e8ecef; /* In case links overlap main content */ - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border: 1px solid transparent; /* To prevent things jumping around on hover */ - padding: 0 5px 0 5px; -} -div.sphinxsidebar li a:hover, -div.sphinxsidebar p a:hover { - color: #111; - text-decoration: none; - border: 1px solid #888; -} - -/* Tweak any link appearing in a heading */ -div.sphinxsidebar h3 a { -} - - - - -/* OTHER STUFF ------------------------------------------------------------ */ - -cite, code, tt { - font-family: 'Consolas', 'Deja Vu Sans Mono', - 'Bitstream Vera Sans Mono', monospace; - font-size: 0.95em; - letter-spacing: 0.01em; -} - -tt { - background-color: #f2f2f2; - color: #444; -} - -tt.descname, tt.descclassname, tt.xref { - border: 0; -} - -hr { - border: 1px solid #abc; - margin: 2em; -} - -pre, #_fontwidthtest { - font-family: 'Consolas', 'Deja Vu Sans Mono', - 'Bitstream Vera Sans Mono', monospace; - margin: 1em 2em; - font-size: 0.95em; - letter-spacing: 0.015em; - line-height: 120%; - padding: 0.5em; - border: 1px solid #ccc; - background-color: #eee; - border-radius: 6px; - -moz-border-radius: 6px; - -webkit-border-radius: 6px; -} - -pre a { - color: inherit; - text-decoration: underline; -} - -td.linenos pre { - padding: 0.5em 0; -} - -div.quotebar { - background-color: #f8f8f8; - max-width: 250px; - float: right; - padding: 2px 7px; - border: 1px solid #ccc; -} - -div.topic { - background-color: #f8f8f8; -} - -table { - border-collapse: collapse; - margin: 0 -0.5em 0 -0.5em; -} - -table td, table th { - padding: 0.2em 0.5em 0.2em 0.5em; -} - - -/* ADMONITIONS AND WARNINGS ------------------------------------------------- */ - -/* Shared by admonitions, warnings and sidebars */ -div.admonition, -div.warning, -div.sidebar { - font-size: 0.9em; - margin: 2em; - padding: 0; - /* - border-radius: 6px; - -moz-border-radius: 6px; - -webkit-border-radius: 6px; - */ -} -div.admonition p, -div.warning p, -div.sidebar p { - margin: 0.5em 1em 0.5em 1em; - padding: 0; -} -div.admonition pre, -div.warning pre, -div.sidebar pre { - margin: 0.4em 1em 0.4em 1em; -} -div.admonition p.admonition-title, -div.warning p.admonition-title, -div.sidebar p.sidebar-title { - margin: 0; - padding: 0.1em 0 0.1em 0.5em; - color: white; - font-weight: bold; - font-size: 1.1em; - text-shadow: 0 1px rgba(0, 0, 0, 0.5); -} -div.admonition ul, div.admonition ol, -div.warning ul, div.warning ol, -div.sidebar ul, div.sidebar ol { - margin: 0.1em 0.5em 0.5em 3em; - padding: 0; -} - - -/* Admonitions and sidebars only */ -div.admonition, div.sidebar { - border: 1px solid #609060; - background-color: #e9ffe9; -} -div.admonition p.admonition-title, -div.sidebar p.sidebar-title { - background-color: #70A070; - border-bottom: 1px solid #609060; -} - - -/* Warnings only */ -div.warning { - border: 1px solid #900000; - background-color: #ffe9e9; -} -div.warning p.admonition-title { - background-color: #b04040; - border-bottom: 1px solid #900000; -} - - -/* Sidebars only */ -div.sidebar { - max-width: 200px; -} - - - -div.versioninfo { - margin: 1em 0 0 0; - border: 1px solid #ccc; - background-color: #DDEAF0; - padding: 8px; - line-height: 1.3em; - font-size: 0.9em; -} - -.viewcode-back { - font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', - 'Verdana', sans-serif; -} - -div.viewcode-block:target { - background-color: #f4debf; - border-top: 1px solid #ac9; - border-bottom: 1px solid #ac9; -} - -dl { - margin: 1em 0 2.5em 0; -} - -/* Highlight target when you click an internal link */ -dt:target { - background: #ffe080; -} -/* Don't highlight whole divs */ -div.highlight { - background: transparent; -} -/* But do highlight spans (so search results can be highlighted) */ -span.highlight { - background: #ffe080; -} - -div.footer { - background-color: #465158; - color: #eeeeee; - padding: 0 2em 2em 2em; - clear: both; - font-size: 0.8em; - text-align: center; -} - -p { - margin: 0.8em 0 0.5em 0; -} - -.section p img { - margin: 1em 2em; -} - - -/* MOBILE LAYOUT -------------------------------------------------------------- */ - -@media screen and (max-width: 600px) { - - h1, h2, h3, h4, h5 { - position: relative; - } - - ul { - padding-left: 1.25em; - } - - div.bodywrapper a.headerlink, #indices-and-tables h1 a { - color: #e6e6e6; - font-size: 80%; - float: right; - line-height: 1.8; - position: absolute; - right: -0.7em; - visibility: inherit; - } - - div.bodywrapper h1 a.headerlink, #indices-and-tables h1 a { - line-height: 1.5; - } - - pre { - font-size: 0.7em; - overflow: auto; - word-wrap: break-word; - white-space: pre-wrap; - } - - div.related ul { - height: 2.5em; - padding: 0; - text-align: left; - } - - div.related ul li { - clear: both; - color: #465158; - padding: 0.2em 0; - } - - div.related ul li:last-child { - border-bottom: 1px dotted #8ca1af; - padding-bottom: 0.4em; - margin-bottom: 1em; - width: 100%; - } - - div.related ul li a { - color: #465158; - padding-right: 0; - } - - div.related ul li a:hover { - background: inherit; - color: inherit; - } - - div.related ul li.right { - clear: none; - padding: 0.65em 0; - margin-bottom: 0.5em; - } - - div.related ul li.right a { - color: #fff; - padding-right: 0.8em; - } - - div.related ul li.right a:hover { - background-color: #8ca1af; - } - - div.body { - clear: both; - min-width: 0; - word-wrap: break-word; - } - - div.bodywrapper { - margin: 0 0 0 0; - } - - div.sphinxsidebar { - float: none; - margin: 0; - width: auto; - } - - div.sphinxsidebar input[type="text"] { - height: 2em; - line-height: 2em; - width: 70%; - } - - div.sphinxsidebar input[type="submit"] { - height: 2em; - margin-left: 0.5em; - width: 20%; - } - - div.sphinxsidebar p.searchtip { - background: inherit; - margin-bottom: 1em; - } - - div.sphinxsidebar ul li, div.sphinxsidebar p.topless { - white-space: normal; - } - - .bodywrapper img { - display: block; - margin-left: auto; - margin-right: auto; - max-width: 100%; - } - - div.documentwrapper { - float: none; - } - - div.admonition, div.warning, pre, blockquote { - margin-left: 0em; - margin-right: 0em; - } - - .body p img { - margin: 0; - } - - #searchbox { - background: transparent; - } - - .related:not(:first-child) li { - display: none; - } - - .related:not(:first-child) li.right { - display: block; - } - - div.footer { - padding: 1em; - } - - .rtd_doc_footer .badge { - float: none; - margin: 1em auto; - position: static; - } - - .rtd_doc_footer .badge.revsys-inline { - margin-right: auto; - margin-bottom: 2em; - } - - table.indextable { - display: block; - width: auto; - } - - .indextable tr { - display: block; - } - - .indextable td { - display: block; - padding: 0; - width: auto !important; - } - - .indextable td dt { - margin: 1em 0; - } - - ul.search { - margin-left: 0.25em; - } - - ul.search li div.context { - font-size: 90%; - line-height: 1.1; - margin-bottom: 1; - margin-left: 0; - } - -} - -/* Links in sidebar, TOC, index trees and tables have no underline */ -.sphinxsidebar a, -.toctree-wrapper a, -.indextable a, -#indices-and-tables a { - color: #444444; - text-decoration: none; - border-bottom: none; -} - -/* Most links get an underline-effect when hovered */ -a:hover, -div.toctree-wrapper a:hover, -.indextable a:hover, -#indices-and-tables a:hover { - color: #111111; - text-decoration: none; - border-bottom: 1px solid #111111; -} - -/* Footer links */ -div.footer a { - color: #86989b; - text-decoration: none; - border: none; -} -div.footer a:hover { - color: #a6b8bb; - text-decoration: underline; - border: none; -} - -/* Permalink anchor (subtle grey with a red hover) */ -div.body a.headerlink { - color: #cccccc; - font-size: 1em; - margin-left: 6px; - padding: 0 4px 0 4px; - text-decoration: none; - border: none; -} -div.body a.headerlink:hover { - color: #c60f0f; - border: none; -} - - -/* NAVIGATION BAR --------------------------------------------------------- */ - -div.related ul { - height: 2.5em; -} - -div.related ul li { - margin: 0; - padding: 0.65em 0; - float: left; - display: block; - color: #ffffff; /* For the >> separators */ - font-size: 0.8em; -} - -div.related ul li.right { - float: right; - margin-right: 5px; - color: transparent; /* Hide the | separators */ -} - -/* "Breadcrumb" links in nav bar */ -div.related ul li a { - order: none; - background-color: inherit; - font-weight: bold; - margin: 6px 0 6px 4px; - line-height: 1.75em; - color: #ffffff; - text-shadow: 0 1px rgba(0, 0, 0, 0.5); - padding: 0.4em 0.8em; - border: none; - border-radius: 3px; -} -/* previous / next / modules / index links look more like buttons */ -div.related ul li.right a { - margin: 0.375em 0; - background-color: #697983; - text-shadow: 0 1px rgba(0, 0, 0, 0.5); - border-radius: 3px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; -} -/* All navbar links light up as buttons when hovered */ -div.related ul li a:hover { - background-color: #8ca1af; - color: #ffffff; - text-decoration: none; - border-radius: 3px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; -} -/* Take extra precautions for tt within links */ -a tt, -div.related ul li a tt { - background: inherit !important; - color: inherit !important; -} - - -/* SIDEBAR ---------------------------------------------------------------- */ - -div.sphinxsidebarwrapper { - padding: 0; -} - -div.sphinxsidebar { - margin: 0; - margin-left: -100%; - float: left; - top: 3em; - left: 0; - padding: 0 1em; - width: 14em; - font-size: 1em; - text-align: left; - background-color: #e8ecef; -} - -div.sphinxsidebar img { - max-width: 12em; -} - -div.sphinxsidebar h3, div.sphinxsidebar h4 { - margin: 1.2em 0 0.3em 0; - font-size: 1em; - padding: 0; - color: #222222; - font-family: "ff-meta-web-pro-1", "ff-meta-web-pro-2", "Arial", "Helvetica Neue", sans-serif; -} - -div.sphinxsidebar h3 a { - color: ; -} - -div.sphinxsidebar ul, -div.sphinxsidebar p { - margin-top: 0; - padding-left: 0; - line-height: 130%; - background-color: #e8ecef; -} - -/* No bullets for nested lists, but a little extra indentation */ -div.sphinxsidebar ul ul { - list-style-type: none; - margin-left: 1.5em; - padding: 0; -} - -/* A little top/bottom padding to prevent adjacent links' borders - * from overlapping each other */ -div.sphinxsidebar ul li { - padding: 1px 0; -} - -/* A little left-padding to make these align with the ULs */ -div.sphinxsidebar p.topless { - padding-left: 0 0 0 1em; -} - -/* Make these into hidden one-liners */ -div.sphinxsidebar ul li, -div.sphinxsidebar p.topless { - white-space: nowrap; - overflow: hidden; -} -/* ...which become visible when hovered */ -div.sphinxsidebar ul li:hover, -div.sphinxsidebar p.topless:hover { - overflow: visible; -} - -/* Search text box and "Go" button */ -#searchbox { - margin-top: 2em; - margin-bottom: 1em; - background: #dddddd; - padding: 0.5em; - border-radius: 6px; - -moz-border-radius: 6px; - -webkit-border-radius: 6px; -} -#searchbox h3 { - margin-top: 0; -} - -/* Make search box and button abut and have a border */ -input, -div.sphinxsidebar input { - border: 1px solid #999999; - float: left; -} - -/* Search textbox */ -input[type="text"] { - margin: 0; - padding: 0 3px; - height: 20px; - width: 144px; - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; - -moz-border-radius-topleft: 3px; - -moz-border-radius-bottomleft: 3px; - -webkit-border-top-left-radius: 3px; - -webkit-border-bottom-left-radius: 3px; -} -/* Search button */ -input[type="submit"] { - margin: 0 0 0 -1px; /* -1px prevents a double-border with textbox */ - height: 22px; - color: #444444; - background-color: #e8ecef; - padding: 1px 4px; - font-weight: bold; - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; - -moz-border-radius-topright: 3px; - -moz-border-radius-bottomright: 3px; - -webkit-border-top-right-radius: 3px; - -webkit-border-bottom-right-radius: 3px; -} -input[type="submit"]:hover { - color: #ffffff; - background-color: #8ecc4c; -} - -div.sphinxsidebar p.searchtip { - clear: both; - padding: 0.5em 0 0 0; - background: #dddddd; - color: #666666; - font-size: 0.9em; -} - -/* Sidebar links are unusual */ -div.sphinxsidebar li a, -div.sphinxsidebar p a { - background: #e8ecef; /* In case links overlap main content */ - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border: 1px solid transparent; /* To prevent things jumping around on hover */ - padding: 0 5px 0 5px; -} -div.sphinxsidebar li a:hover, -div.sphinxsidebar p a:hover { - color: #111111; - text-decoration: none; - border: 1px solid #888888; -} - -/* Tweak any link appearing in a heading */ -div.sphinxsidebar h3 a { -} - - - - -/* OTHER STUFF ------------------------------------------------------------ */ - -cite, code, tt { - font-family: 'Consolas', 'Deja Vu Sans Mono', - 'Bitstream Vera Sans Mono', monospace; - font-size: 0.95em; - letter-spacing: 0.01em; -} - -tt { - background-color: ; - color: #444444; -} - -tt.descname, tt.descclassname, tt.xref { - border: 0; -} - -hr { - border: 1px solid #abc; - margin: 2em; -} - -pre, #_fontwidthtest { - font-family: 'Consolas', 'Deja Vu Sans Mono', - 'Bitstream Vera Sans Mono', monospace; - margin: 1em 2em; - font-size: 0.95em; - letter-spacing: 0.015em; - line-height: 120%; - padding: 0.5em; - border: 1px solid #cccccc; - background-color: ; - border-radius: 6px; - -moz-border-radius: 6px; - -webkit-border-radius: 6px; -} - -pre a { - color: inherit; - text-decoration: underline; -} - -td.linenos pre { - padding: 0.5em 0; -} - -div.quotebar { - background-color: #f8f8f8; - max-width: 250px; - float: right; - padding: 2px 7px; - border: 1px solid #cccccc; -} - -div.topic { - background-color: #f8f8f8; -} - -table { - border-collapse: collapse; - margin: 0 -0.5em 0 -0.5em; -} - -table td, table th { - padding: 0.2em 0.5em 0.2em 0.5em; -} - - -/* ADMONITIONS AND WARNINGS ------------------------------------------------- */ - -/* Shared by admonitions, warnings and sidebars */ -div.admonition, -div.warning, -div.sidebar { - font-size: 0.9em; - margin: 2em; - padding: 0; - /* - border-radius: 6px; - -moz-border-radius: 6px; - -webkit-border-radius: 6px; - */ -} -div.admonition p, -div.warning p, -div.sidebar p { - margin: 0.5em 1em 0.5em 1em; - padding: 0; -} -div.admonition pre, -div.warning pre, -div.sidebar pre { - margin: 0.4em 1em 0.4em 1em; -} -div.admonition p.admonition-title, -div.warning p.admonition-title, -div.sidebar p.sidebar-title { - margin: 0; - padding: 0.1em 0 0.1em 0.5em; - color: white; - font-weight: bold; - font-size: 1.1em; - text-shadow: 0 1px rgba(0, 0, 0, 0.5); -} -div.admonition ul, div.admonition ol, -div.warning ul, div.warning ol, -div.sidebar ul, div.sidebar ol { - margin: 0.1em 0.5em 0.5em 3em; - padding: 0; -} - - -/* Admonitions and sidebars only */ -div.admonition, div.sidebar { - border: 1px solid #609060; - background-color: #e9ffe9; -} -div.admonition p.admonition-title, -div.sidebar p.sidebar-title { - background-color: #70a070; - border-bottom: 1px solid #609060; -} - - -/* Warnings only */ -div.warning { - border: 1px solid #900000; - background-color: #ffe9e9; -} -div.warning p.admonition-title { - background-color: #b04040; - border-bottom: 1px solid #900000; -} - - -/* Sidebars only */ -div.sidebar { - max-width: 200px; -} - - - -div.versioninfo { - margin: 1em 0 0 0; - border: 1px solid #cccccc; - background-color: #DDEAF0; - padding: 8px; - line-height: 1.3em; - font-size: 0.9em; -} - -.viewcode-back { - font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', - 'Verdana', sans-serif; -} - -div.viewcode-block:target { - background-color: #f4debf; - border-top: 1px solid #ac9; - border-bottom: 1px solid #ac9; -} - -dl { - margin: 1em 0 2.5em 0; -} - -/* Highlight target when you click an internal link */ -dt:target { - background: #ffe080; -} -/* Don't highlight whole divs */ -div.highlight { - background: transparent; -} -/* But do highlight spans (so search results can be highlighted) */ -span.highlight { - background: #ffe080; -} - -div.footer { - background-color: #465158; - color: #eeeeee; - padding: 0 2em 2em 2em; - clear: both; - font-size: 0.8em; - text-align: center; -} - -p { - margin: 0.8em 0 0.5em 0; -} - -.section p img { - margin: 1em 2em; -} - - -/* MOBILE LAYOUT -------------------------------------------------------------- */ - -@media screen and (max-width: 600px) { - - h1, h2, h3, h4, h5 { - position: relative; - } - - ul { - padding-left: 1.75em; - } - - div.bodywrapper a.headerlink, #indices-and-tables h1 a { - color: #e6e6e6; - font-size: 80%; - float: right; - line-height: 1.8; - position: absolute; - right: -0.7em; - visibility: inherit; - } - - div.bodywrapper h1 a.headerlink, #indices-and-tables h1 a { - line-height: 1.5; - } - - pre { - font-size: 0.7em; - overflow: auto; - word-wrap: break-word; - white-space: pre-wrap; - } - - div.related ul { - height: 2.5em; - padding: 0; - text-align: left; - } - - div.related ul li { - clear: both; - color: #465158; - padding: 0.2em 0; - } - - div.related ul li:last-child { - border-bottom: 1px dotted #8ca1af; - padding-bottom: 0.4em; - margin-bottom: 1em; - width: 100%; - } - - div.related ul li a { - color: #465158; - padding-right: 0; - } - - div.related ul li a:hover { - background: inherit; - color: inherit; - } - - div.related ul li.right { - clear: none; - padding: 0.65em 0; - margin-bottom: 0.5em; - } - - div.related ul li.right a { - color: #ffffff; - padding-right: 0.8em; - } - - div.related ul li.right a:hover { - background-color: #8ca1af; - } - - div.body { - clear: both; - min-width: 0; - word-wrap: break-word; - } - - div.bodywrapper { - margin: 0 0 0 0; - } - - div.sphinxsidebar { - float: none; - margin: 0; - width: auto; - } - - div.sphinxsidebar input[type="text"] { - height: 2em; - line-height: 2em; - width: 70%; - } - - div.sphinxsidebar input[type="submit"] { - height: 2em; - margin-left: 0.5em; - width: 20%; - } - - div.sphinxsidebar p.searchtip { - background: inherit; - margin-bottom: 1em; - } - - div.sphinxsidebar ul li, div.sphinxsidebar p.topless { - white-space: normal; - } - - .bodywrapper img { - display: block; - margin-left: auto; - margin-right: auto; - max-width: 100%; - } - - div.documentwrapper { - float: none; - } - - div.admonition, div.warning, pre, blockquote { - margin-left: 0em; - margin-right: 0em; - } - - .body p img { - margin: 0; - } - - #searchbox { - background: transparent; - } - - .related:not(:first-child) li { - display: none; - } - - .related:not(:first-child) li.right { - display: block; - } - - div.footer { - padding: 1em; - } - - .rtd_doc_footer .badge { - float: none; - margin: 1em auto; - position: static; - } - - .rtd_doc_footer .badge.revsys-inline { - margin-right: auto; - margin-bottom: 2em; - } - - table.indextable { - display: block; - width: auto; - } - - .indextable tr { - display: block; - } - - .indextable td { - display: block; - padding: 0; - width: auto !important; - } - - .indextable td dt { - margin: 1em 0; - } - - ul.search { - margin-left: 0.25em; - } - - ul.search li div.context { - font-size: 90%; - line-height: 1.1; - margin-bottom: 1; - margin-left: 0; - } - -} \ No newline at end of file diff --git a/docs/_build/html/_static/searchtools.js b/docs/_build/html/_static/searchtools.js deleted file mode 100644 index 663be4c90..000000000 --- a/docs/_build/html/_static/searchtools.js +++ /dev/null @@ -1,560 +0,0 @@ -/* - * searchtools.js_t - * ~~~~~~~~~~~~~~~~ - * - * Sphinx JavaScript utilties for the full-text search. - * - * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -/** - * helper function to return a node containing the - * search summary for a given text. keywords is a list - * of stemmed words, hlwords is the list of normal, unstemmed - * words. the first one is used to find the occurance, the - * latter for highlighting it. - */ - -jQuery.makeSearchSummary = function(text, keywords, hlwords) { - var textLower = text.toLowerCase(); - var start = 0; - $.each(keywords, function() { - var i = textLower.indexOf(this.toLowerCase()); - if (i > -1) - start = i; - }); - start = Math.max(start - 120, 0); - var excerpt = ((start > 0) ? '...' : '') + - $.trim(text.substr(start, 240)) + - ((start + 240 - text.length) ? '...' : ''); - var rv = $('
').text(excerpt); - $.each(hlwords, function() { - rv = rv.highlightText(this, 'highlighted'); - }); - return rv; -} - - -/** - * Porter Stemmer - */ -var Stemmer = function() { - - var step2list = { - ational: 'ate', - tional: 'tion', - enci: 'ence', - anci: 'ance', - izer: 'ize', - bli: 'ble', - alli: 'al', - entli: 'ent', - eli: 'e', - ousli: 'ous', - ization: 'ize', - ation: 'ate', - ator: 'ate', - alism: 'al', - iveness: 'ive', - fulness: 'ful', - ousness: 'ous', - aliti: 'al', - iviti: 'ive', - biliti: 'ble', - logi: 'log' - }; - - var step3list = { - icate: 'ic', - ative: '', - alize: 'al', - iciti: 'ic', - ical: 'ic', - ful: '', - ness: '' - }; - - var c = "[^aeiou]"; // consonant - var v = "[aeiouy]"; // vowel - var C = c + "[^aeiouy]*"; // consonant sequence - var V = v + "[aeiou]*"; // vowel sequence - - var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0 - var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 - var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 - var s_v = "^(" + C + ")?" + v; // vowel in stem - - this.stemWord = function (w) { - var stem; - var suffix; - var firstch; - var origword = w; - - if (w.length < 3) - return w; - - var re; - var re2; - var re3; - var re4; - - firstch = w.substr(0,1); - if (firstch == "y") - w = firstch.toUpperCase() + w.substr(1); - - // Step 1a - re = /^(.+?)(ss|i)es$/; - re2 = /^(.+?)([^s])s$/; - - if (re.test(w)) - w = w.replace(re,"$1$2"); - else if (re2.test(w)) - w = w.replace(re2,"$1$2"); - - // Step 1b - re = /^(.+?)eed$/; - re2 = /^(.+?)(ed|ing)$/; - if (re.test(w)) { - var fp = re.exec(w); - re = new RegExp(mgr0); - if (re.test(fp[1])) { - re = /.$/; - w = w.replace(re,""); - } - } - else if (re2.test(w)) { - var fp = re2.exec(w); - stem = fp[1]; - re2 = new RegExp(s_v); - if (re2.test(stem)) { - w = stem; - re2 = /(at|bl|iz)$/; - re3 = new RegExp("([^aeiouylsz])\\1$"); - re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); - if (re2.test(w)) - w = w + "e"; - else if (re3.test(w)) { - re = /.$/; - w = w.replace(re,""); - } - else if (re4.test(w)) - w = w + "e"; - } - } - - // Step 1c - re = /^(.+?)y$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(s_v); - if (re.test(stem)) - w = stem + "i"; - } - - // Step 2 - re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - suffix = fp[2]; - re = new RegExp(mgr0); - if (re.test(stem)) - w = stem + step2list[suffix]; - } - - // Step 3 - re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - suffix = fp[2]; - re = new RegExp(mgr0); - if (re.test(stem)) - w = stem + step3list[suffix]; - } - - // Step 4 - re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; - re2 = /^(.+?)(s|t)(ion)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(mgr1); - if (re.test(stem)) - w = stem; - } - else if (re2.test(w)) { - var fp = re2.exec(w); - stem = fp[1] + fp[2]; - re2 = new RegExp(mgr1); - if (re2.test(stem)) - w = stem; - } - - // Step 5 - re = /^(.+?)e$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(mgr1); - re2 = new RegExp(meq1); - re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); - if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) - w = stem; - } - re = /ll$/; - re2 = new RegExp(mgr1); - if (re.test(w) && re2.test(w)) { - re = /.$/; - w = w.replace(re,""); - } - - // and turn initial Y back to y - if (firstch == "y") - w = firstch.toLowerCase() + w.substr(1); - return w; - } -} - - -/** - * Search Module - */ -var Search = { - - _index : null, - _queued_query : null, - _pulse_status : -1, - - init : function() { - var params = $.getQueryParameters(); - if (params.q) { - var query = params.q[0]; - $('input[name="q"]')[0].value = query; - this.performSearch(query); - } - }, - - loadIndex : function(url) { - $.ajax({type: "GET", url: url, data: null, success: null, - dataType: "script", cache: true}); - }, - - setIndex : function(index) { - var q; - this._index = index; - if ((q = this._queued_query) !== null) { - this._queued_query = null; - Search.query(q); - } - }, - - hasIndex : function() { - return this._index !== null; - }, - - deferQuery : function(query) { - this._queued_query = query; - }, - - stopPulse : function() { - this._pulse_status = 0; - }, - - startPulse : function() { - if (this._pulse_status >= 0) - return; - function pulse() { - Search._pulse_status = (Search._pulse_status + 1) % 4; - var dotString = ''; - for (var i = 0; i < Search._pulse_status; i++) - dotString += '.'; - Search.dots.text(dotString); - if (Search._pulse_status > -1) - window.setTimeout(pulse, 500); - }; - pulse(); - }, - - /** - * perform a search for something - */ - performSearch : function(query) { - // create the required interface elements - this.out = $('#search-results'); - this.title = $('

' + _('Searching') + '

').appendTo(this.out); - this.dots = $('').appendTo(this.title); - this.status = $('

').appendTo(this.out); - this.output = $('