Skip to content

Table data url links#3884

Closed
will-moore wants to merge 26 commits intoome:metadatafrom
will-moore:table_data_url_links
Closed

Table data url links#3884
will-moore wants to merge 26 commits intoome:metadatafrom
will-moore:table_data_url_links

Conversation

@will-moore
Copy link
Copy Markdown
Member

This PR provides 3 steps for adding urls to Table Data.
All parts of this are speculative and up for discussion.

  • Add a 'url' description to the column name in your CSV file. Currently I'm using a double %% as the delimiter, but this could be changed? E.g.
    Gene_Symbol %% url=http://www.ensembl.org/id/%s
    This will be parsed by the populate_metadata script, which will attempt to add the data as json in the Column description. E.g.
    Name: Gene_Symbol
    Description: '{"url": "http://www.ensembl.org/id/%s"}'
  • Webgateway now adds the description to the json Table data, and attempts to parse the description as json. E.g.
data: {
    rows: [
        [
        "ENSG00000117399",
        "CDC20",
        "44",
        ]
    ],
    descriptions: [
        "",
        {
        url: "http://www.ensembl.org/id/%s"
        },
        ""
    ],
    columns: [
        "Entity_Identifier",
        "Gene_Symbol ",
        "Entity_Number",
    ]
}
  • Finally, if a description url is found, webclient uses it to create a link when displaying the gene name.

screen shot 2015-06-19 at 11 54 33

@joshmoore
Copy link
Copy Markdown
Member

@will-moore : can you rebase this against 29011cc (from #3875) as opposed to those from #3863 ?

@will-moore
Copy link
Copy Markdown
Member Author

Rebased to #3889.

@will-moore will-moore closed this Jun 19, 2015
@will-moore will-moore deleted the table_data_url_links branch February 18, 2019 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants