juanbot / CoExpNets

Co-expression network management based on WGCNA + k-means
Apache License 2.0
17 stars 8 forks source link

'_row' field in 'getGOFromTissue()' function #4

Closed SoniaRuiz closed 5 years ago

SoniaRuiz commented 5 years ago

When I type:

getCellTypeFromTissue(tissue="Cortex",which.one="gtexv6")

I receive the "_row" column (the one which contains the name of the cell) in the last position. Would be possible to receive it in the first one?

Instead of:

{"black":1,"skyblue3":1,"red":1,"midnightblue":1,"plum1":1,"lightyellow":1,"purple":8.1791e-38,"orange":1,"yellowgreen":1,"magenta":1,"cyan":1,"white":1,"blue":1,"darkgrey":1,"lightgreen":1,"mediumpurple3":1,"sienna3":1,"darkgreen":1,"greenyellow":1,"lightsteelblue1":1,"royalblue":1,"lightcyan1":1,"darkturquoise":1,"brown":1,"darkred":1,"violet":1,"green":7.8281e-26,"lightcyan":1,"turquoise":1,"darkmagenta":1,"darkorange":1,"paleturquoise":1,"grey60":1,"skyblue":1,"orangered4":1,"_row":"Astrocytes, highly probable (Cahoy, 2008)"}

Receive it in this way:

{"_row":"Astrocytes, highly probable (Cahoy, 2008)","black":1,"skyblue3":1,"red":1,"midnightblue":1,"plum1":1,"lightyellow":1,"purple":8.1791e-38,"orange":1,"yellowgreen":1,"magenta":1,"cyan":1,"white":1,"blue":1,"darkgrey":1,"lightgreen":1,"mediumpurple3":1,"sienna3":1,"darkgreen":1,"greenyellow":1,"lightsteelblue1":1,"royalblue":1,"lightcyan1":1,"darkturquoise":1,"brown":1,"darkred":1,"violet":1,"green":7.8281e-26,"lightcyan":1,"turquoise":1,"darkmagenta":1,"darkorange":1,"paleturquoise":1,"grey60":1,"skyblue":1,"orangered4":1}

juanbot commented 5 years ago

Hi Sonia. What you receive as the “_row” column is actually the row names of the data frame. Can you extract the rows from JSON yourself? Otherwise I can generate an additional column for the row names and drop them as row names outside of the table.

What do you prefer?

On 25 Mar 2019, at 09:31, Sonia Garcia notifications@github.com wrote:

When I type:

getCellTypeFromTissue(tissue="Cortex",which.one="gtexv6")

I receive the "_row" column (the one which contains the name of the cell) in the last position. Would be possible to receive it in the first one?

Instead of:

{"black":1,"skyblue3":1,"red":1,"midnightblue":1,"plum1":1,"lightyellow":1,"purple":8.1791e-38,"orange":1,"yellowgreen":1,"magenta":1,"cyan":1,"white":1,"blue":1,"darkgrey":1,"lightgreen":1,"mediumpurple3":1,"sienna3":1,"darkgreen":1,"greenyellow":1,"lightsteelblue1":1,"royalblue":1,"lightcyan1":1,"darkturquoise":1,"brown":1,"darkred":1,"violet":1,"green":7.8281e-26,"lightcyan":1,"turquoise":1,"darkmagenta":1,"darkorange":1,"paleturquoise":1,"grey60":1,"skyblue":1,"orangered4":1,"_row":"Astrocytes, highly probable (Cahoy, 2008)"}

Receive it in this way:

{"_row":"Astrocytes, highly probable (Cahoy, 2008)","black":1,"skyblue3":1,"red":1,"midnightblue":1,"plum1":1,"lightyellow":1,"purple":8.1791e-38,"orange":1,"yellowgreen":1,"magenta":1,"cyan":1,"white":1,"blue":1,"darkgrey":1,"lightgreen":1,"mediumpurple3":1,"sienna3":1,"darkgreen":1,"greenyellow":1,"lightsteelblue1":1,"royalblue":1,"lightcyan1":1,"darkturquoise":1,"brown":1,"darkred":1,"violet":1,"green":7.8281e-26,"lightcyan":1,"turquoise":1,"darkmagenta":1,"darkorange":1,"paleturquoise":1,"grey60":1,"skyblue":1,"orangered4":1}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/juanbot/CoExpNets/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWLNPgpgT4r0Lj5HVzJhvnaHSrgJTQVks5vaJdugaJpZM4cGbQm.

juanbot commented 5 years ago

What I am trying to say is that I do not have any control on how the row names are transformed into a new column...


Juan A. Botía Professor in Computer Science and Artificial Intelligence, Universidad de Murcia, Spain Hon. Senior Research Fellow, Institute of Neurology, University College London, UK

On 25 Mar 2019, at 09:34, Juan A. Botía juanbotiablaya@gmail.com wrote:

Hi Sonia. What you receive as the “_row” column is actually the row names of the data frame. Can you extract the rows from JSON yourself? Otherwise I can generate an additional column for the row names and drop them as row names outside of the table.

What do you prefer?

On 25 Mar 2019, at 09:31, Sonia Garcia <notifications@github.com mailto:notifications@github.com> wrote:

When I type:

getCellTypeFromTissue(tissue="Cortex",which.one="gtexv6")

I receive the "_row" column (the one which contains the name of the cell) in the last position. Would be possible to receive it in the first one?

Instead of:

{"black":1,"skyblue3":1,"red":1,"midnightblue":1,"plum1":1,"lightyellow":1,"purple":8.1791e-38,"orange":1,"yellowgreen":1,"magenta":1,"cyan":1,"white":1,"blue":1,"darkgrey":1,"lightgreen":1,"mediumpurple3":1,"sienna3":1,"darkgreen":1,"greenyellow":1,"lightsteelblue1":1,"royalblue":1,"lightcyan1":1,"darkturquoise":1,"brown":1,"darkred":1,"violet":1,"green":7.8281e-26,"lightcyan":1,"turquoise":1,"darkmagenta":1,"darkorange":1,"paleturquoise":1,"grey60":1,"skyblue":1,"orangered4":1,"_row":"Astrocytes, highly probable (Cahoy, 2008)"}

Receive it in this way:

{"_row":"Astrocytes, highly probable (Cahoy, 2008)","black":1,"skyblue3":1,"red":1,"midnightblue":1,"plum1":1,"lightyellow":1,"purple":8.1791e-38,"orange":1,"yellowgreen":1,"magenta":1,"cyan":1,"white":1,"blue":1,"darkgrey":1,"lightgreen":1,"mediumpurple3":1,"sienna3":1,"darkgreen":1,"greenyellow":1,"lightsteelblue1":1,"royalblue":1,"lightcyan1":1,"darkturquoise":1,"brown":1,"darkred":1,"violet":1,"green":7.8281e-26,"lightcyan":1,"turquoise":1,"darkmagenta":1,"darkorange":1,"paleturquoise":1,"grey60":1,"skyblue":1,"orangered4":1}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/juanbot/CoExpNets/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWLNPgpgT4r0Lj5HVzJhvnaHSrgJTQVks5vaJdugaJpZM4cGbQm.

SoniaRuiz commented 5 years ago

Oh ok. In that case I will try to move it using JSON.

SoniaRuiz commented 5 years ago

This issue has been solved through JS.