Template:GNF Ortholog box: Difference between revisions
Appearance
wikademia>JonSDSUGrad Added org human/mouse to url connection. |
wikademia>JonSDSUGrad Huge modification to allow for fields to be optional. |
||
| Line 7: | Line 7: | ||
| bgcolor="#e7dcc3" | Human | | bgcolor="#e7dcc3" | Human | ||
| bgcolor="#e7dcc3" | Mouse | | bgcolor="#e7dcc3" | Mouse | ||
<!-- | |||
| | {{#if: | ||
| | {{ #if: Human | | }} | ||
| bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd" | {{ #if: Mouse | | }} | ||
| | | something | ||
| nothing | |||
}} | |||
| bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"| | --> | ||
{{ #if: | |||
{{ #if: {{{Hs_EntrezGene|}}} |x | }} | |||
{{ #if: {{{Mm_EntrezGene|}}} |x | }} | |||
| {{!-}} | |||
| | {{!}} bgcolor="#e7dcc3" {{!}} [[Entrez]] | ||
{{ #if: {{{Hs_EntrezGene|}}} | |||
| {{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} <span class=plainlinks>[http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=gene&cmd=retrieve&dopt=default&list_uids={{{Hs_EntrezGene}}}&rn=1 {{{Hs_EntrezGene}}}]</span> | |||
| bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"| | | {{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} na }} | ||
{{ #if: {{{Mm_EntrezGene|}}} | |||
| {{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} <span class=plainlinks>[http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=gene&cmd=retrieve&dopt=default&list_uids={{{Mm_EntrezGene}}}&rn=1 {{{Mm_EntrezGene}}}]</span> | |||
| {{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} na }} | |||
|}} | |||
{{ #if: | |||
{{ #if: {{{Hs_Ensembl|}}} |x | }} | |||
{{ #if: {{{Mm_Ensembl|}}} |x | }} | |||
| {{!-}} | |||
{{!}} bgcolor="#e7dcc3" {{!}} [[Ensembl]] | |||
{{ #if: {{{Hs_Ensembl|}}} | |||
|{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} <span class=plainlinks><small><small>[http://www.ensembl.org/Homo_sapiens/geneview?gene={{{Hs_Ensembl}}};db=core {{{Hs_Ensembl}}}]</small></small></span> | |||
|{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} na }} | |||
{{ #if: {{{Mm_Ensembl|}}} | |||
|{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} <span class=plainlinks><small><small>[http://www.ensembl.org/Mus_musculus/geneview?gene={{{Mm_Ensembl}}};db=core {{{Mm_Ensembl}}}]</small></small></span> | |||
|{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} na }} | |||
|}} | |||
{{ #if: | |||
{{ #if: {{{Hs_Uniprot|}}} |x | }} | |||
{{ #if: {{{Mm_Uniprot|}}} |x | }} | |||
| {{!-}} | |||
{{!}} bgcolor="#e7dcc3" {{!}} [[Uniprot]] | |||
{{ #if: {{{Hs_Uniprot|}}} | |||
| {{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} {{Uniprot|{{{Hs_Uniprot}}}}} | |||
| {{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} na }} | |||
{{ #if: {{{Mm_Uniprot|}}} | |||
| {{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} {{Uniprot|{{{Mm_Uniprot}}}}} | |||
| {{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} na }} | |||
|}} | |||
{{ #if: | |||
{{#if: {{{Hs_RefseqmRNA|}}} |x | }} | |||
{{#if: {{{Hs_RefseqProtein|}}} |x | }} | |||
{{#if: {{{Mm_RefseqmRNA|}}} |x | }} | |||
{{#if: {{{Mm_RefseqProtein|}}} |x | }} | |||
| {{!-}} | |||
{{!}} bgcolor="#e7dcc3" {{!}} Refseq | |||
<!-- I apologize to whomever may be trying to sort through these next two lines... it seems that putting a newline character was causing serious formatting issues. Only after all of the newline characters were removed did the results look correct. --> | |||
{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd" {{!}} <span class=plainlinks>{{ #if: {{{Hs_RefseqmRNA|}}}| [http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val={{{Hs_RefseqmRNA}}} {{{Hs_RefseqmRNA}}}]| na }} <small>(mRNA)</small><br> {{ #if: {{{Hs_RefseqProtein|}}}|[http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val={{{Hs_RefseqProtein}}} {{{Hs_RefseqProtein}}}]| na }} <small>(protein)</small> </span> | |||
{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd" {{!}}<span class=plainlinks>{{ #if: {{{Mm_RefseqmRNA|}}}| [http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val={{{Mm_RefseqmRNA}}} {{{Mm_RefseqmRNA}}}] | na }} <small>(mRNA)</small><br> {{ #if: {{{Mm_RefseqProtein|}}}| [http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val={{{Mm_RefseqProtein}}} {{{Mm_RefseqProtein}}}]| na }} <small>(protein)</small></span> | |||
| }} | |||
<!-- this is a repeat of the above two lines, but in a much more reader friendly format. | |||
{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd" {{!}} | |||
<span class=plainlinks> | |||
{{ #if: {{{Hs_RefseqmRNA|}}} | |||
| [http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val={{{Hs_RefseqmRNA}}} {{{Hs_RefseqmRNA}}}] | |||
| na }} | |||
<small>(mRNA)</small><br> | |||
{{ #if: {{{Hs_RefseqProtein|}}} | |||
| [http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val={{{Hs_RefseqProtein}}} {{{Hs_RefseqProtein}}}] | |||
| na }} | |||
<small>(protein)</small> | |||
</span> | |||
{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd" {{!}} | |||
<span class=plainlinks> | |||
{{ #if: {{{Mm_RefseqmRNA|}}} | |||
| [http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val={{{Mm_RefseqmRNA}}} {{{Mm_RefseqmRNA}}}] | |||
| na }} | |||
<small>(mRNA)</small><br> | |||
{{ #if: {{{Mm_RefseqProtein|}}} | |||
| [http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val={{{Mm_RefseqProtein}}} {{{Mm_RefseqProtein}}}] | |||
| na }} | |||
<small>(protein)</small> | |||
</span> | |||
--> | |||
{{ #if: | |||
{{#if: {{{Hs_GenLoc_chr|}}} |x | }} | |||
{{#if: {{{Hs_GenLoc_start|}}} |x | }} | |||
{{#if: {{{Hs_GenLoc_end|}}} |x | }} | |||
{{#if: {{{Mm_GenLoc_chr|}}} |x | }} | |||
{{#if: {{{Mm_GenLoc_start|}}} |x | }} | |||
{{#if: {{{Mm_GenLoc_end|}}} |x | }} | |||
| {{!-}} | |||
{{!}} bgcolor="#e7dcc3" {{!}} Location | |||
<!-- reader friendly version | |||
{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} | |||
<span class=plainlinks> | |||
[http://genome.ucsc.edu/cgi-bin/hgTracks?org=Human{{ #if: {{{Hs_GenLoc_db}}} |?db={{{Hs_GenLoc_db}}}|}}{{ #if: {{{Hs_GenLoc_chr|}}} | |||
|{{#if: {{{Hs_GenLoc_start|}}} | |||
|{{#if: {{{Hs_GenLoc_end|}}} | |||
|&position=chr{{{Hs_GenLoc_chr}}}:{{{Hs_GenLoc_start}}}-{{{Hs_GenLoc_end}}} | |||
|}} | |||
|}} | |||
|}} | |||
Chr {{#if:{{{Hs_GenLoc_chr|}}}|{{{Hs_GenLoc_chr|}}}|(na)}}: | |||
{{#if:{{{Hs_GenLoc_start|}}} | {{#expr: {{{Hs_GenLoc_start}}} / 1000000 round 2}}| (na)}} - | |||
{{#if:{{{Hs_GenLoc_end|}}} | {{#expr: {{{Hs_GenLoc_end}}} / 1000000 round 2}}| (na) }} Mb] | |||
</span> | |||
--> | |||
{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}}<span class=plainlinks>[http://genome.ucsc.edu/cgi-bin/hgTracks?org=Human{{ #if: {{{Hs_GenLoc_db}}} |?db={{{Hs_GenLoc_db}}}|}}{{ #if: {{{Hs_GenLoc_chr|}}}|{{#if: {{{Hs_GenLoc_start|}}}|{{#if: {{{Hs_GenLoc_end|}}}|&position=chr{{{Hs_GenLoc_chr}}}:{{{Hs_GenLoc_start}}}-{{{Hs_GenLoc_end}}}|}}|}}|}} Chr {{#if:{{{Hs_GenLoc_chr|}}}|{{{Hs_GenLoc_chr|}}}|(na)}}: {{#if:{{{Hs_GenLoc_start|}}} | {{#expr: {{{Hs_GenLoc_start}}} / 1000000 round 2}}| (na)}} - {{#if:{{{Hs_GenLoc_end|}}} | {{#expr: {{{Hs_GenLoc_end}}} / 1000000 round 2}}| (na) }} Mb]</span> | |||
<!-- reader friendly version: | |||
{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}} | |||
<span class=plainlinks> | |||
[http://genome.ucsc.edu/cgi-bin/hgTracks?org=Mouse{{#if:{{{Mm_GenLoc_db}}}|?db={{{Mm_GenLoc_db}}}|}}{{#if: {{{Mm_GenLoc_chr|}}} | |||
|{{#if: {{{Mm_GenLoc_start|}}} | |||
|{{#if: {{{Mm_GenLoc_end|}}} | |||
|&position=chr{{{Mm_GenLoc_chr}}}:{{{Mm_GenLoc_start}}}-{{{Mm_GenLoc_end}}} | |||
|}} | |||
|}} | |||
|}} | |||
Chr {{#if:{{{Mm_GenLoc_chr|}}}|{{{Mm_GenLoc_chr|}}}|(na)}}: | |||
{{#if:{{{Mm_GenLoc_start|}}} | {{#expr: {{{Mm_GenLoc_start}}} / 1000000 round 2}}| (na)}} - | |||
{{#if:{{{Mm_GenLoc_end|}}} | {{#expr: {{{Mm_GenLoc_end}}} / 1000000 round 2}}| (na)}} | |||
Mb] | |||
</span> | |||
--> | |||
{{!}} bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-right:2px solid #dddddd"{{!}}<span class=plainlinks>[http://genome.ucsc.edu/cgi-bin/hgTracks?org=Mouse{{#if:{{{Mm_GenLoc_db}}}|?db={{{Mm_GenLoc_db}}}|}}{{#if: {{{Mm_GenLoc_chr|}}}|{{#if: {{{Mm_GenLoc_start|}}}|{{#if: {{{Mm_GenLoc_end|}}}|&position=chr{{{Mm_GenLoc_chr}}}:{{{Mm_GenLoc_start}}}-{{{Mm_GenLoc_end}}}|}}|}}|}} Chr {{#if:{{{Mm_GenLoc_chr|}}}|{{{Mm_GenLoc_chr|}}}|(na)}}: {{#if:{{{Mm_GenLoc_start|}}} | {{#expr: {{{Mm_GenLoc_start}}} / 1000000 round 2}}| (na)}} - {{#if:{{{Mm_GenLoc_end|}}} | {{#expr: {{{Mm_GenLoc_end}}} / 1000000 round 2}}| (na)}} Mb] </span> | |||
|}} | |||
|- | |- | ||
<noinclude> | <noinclude> | ||
| Line 54: | Line 157: | ||
}} | }} | ||
</pre> | </pre> | ||
== Revisions == | |||
*Each field is now optional | |||
== To-do list == | == To-do list == | ||
*need to | *Code may need to be made a little cleaner | ||
[[Category:Biology infobox templates|{{PAGENAME}}]] | [[Category:Biology infobox templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Revision as of 03:39, 24 June 2007
| Orthologs | ||
| Human | Mouse
| |
Usage
NOTE: use only in conjunction with Template:GNF_Protein_box! For example, see ITK (gene).
{{GNF_Ortholog_box
| Hs_EntrezGene =
| Hs_RefseqmRNA =
| Hs_RefseqProtein =
| Hs_GenLoc_db =
| Hs_GenLoc_chr =
| Hs_GenLoc_start =
| Hs_GenLoc_end =
| Hs_Uniprot =
| Mm_EntrezGene =
| Mm_RefseqmRNA =
| Mm_RefseqProtein =
| Mm_GenLoc_db =
| Mm_GenLoc_chr =
| Mm_GenLoc_start =
| Mm_GenLoc_end =
| Mm_Uniprot =
}}
Revisions
- Each field is now optional
To-do list
- Code may need to be made a little cleaner