Debian Codegraph @

docs/content/tools/links.rst

raw
1 .. _links:
2
3 ###############
4 *links*
5 ###############
6 Creates an HTML file with links to an instance of the UCSC Genome Browser for all features /
7 intervals in a file. This is useful for cases when one wants to manually inspect through a large set of
8 annotations or features.
9
10 ==========================================================================
11 Usage and option summary
12 ==========================================================================
13 Usage:
14
15 ::
16
17 linksBed [OPTIONS] -i <BED/GFF/VCF> > <HTML file>
18
19 =========================== ===============================================================================================================================================================================================================
20 Option Description
21 =========================== ===============================================================================================================================================================================================================
22 **-base** The "basename" for the UCSC browser. *Default: http://genome.ucsc.edu*
23 **-org** The organism (e.g. mouse, human). *Default: human*
24 **-db** The genome build. *Default: hg18*
25 =========================== ===============================================================================================================================================================================================================
26
27
28
29
30 ==========================================================================
31 Default behavior
32 ==========================================================================
33 By default, **linksBed** creates links to the public UCSC Genome Browser.
34
35 For example:
36
37 ::
38
39 head genes.bed
40 chr21 9928613 10012791 uc002yip.1 0 -
41 chr21 9928613 10012791 uc002yiq.1 0 -
42 chr21 9928613 10012791 uc002yir.1 0 -
43 chr21 9928613 10012791 uc010gkv.1 0 -
44 chr21 9928613 10061300 uc002yis.1 0 -
45 chr21 10042683 10120796 uc002yit.1 0 -
46 chr21 10042683 10120808 uc002yiu.1 0 -
47 chr21 10079666 10120808 uc002yiv.1 0 -
48 chr21 10080031 10081687 uc002yiw.1 0 -
49 chr21 10081660 10120796 uc002yix.2 0 -
50
51 linksBed -i genes.bed > genes.html
52
53 When genes.html is opened in a web browser, one should see something like the following, where each
54 link on the page is built from the features in genes.bed:
55
56
57
58
59
60 ==========================================================================
61 Creating HTML links to a local UCSC Browser installation
62 ==========================================================================
63 Optionally, **linksBed** will create links to a local copy of the UCSC Genome Browser.
64
65 For example:
66
67 ::
68
69 head -3 genes.bed
70 chr21 9928613 10012791 uc002yip.1 0 -
71 chr21 9928613 10012791 uc002yiq.1 0 -
72
73 linksBed -i genes.bed -base http://mirror.uni.edu > genes.html
74
75 One can point the links to the appropriate organism and genome build as well:
76
77 ::
78
79 head -3 genes.bed
80 chr21 9928613 10012791 uc002yip.1 0 -
81 chr21 9928613 10012791 uc002yiq.1 0 -
82
83 linksBed -i genes.bed -base http://mirror.uni.edu -org mouse -db mm9 > genes.html
84