Note that there are some explanatory texts on larger screens.

plurals
  1. POError in merging GO terms - Merge function
    primarykey
    data
    text
    <p>I have two data frames </p> <pre><code> A ### data frame contain GO ids GOBPID G0:00987 GO:06723 GO:02671 GO:00654 GO:00132 B ### containing GO ids with their associated columns GOBPID term GO:08765 flavonoid synthesis G0:00133 biosynthesis process G0:00987 carotenoid synthesis GO:06723 coumarin synthesis GO:00824 metabolic process GO:02671 leaf morphology GO:00654 response to light GO:00268 response to stress GO:00135 pathogen defense GO:00132 spindle formation </code></pre> <p>I wanted to extract only the common ids from both A and B and delete the rest of the rows</p> <pre><code> #from A # from B # from B G0:00987 G0:00987 carotenoid synthesis GO:06723 GO:06723 coumarin synthesis GO:02671 GO:02671 leaf morphology GO:00654 GO:00654 response to light GO:00132 GO:00132 spindle formation </code></pre> <p>and did the following:</p> <pre><code> list of terms&lt;- merge(A,B,by.x="GOBPID",by.y="GOBPID") </code></pre> <p>But there was an error and returned a dataframe of 0 length which had only the column names but no merging.</p> <pre><code> [1] GOBPID Term &lt;0 rows&gt; (or 0-length row.names) </code></pre> <p>and again tried the following</p> <pre><code> merge(A,B,by.x="row.names",by.y="row.names") </code></pre> <p>which just merges the two data frame but does not give me the common ids. The 5 ids from A are just matched to the first 5 ids in B and does not consider the merging of only common ids.</p> <p>I have added the two datasets as well:</p> <pre><code> [dataset A][http://public.justcloud.com/dldzm0fnsp.4540049] [dataset B][http://public.justcloud.com/dldzmx1758.4540049] </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload